...the world's most energy friendly microcontrollers
2014-07-02 - Gecko Family - d0001_Rev1.30
228
www.silabs.com
and modulates it before it leaves USART0. In the same way, the input signal is demodulated before
it enters the actual USART module. The modulator is only available on USART0, and implements the
original Rev. 1.0 physical layer and one high speed extension which supports speeds from 2.4 kbps
to 1.152 Mbps.
The data from and to the USART is represented in a NRZ (Non Return to Zero) format, where the signal
value is at the same level through the entire bit period. For IrDA, the required format is RZI (Return to
Zero Inverted), a format where a “1” is signalled by holding the line low, and a “0” is signalled by a short
high pulse. An example is given in Figure 16.16 (p. 228) .
Figure 16.16. USART Example RZI Signal for a given Asynchronous USART Frame
S
0
1
2
3
4
5
6
7
P
St op
Idle
Idle
USART
(NRZ)
IrDA
(RZI)
The IrDA module is enabled by setting IREN. The USART transmitter output and receiver input is then
routed through the IrDA modulator.
The width of the pulses generated by the IrDA modulator is set by configuring IRPW in
USARTn_IRCTRL. Four pulse widths are available, each defined relative to the configured bit period
as listed in Table 16.9 (p. 228) .
Table 16.9. USART IrDA Pulse Widths
IRPW
Pulse width OVS=0
Pulse width OVS=1
Pulse width OVS=2
Pulse width OVS=3
00
1/16
1/8
1/6
1/4
01
2/16
2/8
2/6
N/A
10
3/16
3/8
N/A
N/A
11
4/16
N/A
N/A
N/A
By default, no filter is enabled in the IrDA demodulator. A filter can be enabled by setting IRFILT in
USARTn_IRCTRL. When the filter is enabled, an incoming pulse has to last for 4 consecutive clock
cycles to be detected by the IrDA demodulator.
Note that by default, the idle value of the USART data signal is high. This means that the IrDA modulator
generates negative pulses, and the IrDA demodulator expects negative pulses. To make the IrDA module
use RZI signalling, both TXINV and RXINV in USARTn_CTRL must be set.
The IrDA module can also modulate a signal from the PRS system, and transmit a modulated signal to
the PRS system. To use a PRS channel as transmitter source instead of the USART, set IRPRSEN in
USARTn_IRCTRL high. The channel is selected by configuring IRPRSSEL in USARTn_IRCTRL.
Summary of Contents for EFM32G
Page 505: ......