Download KS32C6400

Transcript
KS32C6400 RISC MICROCONTROLLER
UART
UART BAUD RATE DIVISOR REGISTER
The value stored in the baud rate divisor register, UBRDIV, is used to determine the serial Tx/Rx clock rate (baud
rate) as follows:
UBRDIVn = (int)(source_clock / (bps x 16)) - 1
The source_clock is MCLK (the internal master clock).
Register
Offset Address
R/W
UBRDIV0
0xE014
R/W
Baud rate divisor register 0
0x00000000
UBRDIV1
0xE814
R/W
Baud rate divisor register 1
0x00000000
31
Description
16 15 14 13 12 11 10
Reset Value
9
8
7
6
5
4
3
2
1
0
BAUD RATE DIVISOR
[15:0] Baud rate divisor
This field contains the baud rate divisor value for corresponding UART channel.
Baud rate can be calculated as:
UBRDIVn = (int)(source_clock / ( bps x 16)) -1
NOTE : The value of the baud-rate divisor should be from 1 to (2 16-1)
PRILIMINARY SPECIFICATION (REV 0.2)
11-9