Hi all. I want to use all 4 T0MRx in my program. whit TxMCR we can set what happen after T0MRx match with T0TC. my problem is here : I could wrote code for 1 T0MRx , but I can't write code for all of them.
one point : timerx jast have one isr , how i can use all of 4 T0MRx interrupt ? thanks.
oh , the MCU is lpc2378.
I set register T0MCR when match in happened , stop counting.so in Timer0_isr , i compared T0TC whit T0MRx that i used them. and wrote when T0MR0 is match , i++ and when T0MR1 is match , j--. but on lcd I just one of them working.
please help me.
thanks all.