Configuration Sequence Example For Fir Mode; Psc Fifo System; Rx Fifo; Tx Fifo - Freescale Semiconductor MPC5200B User Manual

Freescale semiconductor board users guide
Table of Contents

Advertisement

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
The chip patterns for PA, STA and STO are defined as:
PA
STA
STO
The FIR system must emit SIP (Serial Interaction Pulse), for more informations see
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
Table 15-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.
Table 15-93. Configuration Sequence Example for FIR Mode
Register
CR
SICR
cdm_irda_bitclk_config
cdm_clock_enable_register
CCR
IRCR1
IRFDR
RFALARM
TFALARM
IMR
Port_Config
CR
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
Freescale Semiconductor
NOTE
1000
0000
1010
1000
0000
1100
0000
1100
0000
1100
0000
1100
first chip
NOTE
Value
0x0A
Disable the Tx and Rx part for configuration if the PSC was
enabled by the work before.
0x06800000
Select the FIR mode, use internal clock
0x8002
set Mclk to 176 Mhz, see
Config Register—MBAR + 0x0234
0x00000010
enable Mclk, see
Register—MBAR + 0x0214
0x0001
set IrdaClk to 88 MHz
0x02
enable SIP
0x0A
set bit clock frequency = 8 MHZ with Mclk frequency = 88 MHz
0x0XXX
Choose Rx FIFO "almost full" threshold level.
0x0XXX
Choose Tx FIFO "almost empty" threshold level.
0xXXXX
select the desired interrupt
0x00F00000
Select the Pin-Muxing for IrDA mode, see
Descriptions
0x05
Enable Tx and Rx
MPC5200B Users Guide, Rev. 1
Chapter 13, BestComm.
(16 times repeated)
0110
0000
0110
0000
0110
0000
last chip
Section 15.3.4.2.3, Serial Interaction Pulse (SIP).
Setting
Section 5.5.14, PSC6 (IrDA) Mclock
Section 5.5.6, CDM Clock Enable
PSC FIFO System
0000
0110
Chapter 2, Signal
15-71

Advertisement

Table of Contents
loading

Table of Contents