I have an Analog Devices ADuC834 eval board and currently have the UART configured for 9600 baud with the following code: T3CON = 0x82; T3FD = 0x12; SCON = 0x52; I am interested in configuring the UART for 115200 baud. I have been able to find examples of doing this with the ADuC832 but not for the ADuC834. The 9600 baud configuration is different for the ADuC832 so I dont think that the same settings would work. The settings for 9600 and 115200 for the ADuC832 are as follows: /*9600*/ T3CON = 0x85; T3FD = 0x2D; SCON = 0x52; /*115200*/ T3CON = 0x82; T3FD = 0x09; SCON = 0x52; If anyone knows the correct settings to run the ADuC834 at 115200 baud (if it has the capability) that would be great. Thanks. -Nathan
The ADuC834 is 12.58 MHz and the ADuC832 is 16MHz if that helps. -Nathan
Correction: In an Analog Devices FAQ pdf it states that the config for 9600 baud for an ADuC832 is: /*9600*/ T3CON = 0x85; T3FD = 0x2D; SCON = 0x52; but T3CON is not 0x85 in several examples, instead it is 0x82. Also I have tried it out and 0x85 does not work and 0x82 does. It has been a real hassle to do business with Analog devices. The ship date for the boards we wanted has been continuously pushed back so we reverted to another board, they do not respond to emails through their website, and their documentation isn't even correct! -Nathan
So when we are settin the baud rate in a microcontroller, we just follow instructions, we dont need to do any calculations? What is 0x85;0x2D; 0x52?How and why did you choose them? Martin M
The technical data sheet for the ADuC834 describes the use of Timer 3 as baudrate generator. It provides the formulas to calculate the register values and also a table with settings for most common baudrates (including relative errors). Even more the baudrate of 115200 is used as an example for the calculations. For 115200 baud the following settings are listed (if the clock divider CD in PLLCON is set to 0): T3CON = 0x81; T3FD = 0x2D; The value of SCON depends on your serial port operation mode.