WAIT on 908JL16

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

WAIT on 908JL16

1,356 次查看
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?
标签 (1)
0 项奖励
回复
1 回复

661 次查看
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 项奖励
回复