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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/21/01 07:47
Read: times


 
#14286 - RE: Interrupts
Hi Roberto:
Perhaps you'd have to give more details about your program to know what's happening. I can tell you the way I do that. When key (up or down) is pressed the program stays in a loop till key is depressed. In this loop I set modify_add or modify_substract (depending up or down) and when I leave the loop I clear them. On the other hand timer0 is running. Timer0 interrupt adds or substracts if modify_* is enabled.
You can also measure the time during the key is pressed to change the add/substract speed. At begin you can add/substract each 50 interrupts, after each 20,...
I hope this can help you,
Regards
Alberto

List of 5 messages in thread
TopicAuthorDate
Interrupts            01/01/70 00:00      
RE: Interrupts            01/01/70 00:00      
RE: Interrupts            01/01/70 00:00      
RE: Interrupts            01/01/70 00:00      
RE: Interrupts            01/01/70 00:00      

Back to Subject List