2004-02-03 12:39 PM
2004-01-31 08:17 PM
I want to use 12-bit autoload timer in ACTIVE-HALT mode. Every time it overflows CPU wakes up and does something then going to HALT again. To do so it could only use Fltimer as clock source.So,i have three Qs:
Q1: if TimeBase Count 1 overflow events is 1ms then it means Fltimer=1KHz(@8MHz),right ? Q2: Could 12-bit timer still be running if TB1IE being cleared ? Otherwise LITE-TIMER RTC1 will wake CPU up every 1ms. Q3: Shall i read LTCSR1 to clear TB1F after it has been set by hardware ? Best regards, PerryLiu[ This message was edited by: Perry on 01-02-2004 09:50 ]2004-02-01 05:00 PM
A1: Yes, in that case fltimer = 1KHz
A2: If you clear TB1IE bit then the only timebase interrupt will be disabled and no effect on 12-bit auto timer. A3: There is no need to clear it as the you are disabling the time base interrupt.[ This message was edited by: Jatin on 02-02-2004 06:33 ]2004-02-03 12:39 PM
Thanks!
You mean 12-bit auto timer will still be running with 1KHz even if TB1IE is cleared ,right ? If that's not the case 12-bit auto timer have to run with TB1IEset .Then will TimeBase Count 1 interrupt wake CPU up from ACTIVE-HALT every 1ms ? But i want to wake it up every 10ms. Any suggestions are welcome. Best Regards, PerryLiu