
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
Asynchronous/Synchronous Serial Interface (ASC)
User’s Manual
18-17
V2.2, 2004-01
ASC_X, V2.0
The contents of PW_VALUE further define the minimum IrDA pulse width (
t
IPW min
) that
is still recognized as a valid IrDA pulse during a receive operation. This function is
independent of the selected IrDA pulse width mode (fixed or variable) which is defined
by bit IRPW. The minimum IrDA pulse width is calculated by a shift right operation of
PMW bit 7-0 by one bit divided by the module clock
f
ASC
.
Note: If IRPW is cleared (fixed IrDA pulse width), PW_VALUE must be a value which
assures that
t
IPW
>
t
IPW min
.
gives three examples for typical frequencies of
f
ASC
.
18.2.8
RxD/TxD Data Path Selection in Asynchronous Modes
The data paths for the serial input and output data in Asynchronous Mode are affected
by several control bits in the registers CON and ABCON as shown in
Synchronous Mode operation is not affected by these data path selection capabilities.
The input signal from RxD passes an inverter which is controlled by bit RXINV. The
output signal of this inverter is used for the Autobaud Detection and may bypass the logic
in the Echo Mode (controlled by bit ABEM). Further, two multiplexers are in the RxD input
signal path for providing the Loopback Mode capability (controlled by bit LB) and the
IrDA receive pulse inversion capability (controlled by bit RxDI).
Depending on the Asynchronous Mode (controlled by bitfield M), output signal or the
RxD input signal in Echo Mode (controlled by bit ABEM) is switched to the TxD output
via an inverter (controlled by bit TXINV).
Table 18-1
Formulas for IrDA Pulse Width Calculation
PMW
PMW_IPMW
Formulas
1 … 255
0
1
Table 18-2
IrDA Pulse Width Adaption to 1.627
µ
s
f
ASC
PMW
t
IPW
Error
t
IPW min
20 MHz
33
1.65
µ
s
-1.1%
0.8
µ
s
50 MHz
81
1.62
µ
s
-1.0%
0.8
µ
s
66 MHz
107
1.621
µ
s
-1.0%
0.81
µ
s
t
IPW
3
16
Baudrate
×
---------------------------------------
=
t
IPW min
PMW >> 1
(
)
f
ASC
---------------------------------
=
t
IPW
PMW
f
ASC
---------------
=