Many thanks for those who help me! (:
I got a problem here...
If i were to use 3 types of interrupts(external interrupt0, timer0 and timer1) in one single program, how should i go about writing the codes in the program?
Erik,
you wrote
The exception to the above is some derivatives requirement for a wake up interrupt, but similar detection can be done there.
what is a wake interrupt in this context? what do you mean?
read any datasheet for modern derivative that can be woken up from sleep mode by e.g. int0. I recall none that will wake up fron an edge int, all I recall require a level int to wake up.
Erik
Ah, I understand what you meant.