Skip to main content
top3971
Associate II
October 1, 2003
Question

how to use TBU timer (ST7262)

  • October 1, 2003
  • 2 replies
  • 795 views
Posted on October 01, 2003 at 14:40

how to use TBU timer (ST7262)

This topic has been closed for replies.

2 replies

top3971
top3971Author
Associate II
September 26, 2003
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
Visitor II
October 1, 2003
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.