cancel
Showing results for 
Search instead for 
Did you mean: 

problems timer st7262

jharo
Associate II
Posted on December 11, 2003 at 06:02

problems timer st7262

4 REPLIES 4
jharo
Associate II
Posted on December 09, 2003 at 13:25

I want to know if someone have problems with the timer of this mcu. When start my program the timer goes at one frequency, but if I want to change this frequency it doesn't change. I want to know if the TBUCV register (0036h) or the TBUCSR register (0037h) were in the correct memory position. Thank you

jatin
Associate II
Posted on December 10, 2003 at 11:09

The user can write a value at any time in the TBUCV register. In which mode are using the timer( cascade mode?)

jharo
Associate II
Posted on December 11, 2003 at 04:29

I don't use in cascade mode, because I need a 1 Mhz clock, more or less, but now with TBUCV with #$fa and TBUCSR with #$18, I generate a 13 KHz clock. Thank you

jatin
Associate II
Posted on December 11, 2003 at 06:02

Your register setting seems to be ok except TBUCV should be 0xfb in place of 0xfa for 1 Mhz. 0xfa setting produce 800 Khz but you are getting only 13khz, so check the following points-

1) Check the fcpu on the MCO pin.

2) Check the registers are programmed correctly(specially prescaler)