...the world's most energy friendly microcontrollers
2014-07-02 - Tiny Gecko Family - d0034_Rev1.20
236
www.silabs.com
EM2/EM3 before the frame has been read from the LEUART. In order for the system to go
to EM2 during the last byte transmission, LEUART_CTRL_TXDMAWU must be cleared in
the DMA interrupt service routine. This is because TXBL will be high during that last byte
transfer.
16.3.11 Pulse Generator/ Pulse Extender
The LEUART has an optional pulse generator for the transmitter output, and a pulse extender on the
receiver input. These are enabled by setting PULSEEN in LEUARTn_PULSECTRL, and with INV in
LEUARTn_CTRL set, they will change the output/input format of the LEUART from NRZ to RZI as shown
in Figure 16.7 (p. 236) .
Figure 16.7. LEUART - NRZ vs. RZI
S
0
1
2
3
4
5
6
7
P
St op
Idle
Idle
NRZ
RZI
If PULSEEN in LEUARTn_PULSECTRL is set while INV in LEUARTn_CTRL is cleared, the output
waveform will like RZI shown in Figure 16.7 (p. 236) , only inverted.
The width of the pulses from the pulse generator can be configured using PULSEW in
LEUARTn_PULSECTRL. The generated pulse width is 1 cycles of the 32.768 kHz clock,
which makes pulse width from 31.25µs to 500µs possible.
Since the incoming signal is only sampled on positive clock edges, the width of the incoming pulses
must be at least two 32.768 kHz clock periods wide for reliable detection by the LEUART receiver. They
must also be shorter than half a UART baud period.
At 2400 baud/s or lower, the pulse generator is able to generate RZI pulses compatible with the IrDA
physical layer specification. The external IrDA device must generate pulses of sufficient length for
successful two-way communication.
16.3.11.1 Interrupts
The interrupts generated by the LEUART are combined into one interrupt vector. If LEUART interrupts
are enabled, an interrupt will be made if one or more of the interrupt flags in LEUARTn_IF and their
corresponding bits in LEUART_IEN are set.
16.3.12 Register access
Since this module is a Low Energy Peripheral, and runs off a clock which is asynchronous to
the HFCORECLK, special considerations must be taken when accessing registers. Please refer to
Section 5.3 (p. 20) for a description on how to perform register accesses to Low Energy Peripherals.
Summary of Contents for EFM32TG
Page 543: ......