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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/10/02 16:17
Read: times


 
#22829 - RE: Timer and Char Input
Frank,

Interrupts make this much easier.

Upon timer interrupt check switches.

Upon Serial interrupt input serial data.


Each interrupt can set a condition flag (i.e. message terminator rx'd = msg in) and (switch change = on/off).

Now your foreground just needs to poll the state of these flags.

jnb switch_change_flag,do_switch
jnb msg_in_flag,do_message.

If you have a simulator you'll get interrupts happening quickly.

regards,
p


List of 10 messages in thread
TopicAuthorDate
Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      
RE: Timer and Char Input            01/01/70 00:00      

Back to Subject List