725
SAM4CP [DATASHEET]
43051E–ATPL–08/14
The default configuration values of the optical link circuitries allow the 38 kHz modulation, a 50% duty cycle and an idle
polarity allowing a direct drive of an IR LED through a resistor (see
Figure 35-13 on page 725
).
Refer to the Electrical Characteristics section for drive capability of the buffer associated with the UTXD output.
In case of direct drive of the IR LED as shown in
Figure 35-13 on page 725
, the PIO must be programmed in multi-driver
mode (open-drain). To do so, the adequate index and values must be programmed into the PIO Multi-driver Enable
register (PIO_MDER) (status reported on the PIO Multi-driver Status register (PIO_MDSR)). Refer to the Parallel
Input/Output Controller (PIO) section for details.
If an off-chip current amplifier is used to drive the transmitting of the IR LED, the PIO may be programmed in default drive
mode (non open-drain) for the line index driving the UTXD output, or in open-drain mode depending on the type of
external circuitry.
Figure 35-13. Optical Interface Connected to IR Components
35.5.5 Peripheral DMA Controller (PDC)
Both the receiver and the transmitter of the UART are connected to a PDC.
The PDC channels are programmed via registers that are mapped within the UART user interface from the offset 0x100.
The status bits are reported in UART_SR and generate an interrupt.
The RXRDY bit triggers the PDC channel data transfer of the receiver. This results in a read of the data in UART_RHR.
The TXRDY bit triggers the PDC channel data transfer of the transmitter. This results in a write of data in UART_THR.
35.5.6 Test Modes
The UART supports three test modes. These modes of operation are programmed by using the CHMODE field in
UART_MR.
The automatic echo mode allows bit-by-bit retransmission. When a bit is received on the URXD line, it is sent to the
UTXD line. The transmitter operates normally, but has no effect on the UTXD line.
The local loopback mode allows the transmitted characters to be received. UTXD and URXD pins are not used and the
output of the transmitter is internally connected to the input of the receiver. The URXD pin level has no effect and the
UTXD line is held high, as in idle state.
The remote loopback mode directly connects the URXD pin to the UTXD line. The transmitter and the receiver are
disabled and have no effect. This mode allows a bit-by-bit retransmission.
UART
PIO
UTXD
URXD
t
x
d
r
x
d
R
PIO_MDSR [UTXD]
I.R. LED
VDDIO
VDDIO
PhotoTransistor
1
1
0
0
0
0