beautypg.com

7 baud rate generator register 0 and 1 (bgr0/1), Baud rate generator register 0 and 1 (bgr0/1) – FUJITSU F2MCTM-16LX User Manual

Page 421

background image

405

CHAPTER 20 LIN-UART

20.4.7

Baud Rate Generator Register 0 and 1 (BGR0/1)

The baud rate generator registers set the division ratio for the serial clock. Also, the
actual count of the transmission reload counter can be read.

Baud Rate Generator Register (BGRn0/n1)

Figure 20.4-8 shows the configuration of the baud rate generator register (BGRn0/n1).

Figure 20.4-8 Configuration of Baud Rate Generator Register (BGRn0/n1)

The baud rate generator registers determine the division ratio for the serial clock.

The BGRn1 corresponds to the upper bit and BGRn0 to lower bit, writing of the reload value to counter

and reading of the transmission reload counter value are allowed. Also, byte and word access are enabled.

When writing the reload value to the baud rate generator register, the reload counter starts counting.

bit15 bit14 bit13 bit12 bit11 bit10 bit9

0 0 0 0 0 0 0 0

B

BGR00: 000026

H

BGR01: 000027

H

BGR10: 00002E

H

BGR11: 00002F

H

R

bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0

0 0 0 0 0 0 0 0

B

R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W

D14 D13D12 D11D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0

Address

Initial value

bit 7 to 0

BGRn0

Baud rate Generator Register n0

write

Write bit 7 to 0 of reload value to counter

read

Read bit 7 to 0 of transmission reload counter

bit 14 to 8

BGRn1

Baud rate Generator Register n1

write

Write bit 14 to 8 of reload value to counter

read

Read bit 14 to 8 of transmission reload counter

bit 15

Unused bit

read

Returns "0"

R/W : Read/Write
R

: Read only

n = 0, 1