Freescale Semiconductor MPC5200B ユーザーズマニュアル
PSC Operation Modes
MPC5200B Users Guide, Rev. 1
Freescale Semiconductor
15-67
15.3.4.1.3
Configuration Sequence Example for SIR Mode
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.
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:
important register to configure the PSC6 (only this PSC supports the IrDA modes) for MIR mode are:
•
register - select the MIR mode
•
register - Channel Mode
•
If clock generate from the internal source:
— cdm_irda_bitclk_config - select Mclk frequency, see
— cdm_irda_bitclk_config - select Mclk frequency, see
—
- select BitClk and Frame Frequency
•
register - select full duplex and SIP mode
•
IRMDR register - select the clock divider
•
TFALARM
- select the FIFO “Alarm” level
•
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
Table 15-91. Configuration Sequence Example for SIR Mode
Register
Value
Setting
0x0A
Disable the Tx and Rx part for configuration if the PSC was enabled by the work
before.
before.
0x04000000
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.
TFALARM
0x0XXX
Choose Tx FIFO “almost empty” threshold level.
0xXXXX
select the desired interrupt
Port_Config
0x00500000
Select the Pin-Muxing for IrDA mode, see
0x05
Enable Tx and Rx