Skip to main content
Visitor II
December 11, 2003
Question

problems timer st7262

  • December 11, 2003
  • 4 replies
  • 932 views
Posted on December 11, 2003 at 06:02

problems timer st7262

    This topic has been closed for replies.

    4 replies

    jharoAuthor
    Visitor II
    December 9, 2003
    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

    Visitor II
    December 10, 2003
    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?)

    jharoAuthor
    Visitor II
    December 11, 2003
    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

    Visitor II
    December 11, 2003
    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)