??? 09/02/07 17:42 Modified: 09/02/07 18:03 Read: times |
#143902 - END is not an instruction Responding to: ???'s previous message |
After the NOP there will be no more code translated, so the program memory (ROM, FLASH) will contain FFs (=MOV R7,A) up to the end of internal ROM; and after that (if it is not the full 64kB), the behaviour is undefined.
If you want to "stop" execution at some point, either place there a STOP: SJMP STOP (yes, the good old "infinite" loop); or, if the hardware is fit to this, go to the powerdown mode (set bit 1 of PCON). JW PS. I added this as a FAQ, and also added a link to that FAQ into the "Common pittfalls" FAQ. |
Topic | Author | Date |
Assembler Directive DB | 01/01/70 00:00 | |
Hmmm... Looks suspiciously like... | 01/01/70 00:00 | |
see the list file | 01/01/70 00:00 | |
movbe the db's to the end | 01/01/70 00:00 | |
Formatted again | 01/01/70 00:00 | |
highlight | 01/01/70 00:00 | |
What do you mean? | 01/01/70 00:00 | |
Keil DB syntax | 01/01/70 00:00 | |
I think i found the problem | 01/01/70 00:00 | |
you don't need to do that... | 01/01/70 00:00 | |
You are Right | 01/01/70 00:00 | |
Another Bug found | 01/01/70 00:00 | |
What is the crystal frequency? | 01/01/70 00:00 | |
I doubt it | 01/01/70 00:00 | |
Another Mode Added ,19200 problem solved | 01/01/70 00:00 | |
how do you mean this? | 01/01/70 00:00 | |
Couldnt get your query | 01/01/70 00:00 | |
END is not an instruction | 01/01/70 00:00 | |
END is not an instruction!!! | 01/01/70 00:00 | |
Got the point ; query about program loop | 01/01/70 00:00 | |
How microcontroller programs end (or don't) | 01/01/70 00:00 | |
Alternative to infinite loop | 01/01/70 00:00 | |
what is an infinite loop? | 01/01/70 00:00 | |
That must be the reason...![]() | 01/01/70 00:00 |