9.2Baud Rate Generator Programming

9.2Baud Rate Generator Programming

The baud rate generator (hereafter referred to as the BRG) of the SCC consists of a 16-bit down counter, two 8-bit time constant registers, and an output divide-by-two. The time constant for the BRG is programmed into WR12 (least significant byte) and WR13 (most significant byte). The equation relating the baud rate to the time constant is given below while Table 5 shows the time constants associated with a number of popular baud rates when using the standard MPAP-100 9.8304 MHz clock.

Clock_Frequency

Time_Const ￿ 2 ￿ Baud_Rate ￿ Clock_Mode ￿ 2

Where:

Clock_Frequency = 9.8304 x 106

 

 

Clock_Mode = 1, 16, 32, or 64

 

 

Baud_Rate = desired baud rate

 

 

Baud Rate

 

Time Constant

 

 

 

38400

 

126

007E (hex)

 

19200

 

254

00FE (hex)

 

9600

 

510

01FE (hex)

 

4800

 

1022

03FE (hex)

 

2400

 

2046

07FE (hex)

 

1200

 

4094

0FFE (hex)

 

600

 

8190

1FFE (hex)

 

300

 

16382

3FFE (hex)

 

(for Clock_Frequency = 9.8304

MHz )

Table 5 --- time constants for common baud rates

9.3SCC Data Encoding Methods

The SCC provides four different data encoding methods, selected by bits 6 and 5 in WR10. These four include NRZ, NRZI, FM1 and FM0. The SCC also features a digital phase-locked loop (DPLL) that can be programmed to operate in NRZI or FM modes. Also, the SCC contains two features for diagnostic purposes, controlled by bits in WR14. They are local loopback and auto echo.

For further information on these subjects or any others involving the SCC contact Zilog for a complete technical manual.

9.4Support for SCC Channel B

Page 33
Image 33
Quatech MPAP-100 user manual Baud Rate Generator Programming, SCC Data Encoding Methods, Support for SCC Channel B