| ??? 06/13/11 13:46 Read: times  | 
#182632 - but it can be good exercise Responding to: ???'s previous message  | 
Debouncing a key connected to interrupt pin can be good exercise , if You prefer to avoid this hard work at this stage - follow Michael's advise. Additionalyy search this site for "de-bouncing".
 Your sourcecode,first look: - Interrupt Service routine (ISR)should be fast and short . It's forbidden , not allowed, to make LCD access in ISR (at least for beginner). In ISR - increase some counter, set some flag - in main loop recognize them and display ,if You want. - in MC_SENSOR_ENABLE ET0 should be replaced with EX0 , if this macro is prepared to enable IRQ on pin . - Activate IT0=1 - this means Edge triggered interrupt. Your code will go in next 24 hours, then my advise is - make ISR fo Timer interrupt , it will be good exercise. Dont hurry to finalize task. regards  | 
| Topic | Author | Date | 
| Timers/LCD and Interrupts problem | 01/01/70 00:00 | |
| show sourcecode and BTW... | 01/01/70 00:00 | |
| thanks | 01/01/70 00:00 | |
| Using Google Documents....arrrgh. | 01/01/70 00:00 | |
| I hope that's better | 01/01/70 00:00 | |
| Button Connect to Interrupt :-( | 01/01/70 00:00 | |
| but it can be good exercise | 01/01/70 00:00 | |
| hmmm | 01/01/70 00:00 | |
| irq pin | 01/01/70 00:00 | |
| simulator | 01/01/70 00:00 | |
| push pop | 01/01/70 00:00 | |
                     :(        | 01/01/70 00:00 | 



