parity bit is generated and transmitted following the eight

Table 69 Prescaler Factors (Continued)

CP3BT26

data bits.

2

 

Start

 

Bit

 

 

 

 

Start

 

 

2a

Bit

 

 

 

 

Start

 

 

2b

Bit

 

 

 

 

 

2c

 

Start

Bit

 

 

 

 

 

8-Bit Data

1S

 

 

 

 

 

 

 

 

 

 

 

 

 

8-Bit Data

 

2S

 

 

 

 

 

 

 

 

 

 

 

 

8-Bit Data

PA

1S

 

 

 

 

 

 

 

 

 

 

 

 

8-Bit Data

PA

2S

 

 

 

 

 

 

Prescaler Select

Prescaler Factor

 

 

01011

6

 

 

01100

6.5

 

 

01101

7

 

 

01110

7.5

 

 

01111

8

 

 

10000

8.5

 

 

10001

9

DS064

Figure 80. 8-Bit Data Frame Options

The format shown in Figure 81 consists of one start bit, nine data bits, and one or two stop bits. This format also supports the UART attention feature. When operating in this format, all eight bits of UnTBUF and UnRBUF are used for data. The ninth data bit is transmitted and received using two bits in the control registers, called UXB9 and URB9. Parity is not generated or verified in this mode.

3

 

Start

9-Bit Data

1S

 

 

 

Bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Start

 

 

 

 

3a

9-Bit Data

2S

 

Bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DS065

Figure 81. 9-bit Data Frame Options

22.2.6Baud Rate Generator

The Baud Rate Generator creates the basic baud clock from the System Clock. The System Clock is passed through a two-stage divider chain consisting of a 5-bit baud rate pres- caler (UnPSC) and an 11-bit baud rate divisor (UnDIV).

The relationship between the 5-bit prescaler select (UnP- SC) setting and the prescaler factors is shown in Table 69.

Table 69

Prescaler Factors

 

 

 

Prescaler Select

 

Prescaler Factor

 

 

 

00000

 

No clock

 

 

 

00001

 

1

 

 

 

00010

 

1.5

 

 

 

00011

 

2

 

 

 

00100

 

2.5

 

 

 

00101

 

3

 

 

 

00110

 

3.5

 

 

 

00111

 

4

 

 

 

01000

 

4.5

 

 

 

01001

 

5

 

 

 

01010

 

5.5

 

 

 

10010

9.5

10011

10

 

 

10100

10.5

 

 

10101

11

 

 

10110

11.5

 

 

10111

12

 

 

11000

12.5

 

 

11001

13

 

 

11010

13.5

 

 

11011

14

 

 

11100

14.5

 

 

11101

15

 

 

11110

15.5

 

 

11111

16

A prescaler factor of zero corresponds to “no clock.” The “no clock” condition is the UART power down mode, in which the UART clock is turned off to reduce power consumption. Software must select the “no clock” condition before enter- ing a new baud rate. Otherwise, it could cause incorrect data to be received or transmitted. The UnPSR register must contain a value other than zero when an external clock is used at CKX.

22.2.7Interrupts

The UART is capable of generating interrupts on:

„Receive Buffer Full

„Receive Error

„Transmit Buffer Empty

www.national.com

166

Page 166
Image 166
National CP3BT26 manual Prescaler Factors