
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Asynchronous/Synchronous Serial Interface (ASC)
User’s Manual
18-29
V2.2, 2004-01
ASC_X, V2.0
Figure 18-18 Two-Byte Serial Frames with ASCII ‘AT’
18.5.3
Baudrate Selection and Calculation
Autobaud Detection requires some calculations concerning the programming of the
baudrate generator and the baudrates to be detected. Two steps must be considered:
•
Defining the baudrate(s) to be detected
•
Programming of the baudrate timer prescaler - setup of the clock rate of
f
DIV
MCT05449
1 0 0 0 0 0 1 0 1
0 0 1 0 1 0 1 1 1
‘A’ = 41
H
7 Bit, Even Parity
‘T’ = 54
H
1 0 0 0 0 0 1 1 1
0 0 1 0 1 0 1 0 1
‘A’ = 41
H
7 Bit, Odd Parity
‘T’ = 54
H
1 0 0 0 0 0 1 0 1
0 0 1 0 1 0 1 0 1
‘A’ = 41
H
8 Bit, No Parity
‘T’ = 54
H
1 0 0 0 0 0 1 0 0
0 0 1 0 1 0 1 0 1
‘A’ = 41
H
8 Bit, Even Parity
‘T’ = 54
H
1
1
1 0 0 0 0 0 1 0 1
0 0 1 0 1 0 1 0 0
‘A’ = 41
H
8 Bit, Odd Parity
‘T’ = 54
H
1
1
Start
Parity Stop
Start
Parity Stop
Start
Parity Stop
Start
Parity Stop
Start
Stop
Start
Stop
Start
Parity Stop
Start
Parity Stop
Start
Parity Stop
Start
Parity Stop