eblc1388
Active Member
The datasheet does not make it clear the actual reset vector location. From the code attached, it could mean it is the top memory location as 'W' in 12F508 already contains the OSCCAL value after power ON reset.
Either the reset vector is located at 0x000 and the OSCCAL value is loaded in 'W' via hardware or the reset vector is at 0x1FF instead.
Any comment?
Either the reset vector is located at 0x000 and the OSCCAL value is loaded in 'W' via hardware or the reset vector is at 0x1FF instead.
Any comment?
Code:
;------------ for 12F508 ------------------------------------
0000 ORG 0
0000 Start
0000 0025 movwf OSCCAL ; calibrate
0001 0A7A goto Main
;---------------------------------------------------------