Re: 關於 PIC10F206 的 delay
|
||||
---|---|---|---|---|
新會員
|
問題已經解決了, 原來是MPLAB IDE 7.1的bug, 更新到7.3之後就沒有Calibration memory寫入, 會出現錯誤訊息的問題.
發表於: 2005/12/23 15:58
|
|||
|
PIC10F202 compile程式遇到問題
|
||||
---|---|---|---|---|
新會員
|
初次寫組合, 不知哪邊出問題
原始程式如下:
list p=10F202 ; list directive to define processor
使用MPLAB IDE7.1 + MPASM + ICD2 compiler後出現錯誤訊息, 不知哪邊出問題, 請各位前輩高抬貴手, 指點一下. Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.EXE" /q /p10F202 "main.asm" /l"main.lst" /e"main.err" Warning[205] C:\MPLAB\TEST\PIC10F202\START8PULSE\MAIN.ASM 3 : Found directive in column 1. (list) Warning[205] C:\MPLAB\TEST\PIC10F202\START8PULSE\MAIN.ASM 8 : Found directive in column 1. (__CONFIG) Warning[205] C:\MPLAB\TEST\PIC10F202\START8PULSE\MAIN.ASM 19 : Found directive in column 1. (CBLOCK) Warning[205] C:\MPLAB\TEST\PIC10F202\START8PULSE\MAIN.ASM 22 : Found directive in column 1. (ENDC) Warning[205] C:\MPLAB\TEST\PIC10F202\START8PULSE\MAIN.ASM 46 : Found directive in column 1. (ORG) Error[108] C:\MPLAB\TEST\PIC10F202\START8PULSE\MAIN.ASM 76 : Illegal character ( ) Error[108] C:\MPLAB\TEST\PIC10F202\START8PULSE\MAIN.ASM 77 : Illegal character ( ) Error[108] C:\MPLAB\TEST\PIC10F202\START8PULSE\MAIN.ASM 78 : Illegal character ( ) Halting build on first failure as requested. BUILD FAILED: Thu Dec 22 18:25:04 2005 謝謝!
發表於: 2005/12/22 18:37
|
|||
|
Re: 關於 PIC10F206 的 delay
|
||||
---|---|---|---|---|
新會員
|
沒人知道嗎? 我正在等待答案.
Waiting~~~
發表於: 2005/12/22 18:31
|
|||
|
Re: 關於 PIC10F206 的 delay
|
||||
---|---|---|---|---|
新會員
|
您好:
除了用PIC KIT外, 是否可用ICD2寫入OSC校正值? 我用PIC10F202+MPLAB IDE 7.1+ICD2 pic10f202寫入一次, 工作正常, 但是抹除再寫入, 第二次以上就無法正常工作了, 而且0x1FF讀出來是0x000 或者是0x808. MPLAB IDE Programer -> Settings -> Calibration Memory 有個選項 Allow ICD2 to program calibration memory, 我把它打勾並填入值(試圖修改回來), program target device時, 會出現錯誤訊息, 如下: Programming Target... ICDWarn0044: Target has an invalid calibration memory value (0x800). Continue? ICDWarn0045: You have chosen to program a new calibration memory value. Doing so will destroy the existing calibration memory value. Do you wish to continue? ...Validating configuration fields ...Erasing Part ...Programming Program Memory (0x0 - 0x1FD) ...Calibration Memory Verifying... ...Program Memory ICD0161: Verify failed (MemType = Program, Address = 0x4, Expected Val = 0x909, Val Read = 0x800) ICD0275: Programming failed. MPLAB ICD 2 Ready 無法寫入PIC, 這是怎麼回事? 是IDE的bug嗎? 更新IDE版本, 可以解決問題嗎? 我用的是 HI-Tech C compiler, C內建組合語法如下
#asm
如果單獨用C language, 有辦法表示嗎? Thanks!
發表於: 2005/12/21 11:37
|
|||
|
Re: 關於 PIC10F206 的 delay
|
||||
---|---|---|---|---|
新會員
|
我也很想知道, 如何讓timer0開始運作及停止?
目前正在用10F202遇到一些trouble. 另外位址0x1FF的地方是不是不能寫入?(內存Osciliator校正值) 萬一寫入此位址會怎樣, 可以復原嗎? 程式開始的第一行 movwf OSCCAL 如何用c language表示(因為用到W register) 謝謝!
發表於: 2005/12/20 14:01
|
|||
|
PIC12F629使用ICD2如何進Debugger模式?
|
||||
---|---|---|---|---|
新會員
|
大家好:
請問 一下, 我在使用MPLAB IDE + HI TECH C編輯程式時, 可以進Programmer模式燒錄, 而進Debugger模式時燒錄時卻有問題,如下: MPLAB ICD 2 Ready Resetting Target Entering Debug Mode ...Programming GOTO 0x00 command Resetting Target MPLAB ICD 2 Ready Entering Debug Mode ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation? Running Target Entering Debug Mode ICD0083: Target not in debug mode, unable to perform operation ICD0069: Unable to run target Entering Debug Mode MPLAB ICD 2 Ready 我使用內部Oscillator, Config設定如下: Oscillator Internal RC No Clock Watchdog Timer Off Power Up Timer Off Master Clear Enable External Brown Out Detect Off Code Protect Off Data EE Read Protect Off 是因為使用內部OSC, 才導致無法debug嗎? 該如何解決? 謝謝!
發表於: 2005/9/9 20:03
|
|||
|
為何PIC12F629 timer1誤差這麼大, 快吐血了!!!
|
||||
---|---|---|---|---|
新會員
|
大家好(我一點也不好):
我用了一顆PIC12F629做計時器, 使用內部OSC 4MHz, GPIO2接LED, 程式如下: 參考http://www.microchip.com.tw/modules/n ... e=flat&order=ASC&start=10
#include <pic.h>
為何1分鐘就會快個0.5秒, 真傷腦筋
發表於: 2005/9/9 19:46
|
|||
|
Re: 要如何設定12F/629之內部震盪?
|
||||
---|---|---|---|---|
新會員
|
參照:
OSCCAL位址不是0x90嗎? 還是只是舉例說明用法...
發表於: 2005/9/9 18:11
|
|||
|
Re: 要如何設定12F/629之內部震盪?
|
||||
---|---|---|---|---|
新會員
|
原來方法這麼多種, 了解了.
多謝^_^
發表於: 2005/9/9 18:08
|
|||
|