This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Baud Rate-Timer 1-P89v51RD2

The NXP P89V51RD2 has the ability to choose either Timer1 or Timer2 as the baud rate generator for it's UART.

If I were to use the Timer 1 in mode 2 (auto reload), what is the relation between the baud rate and the crystal frequency in Normal and X2 modes?

I'm using the UART in mode 1(8 bit variable baud rate).

Parents
  • Hello Darren,

    I know about the X2 mode.My question was whether the equation will be the same irrespective of the mode.Page 27 says "In the ‘Timer’ function, the register is incremented every machine cycle".Table-58 in page 61 shows that clocks per machine cycle varies with the mode, which is why I had a doubt. All the figures for the timers only show osc/6.

    Coming back to my question, the equations mentioned in pages 35-39 are all for timer 2 and _not_ timer 1 :(

    Thanks
    Ravi

Reply
  • Hello Darren,

    I know about the X2 mode.My question was whether the equation will be the same irrespective of the mode.Page 27 says "In the ‘Timer’ function, the register is incremented every machine cycle".Table-58 in page 61 shows that clocks per machine cycle varies with the mode, which is why I had a doubt. All the figures for the timers only show osc/6.

    Coming back to my question, the equations mentioned in pages 35-39 are all for timer 2 and _not_ timer 1 :(

    Thanks
    Ravi

Children
No data