??? 09/29/09 02:53 Read: times |
#169239 - How to set BAUD rate to 19200, timer 3 for ADuCxxx? Responding to: ???'s previous message |
In Analog Demo reference design, they advise to initialise RS232 com and set the BAUD rate at 9600 as below:
void serial_init(void) { //Configure UART T3CON = 0x83; //configure timer 3... T3FD = 0x12; //...for 9600 baud SCON = 0x52; } I need to set the BAUD rate at 19200. I have read the table 57: "Common Baud Rates Using Timer 3 with a 12.58 MHz PLL Clock" (page 84, ADuC845-848 data_sheet). But I could not work out how to set it. Is anyone have an idea how to set the BAUD rate? http://www.analog.com/static/im...47_848.pdf Thanks, Ralf |