2003-12-10 09:02 PM
2003-12-09 04:25 AM
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
2003-12-10 02:09 AM
The user can write a value at any time in the TBUCV register. In which mode are using the timer( cascade mode?)
2003-12-10 07:29 PM
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
2003-12-10 09:02 PM
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)