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


Browsing this Thread:   1 Anonymous Users






Re: TIMER0 Problem
#3
新會員
新會員


查看用戶資訊
Thanks for replying. But the issue is it works with previous MPLAB IDE not MPLAB V6.6. That means I have to modiy all of my programs to complite with MPLAB V6.6. I guess that is not the way should be.

發表於: 2004/8/12 17:27
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: TIMER0 Problem
#2
版主
版主


查看用戶資訊
The program should be work once for the 100ms delay with the 16-bit Timer0. I don't know that why can't not work well in the MPLAB v6.6, Could you please load it into the MPLAB-SIM to simulate your code and view the Timer status/value.

For the 100ms delay, I will suggest you to use interrupt of the Timer0 that will be more efficiently and easily.

發表於: 2004/8/12 14:07
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


TIMER0 Problem
#1
新會員
新會員


查看用戶資訊
I wonder why. The program I wrote to create 100ms delay was working properly with ICD2 plugged in. Recently, I installed MPLAB v6.6, and same program is not working anymore with ICD2 plugged in. Thanks for any comments.

MCU: PIC18F8680

DELAY_100MS
................movlw 0xFD
................movwf TMR0H
................movlw 0xA0
................movwf TMR0L
................movlw 0x85
................movwf T0CON
................bcf INTCON,TMR0IF
................btfss INTCON,TMR0IF
................goto $-2
................movlw 0x00
................movwf T0CON
................return


發表於: 2004/8/10 15:22
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

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... ]

教育訓練中心

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