Guest Guest
|
PIC12F635 Startup code |
Posted: Sun May 22, 2005 12:53 pm |
|
|
PCM Version 3.221 generated the following code.
Code: |
#include <12F635.h>
#fuses INTRC_IO, NOWDT, MCLR, NOPROTECT, NOBROWNOUT
0000 3000 00001 MOVLW 00
0001 008A 00002 MOVWF 0A
0002 2804 00003 GOTO 004
0003 0000 00004 NOP
0004 23FF 00005 CALL 3FF
0005 1683 00006 BSF 03.5
0006 0090 00007 MOVWF 10
0007 3000 00008 MOVLW 00
0008 008A 00009 MOVWF 0A
0009 283D 00010 GOTO 03D
|
Since there is no oscall at 0x03ff, the "call 3ff" statement seems causing the system wait forever.
If I insert "0x3400" value at 0x03ff address using a programmer, the system runs properly. But I am not able to to do so using ICD-U40.
Is there a way to overcome this 'bug'(?) by forcing the compiler insert '0x3400' at 0x03ff address?
Rob |
|