Freescale Semiconductor MPC5200B User Manual page 566

Freescale semiconductor board users guide
Table of Contents

Advertisement

Frame
CLK
DATA
start of Frame
Table 15-80
shows an example how to configure the PSC1 as ESAI master. For the slave mode the bit SICR[GenClk] must be cleared and the
configuration of the
CCR
register can be ignored. In this configuration example the PSC will send 3 data words with 16 bit data in the 52
BitClk frame length. The last four bits in the frame will be empty (zero).
use PSC1 as ESAI master
16bit data, LSB first
BitClk frequency 4 MHz
FrameSync length 52 bit
data shifted out on the rising edge of BitClk
data transfer starts on FrameSync is active
FrameSync is active high
set the TFALARM level to 0x010, alarm occurs if 16 byte are in the TxFIFO
set the
RFALARM
level to 0x00C, alarm occurs if 12 byte space in the RxFIFO
enable TxRDY interrupt
Register
CR
SICR
cdm_psc1_bitclk_config
cdm_clock_enable_register
CCR
RFALARM
TFALARM
IMR
Port_Config
CR
Freescale Semiconductor
first Data word
Figure 15-10. ESAI Data Transmission
Table 15-81. 16-bit ESAI Master Mode for PSC1
Value
0x0A
Disable the Tx and Rx part for configuration if the PSC was enabled
by the work before.
0x12D20000
Select the 16bit Codec ESAI master mode, LSB first, DTS1=0
divide the f
0x8020
Section 5.5.11, PSC1 Mclock Config Register—MBAR + 0x0228
0x00000020
enable Mclk, see
0x0214
0x33030000
set the FrameSync length (52 bit) and SCKL frequency
0x000C
set the RFALARM level to 0x00C
0x0010
set the TFALARM level to 0x010
0x0100
enable TxRDY interrupt
0x00000006
Select the Pin-Muxing for PSC1 Codec mode, see
Descriptions
0x05
Enable Tx and Rx
MPC5200B Users Guide, Rev. 1
last Data word
Frame length
Setting
clock frequency from 528 to 16 MHz Mclk, see
system
Section 5.5.6, CDM Clock Enable Register—MBAR +
PSC Operation Modes
empty Data
until the next
frame starts
Chapter 2, Signal
15-55

Advertisement

Table of Contents
loading

Table of Contents