WAIT on 908JL16

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

WAIT on 908JL16

945 Views
popup
Contributor I
Hi,
 
I need my 908JL16 to initialise in the wait (or maybe stop) mode until an external interrupt occured, eg. key press, SCI_rx....After works are done, JL16 turn back to wait mode.
 
where can I put the wait instruction?
Labels (1)
0 Kudos
1 Reply

250 Views
bigmac
Specialist III
Hello popup,
 
It would be usual to place the wait (or stop) instruction within the main loop of your program.  When the external interrupt, or perhaps KBI occurs, processing of the ISR code should then immediately take place, and when completed, the operation will continue with the code immediately following the wait instruction.
 
You can then continue with other main loop operations before looping back prior to the wait instruction.
 
Regards,
Mac
 
0 Kudos