PSC FIFO System
MPC5200B Users Guide, Rev. 1
Freescale Semiconductor 15-71
NOTE
The FIR module doesn’t support the CRC generation. If the transfer require a CRC Field use the CRC
generation from the BestComm module. See also Chapter 13, BestComm.
The chip patterns for PA, STA and STO are defined as:
The FIR system must emit SIP (Serial Interaction Pulse), for more informations see Section 15.3.4.2.3, Serial Interaction Pulse (SIP).
NOTE
Please choose first the desired mode (FIR mode) than configure the port (write to port_config
register). This sequence will avoid pulses on the TX line during port configuration. This is very
important for all IrDA (SIR, MIR, and FIR) modes.

15.3.4.3.3 Configuration Sequence Example for FIR Mode

The Table15-93 shows the configuration sequences. This list includes the FIR mode related registers only, not the other configure values like
interrupt and FIFO configurations. PSC module registers can be accessed by word or byte operations.
15.4 PSC FIFO System
The receive FIFO stack consists of the FIFO and a receiver shift register connected to the RxD. Data is assembled in the receiver shift register
and loaded into the FIFO at the location pointed to by the FIFO Write Pointer.
Reading the Rx buffer produces an output of data from the location pointed to by the FIFO Read Pointer. After the read cycle data at the top
of the FIFO stack is popped and the Rx shift register can add new data at the bottom of the FIFO. The standard FIFO Controller used in
MPC5200 peripherals, such as the PSCs, was designed to control either:
a transmit (Tx) FIFO
a receive (Rx) FIFO
PA 1000 0 000 1010 1 000 (16 times repeated)
STA 0000 1100 0000 1100 0110 0000 0110 0000
STO 0000 1100 0000 1100 0000 0110 0000 0110
first chip last chip

Table 15-93. Configuration Sequence Example for FIR Mode

Register Value Setting
CR 0x0A Disable the Tx and Rx part for configuration if the PSC was
enabled by the work before.
SICR 0x06800000 Select the FIR mode, use internal clock
cdm_irda_bitclk_config 0x8002 set Mclk to 176 Mhz, see Section 5.5.14, PSC6 (IrDA) Mclock
Config Register—MBAR + 0x0234
cdm_clock_enable_register 0x00000010 enable Mclk, see Section 5.5.6, CDM Clock Enable
Register—MBAR + 0x0214
CCR 0x0001 set IrdaClk to 88 MHz
IRCR1 0x02 enable SIP
IRFDR 0x0A set bit clock frequency = 8 MHZ with Mclk frequency = 88 MHz
RFALARM 0x0XXX Choose Rx FIFO “almost full” threshold level.
TFALARM 0x0XXX Choose Tx FIFO “almost empty” threshold level.
IMR 0xXXXX select the desired interrupt
Port_Config 0x00F00000 Select the Pin-Muxing for IrDA mode, see Chapter 2, Signal
Descriptions
CR 0x05 Enable Tx and Rx