23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

9.4.7 Baud rate generator control register(SC0BRCR)<br />

Baud rate generator control register 2(SC0BRADD)<br />

SC0BRCR<br />

SC0BRADD<br />

7 6 5 4 3 2 1 0<br />

<strong>TMPM330</strong> (rev 0.4) 9-32<br />

<strong>TMPM330</strong><br />

bit Symbol - BR0ADDE BR0CK1 BR0CK0 BR0S3 BR0S2 BR0S1 BR0S0<br />

Read/Write R/W<br />

After reset 0 0 0 0 0 0 0 0<br />

Write “0”. N + (16 − K)/ Select input clock to Division ratio “N”<br />

16 divider the baud rate 0000: 16<br />

function generator<br />

0001: 1<br />

Function<br />

0: disabled 00: φT1<br />

0010: 2<br />

1: enabled 01: φT4<br />

:<br />

10: φT16<br />

11: φT64<br />

1111: 15<br />

7 6 5 4 3 2 1 0<br />

bit Symbol BR0K3 BR0K2 BR0K1 BR0K0<br />

Read/Write R R/W<br />

After reset 0 0 0 0 0<br />

“0” is read. Specify K for the “N + (16 − K)/16” division<br />

0000: Prohibited<br />

Function<br />

0001: K=1<br />

0010: K=2<br />

:<br />

1111: K=15<br />

: Specifies N + (16-K)/16 division function.<br />

N + (16-K)/16 division function can only be used in the UART mode.<br />

: Specifies the baud rate generator input clock.<br />

: Specifies division ratio “N”.<br />

: Specifies K for the “N+(16-K)/16” division.<br />

The division ratio of the baud rate generator can be specified in the registers shown above.<br />

Table 9-6 lists the settings of baud rate generator division ratio.<br />

Table 9-6 Setting division ratio<br />

BR0ADDE=0 BR0ADDE=1 (Note 1)<br />

(Only UART)<br />

BR0S Specify “N” (Note 2) (Note 3)<br />

BR0K No setting required Setting “K” (Note 4)<br />

Division ratio Divide by N N + (16 − K) division<br />

16<br />

Serial Channel (SIO)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!