cancel
Showing results for 
Search instead for 
Did you mean: 

about st7flit2

perryliu
Associate II
Posted on February 03, 2004 at 21:39

about st7flit2

3 REPLIES 3
perryliu
Associate II
Posted on February 01, 2004 at 05:17

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 ]
jatin
Associate II
Posted on February 02, 2004 at 02:00

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 ]
perryliu
Associate II
Posted on February 03, 2004 at 21:39

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