but the compiler asked me about a decleration ("expecting a decleration")
how can I do that?
Doug Guest
Posted: Mon Feb 23, 2004 12:49 pm
If 0x80 is the factory calibration value then you can put this at the top of your program:
Code:
#ROM 0x3FF={0x3480}
0x3FF is the last program memory address if it is a 1K rom. A 2K rom will be 0x7FF and so on..
0X34 is the RETWL opcode.
0x80 is the factory calibration value.
Hope this helps.
Guard
Joined: 20 Jan 2005 Posts: 43
Posted: Fri Jan 21, 2005 8:45 am
hi,
Does the program function if retwl dosn't exist ? ( I erased all memory ) ???
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Fri Jan 21, 2005 9:07 am
If you use the internal OSC and that location is blank, then no. It will just loop. It expects a return there. The instuction will act as a NOP and the PC will roll to 0 and the program start over. Most programmers protect this space and won't even allow you to save to it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum