Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/30/02 14:59
Read: times


 
#22305 - RE: Sleeping Bugs in the code:
There are already good suggestions on this item.

I do it in the same manner (starting with a blank sheet and a pencil, writing only small routines and test it, ...).

For tests on the target, I use often the UART. Also if they was not needed, after the whole project was finished.

Maybe, there can be add a tutorial with hints to start programming.



The stack pointer can be accessed also in C like any other SFR:

unsigned char idata *sptr;
sptr = SP;
printf("%02X ", (int)*sptr ); // return address high byte
sptr--;
printf("%02X ", (int)*sptr ); // return address low byte



Peter


List of 17 messages in thread
TopicAuthorDate
Sleeping Bugs in the code:            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      
RE: Sleeping Bugs in the code: - more            01/01/70 00:00      
RE: Sleeping Bugs in the code: - more            01/01/70 00:00      
RE: Sleeping Bugs in the code: - more            01/01/70 00:00      
RE: Sleeping Bugs in the code: - more            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      
RE: crash()            01/01/70 00:00      
RE: crash()            01/01/70 00:00      
RE: Sleeping Bugs in the code:            01/01/70 00:00      

Back to Subject List