Configuration Sequence Example For Sir Mode; Psc In Mir Mode; Block Diagram And Signal Definition For Mir Mode - Freescale Semiconductor MPC5200B User Manual

Freescale semiconductor board users guide
Table of Contents

Advertisement

15.3.4.1.3

Configuration Sequence Example for SIR Mode

The
Table 15-91
shows the configuration sequences. This list includes the SIR 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-91. Configuration Sequence Example for SIR Mode
Register
CR
SICR
0x04000000
IRCR1
IRSDR
CTUR
CTLR
RFALARM
TFALARM
IMR
Port_Config
0x00500000
CR
15.3.4.2

PSC in MIR Mode

The MIR mode is the second IrDA mode, which the PSC supports. This section will give some more informations about this mode. The
important register to configure the PSC6 (only this PSC supports the IrDA modes) for MIR mode are:
SICR
register - select the MIR mode
MR2
register - Channel Mode
If clock generate from the internal source:
— cdm_irda_bitclk_config - select Mclk frequency, see
— cdm_clock_enable_register - enable Mclk, see
— CCR- select BitClk and Frame Frequency
IRCR1
register - select full duplex and SIP mode
IRMDR register - select the clock divider
TFALARM
RFALARM,
CR
register - enable or disable receiver and transmitter
Port_config - select the right Pin-Muxing, see
15.3.4.2.1

Block Diagram and Signal Definition for MIR Mode

The signal definitions for MIR mode are the same as in SIR mode. Please see
Freescale Semiconductor
Value
0x0A
Disable the Tx and Rx part for configuration if the PSC was enabled by the work
before.
select the SIR mode
0x01
set SIR pulse width to 1.6 ms
0x6A
set counter for SIR pulse width for IPB clock 66 MHz
0x00
set the Baud rate to 9600 with IPB clock frequency 66 MHz
0xD7
0x0XXX
Choose Rx FIFO "almost full" threshold level.
0x0XXX
Choose Tx FIFO "almost empty" threshold level.
0xXXXX
select the desired interrupt
Select the Pin-Muxing for IrDA mode, see
0x05
Enable Tx and Rx
- select the FIFO "Alarm" level
Chapter 2, Signal Descriptions
MPC5200B Users Guide, Rev. 1
Setting
Section 5.5.14, PSC6 (IrDA) Mclock Config Register—MBAR + 0x0234
Section 5.5.6, CDM Clock Enable Register—MBAR + 0x0214
Table 15-90.
PSC Operation Modes
Section 15.3.4.1, PSC in SIR Mode
15-67

Advertisement

Table of Contents
loading

Table of Contents