PSC Operation Modes
MPC5200B Users Guide, Rev. 1
Freescale Semiconductor 15-69
The STA represents the start of the frame and the STO represents the end of the frame. Both of STA and STO are defined as 01111110 in
binary format. Like the UART mode, the MIR mode sends the lsb first.The FCS is a 16 bit CRC defined as
NOTE
The MIR 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.
15.3.4.2.3 Serial Interaction Pulse (SIP)
The MIR and FIR system must emit SIP (Serial Interaction Pulse) at least once per 500ms while the connection lasts, in order to inform slower
systems (SIR) not to interfere the link. If the SIPEN bit in IRCR1 is high, the transmitter automatically append one SIP after every frame. SIP
can be also sent by writing 1 to SIPREQ bit in IRCR2. If SIPREQ is high and the transmitter is in idle state, one SIP is sent and SIPREQ bit
is automatically cleared. The SIP is defined as:

Figure 15-20. Serial Interaction Pulse (SIP)

15.3.4.2.4 Configuration Sequence Example for MIR Mode
This list includes the MIR 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. The Table15-92 shows the configuration sequences for follow example:
PSC6 in IrDA MIR mode
MIR mode: 1.152 Mbps, SIP pulse after every transfer
Mclk frequency: 27.78 MHz
IrdaClk: 9.26 MHz
NOTE
Please choose first the desired mode (MIR 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

Table15-92. Configuration Sequence Example for MIR Mode

Register Value Setting
CR 0x0A Disable the Tx and Rx part for configuration if the PSC was
enabled by the work before.
SICR 0x05800000 Select the MIR mode, use internal clock
cdm_irda_bitclk_config 0x80012 set Mclk to 27.78 Mhz, see Section 5.5.11, PSC1 Mclock Config
Register—MBAR + 0x0228
cdm_clock_enable_register 0x00000010 enable Mclk, see Section 5.5.6, CDM Clock Enable Register—MBAR
+ 0x0214
CCR 0x0002 set IrdaClk to 9.26 MHz
IRCR1 0x02 enable SIP
IRMDR 0x07 set Baud rate to 1.152 Mbps
RFALARM 0x0XXX Choose Rx FIFO “almost full” threshold level.
TFALARM 0x0XXX Choose Tx FIFO “almost empty” threshold level.
CRC x() x16 x12 x51+++=
1.6µs
8.7µs