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).
what is the relation between the baud rate and the crystal frequency in Normal and X2 modes?
Please read the manual
Erik
Erik dearest,
I did read the manual.
"In the ‘Timer’ function, the register is incremented every machine cycle..... Since a machine cycle consists of six oscillator periods, the count rate is 1/6 of the oscillator frequency."
But if I were to run it in the normal mode, wouldn't the machine cycle be 12 oscillator periods?
There is no formula in the data sheet for what I had asked.It only specifies the baud rate equations for Timer 2 in the baud rate gen. mode.
I tried baud rate= crystal freq/(6*(256-TH1)) but I think there's a mistake in my formula.
PS: Are you paid to answer on this forum? If yes, please be a little more polite. If not, please do not reply if you are not motivated to help others that are not as smart as you.
There is no formula in the data sheet you are right, i forgot NXP fortunately does not include "biblical" information in the datasheets.
use the formula in "the bible"
re 'fortunately'; a datasheet is sooooo much easier to use when it is not crowded with 'common stuff'
Just look at the SILabs 300+ page datasheets, you have to wade through tons of redundant stuff to miss what you need to find. 'miss' is not a typho
Is typho a typo?
If not, then what is a typho?
.... the fact that I am not a native English speaker does show through
View all questions in Keil forum