cancel
Showing results for 
Search instead for 
Did you mean: 

how to use TBU timer (ST7262)

top3971
Associate II
Posted on October 01, 2003 at 14:40

how to use TBU timer (ST7262)

2 REPLIES 2
top3971
Associate II
Posted on September 26, 2003 at 07:03

void timer1()

{

}

I want to use this function as PBU timer.

so,

TBUCV = 0xe0;

TBUCSR = 0x1f;

I set these register, what else must I do?

plz help!
jatin
Associate II
Posted on October 01, 2003 at 14:40

As per your configuaration, you have set the timer @1msec if the fcpu = 8MHz. Now, into the interrupt routine you have to clear the OVF flag by reading the TBUCSR register and reload the TBUCV register.