• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::

論壇索引


Board index » All Posts (x8051)




XC8 RUN For 迴圈異常問題?
#1
高級會員
高級會員


使用 MPLAB X IDE V5.35
XC8 2.05版
PIC16F1827
為什麼運行 FOR 迴圈,從RAM搬資料輸出,執行45次後, 運行時間從 15us Delay 到 25us?(軟體模擬)
而且運行越長,延遲越嚴重??實際燒入晶片運行更嚴重??

while(1)
{
if (Flage1s)
{
for(uint8_t i = 0; i <45 ; i++)
{
OUTPORTB(RAM1[i],RAM2[i],RAM3[i]);
}
Flage1s=0;
}
..........

Attach file:



jpg  LED.jpg (306.36 KB)
51_64834e366aa18.jpg 1665X736 px

發表於: 2023/6/10 0:07
頂部


PICkit4 使用 IPE 問題燒入供應電壓問題?
#2
高級會員
高級會員


IPEv5.35版本 顯示( 5.000 V 超出了設備 2.300-3.600 的範圍??)

但是 PICkit4 規格書寫 =>支持1.2V至5.5V的目标电源电压

Attach file:



jpg  Z1.jpg (47.51 KB)
51_6460f40cc5009.jpg 572X190 px

發表於: 2023/5/14 22:46
頂部


Re: 請問 PIC16F SPI SSP1STATbits.BF 與 PIR1.SSP1IF使用問題?
#3
高級會員
高級會員


您好~使用PIC16F877
MPLAB X 5.35 版,沒安裝MCC軟件,軟體模擬SSP1IF永遠無法中斷,實際硬體會中斷.
另外,雖然啟用 SPI 傳送,但是如果沒使用 SDI 及 SCLK腳位,是否能做普通I/O使用?
謝謝~~

發表於: 2023/4/6 23:29
頂部


請問 PIC16F SPI SSP1STATbits.BF 與 PIR1.SSP1IF使用問題?
#4
高級會員
高級會員


PIC16F18xx Master mode 下,只傳送 SDO 資料出去,硬件不使用 SDI 接收資料,是否還能判斷 BF 狀態?
之前板主使用 SSP1IF 判斷,是否可以? (因其他廠牌的傳送與接收是不同的 SSPxBUF)
https://microchip.com.tw/modules/newbb ... p?topic_id=7691#threadtop
另外,SPI 是否能中斷傳送?


uint8_t SPI1_Write(uchar ch)
{
SSP1BUF = ch;
while(!SSP1IF); // hold the program till TX buffer is free
while(!SSP1STATbits.BF); // wait until cycle complete

發表於: 2023/4/5 16:30
頂部


Re: 官方 Code Examples 500 - Internal server error.
#5
高級會員
高級會員


https://www.microchip.com/doclisting/TechDoc.aspx?type=CodeExamples
搜尋不了...使用 google 及Firefox 都顯示錯誤.

發表於: 2022/10/25 22:34
頂部


官方 Code Examples 500 - Internal server error.
#6
高級會員
高級會員


登入也顯示錯誤,不知道如何操作?

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

Attach file:



jpg  1b.jpg (32.40 KB)
51_6356a745ba04f.jpg 781X142 px

發表於: 2022/10/24 22:57
頂部


Re: MPLAB X IDE AVR configuration bits(配置位元)無法編輯?
#7
高級會員
高級會員


KevinLu 您好~~謝謝
MPLAB X IDE 5.35 以上MPASM無法使用...況且公司99.99%都是MPASM Assembly 撰寫的程序.
所以無法升級使用....
XC8 Assembly 轉移困難重重

另外 AVR GCC導入Assembly有資料可學習,Microchip XC8 導入Assembly學習資料難尋...

發表於: 2022/7/17 22:23
頂部


Re: MPLAB X IDE AVR configuration bits(配置位元)無法編輯?
#8
高級會員
高級會員


謝謝您~目前可以寫入 configuration bits
但是PICKIT4 SPEED 確沒有顯示出來?
另外 MPLAB X IPE 仍然無法修改?

Attach file:



jpg  85.jpg (95.15 KB)
51_62c45ad28eb63.jpg 1226X441 px

jpg  84.jpg (228.01 KB)
51_62c45b2f663b6.jpg 1385X607 px

jpg  83.jpg (102.40 KB)
51_62c45b5f400ef.jpg 922X607 px

發表於: 2022/7/5 23:38
頂部


MPLAB X IDE AVR configuration bits(配置位元)無法編輯?
#9
高級會員
高級會員


使用版本:
MPLAB X IDE 5.35
MPLAB X IPE 5.35
工具 Tools PICKIT4 to AVR ISP模式
CPU :ATtiny85



MPLAB X IDE 顯示 (AVR 設備禁用編輯配置位設置?)
編輯區反白,無法使用?使用?
一般燒入機,顯示此晶片 ATtiny85 Read Only,只能讀取,無法寫入?

中國 Microchip 網站說可以編輯?
http://www.microchip.com.cn/newcommun ... m=Knowledge&a=show&id=342

Attach file:



jpg  82.jpg (130.07 KB)
51_62c3012f0eef3.jpg 1173X402 px

jpg  81.jpg (162.55 KB)
51_62c3014d0f000.jpg 1265X609 px

發表於: 2022/7/4 23:03
頂部


ATmega16 搭配 MPLAB X IDE V5.30 又發生無法模擬中斷事件
#10
高級會員
高級會員


MPLAB X IDE V5.30
之前 ATtiny85 無法中斷,更新 V5.30 版之後就正常.
這次 ATmega16 搭配 MPLAB X IDE V5.30 又發生無法模擬中斷事件..

MPLAB X IDE V5.30 之後又無法使用 32bit MPASM Compiler,所以不想升級了.

#define F_CPU 1000000UL

#include /* AVR register stuff */
#include /* AVR interrupt */
#include /* AVR program memory space */
#include /* AVR delay */

volatile unsigned char porta;

void initialize_cube (void)
{

/* Frame buffer interrupt */
TCNT2 = 0x00; /* Initial counter value 0 */
TIMSK |= (1 << OCIE2); /* Enable CTC interrupt */

/* Every 1024th cpu cycle, a counter is incremented.
* Every time that counter reaches 5, it is reset to 0
* and the interrupt routine is executed.
* 1000000/1024/5 = 195 hz refresh
* There are 5 layers to update..
* 195 hz / 5 layers = 39 FPS
*/
OCR2 = 50; /* Interrupt if counter hold value 5 */
TCCR2 = 0x02; /* Prescaler set to 1024 */
TCCR2 |= (1 << WGM01); /* Clear Timer on Compare Match (CTC) mode */

/* Set data direction on all ports to output */
DDRA = 0xFF; /* Data direction PORTA to output */

/* Enable interrupts */
sei();
}

ISR(TIMER2_COMP_vect)
{
porta++;
PORTA = porta;
}

int main (void)
{
initialize_cube(); /* Set timers, interrupts, I/O ports */

while(1) {
__asm__("nop");
__asm__("nop");
__asm__("nop");
__asm__("nop");
}
}

發表於: 2022/5/12 0:32
頂部



(1) 2 3 4 ... 10 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------