
AN332
Confidential Rev. 0.2
219
Table 47 provides an example for the FM/RDS Receiver. The table is broken into three columns. The first column
lists the action taking place: command (CMD), argument (ARG), status (STATUS) or response (RESP). For
SET_PROPERTY commands, the property (PROP) and property data (PROPD) are indicated. The second column
lists the data byte or bytes in hexadecimal that are being sent or received. An arrow preceding the data indicates
data being sent from the device to the system controller. The third column describes the action.
In some cases the default properties may be acceptable and no modification is necessary. Refer to Section "5.
Commands and Properties" for a full description of each command and property.
Table 47. Programming Example for the FM/RDS Receiver
Action
Data
Description
Powerup in digital mode
CMD
ARG1
ARG2
STATUS
0x01
0xC0
0xB0
→
0x80
POWER_UP
Set to FM Receive. Enable interrupts.
Set to Digital Audio Output
Reply Status. Clear-to-send high.
Action: Ensure that DCLK and DFS are already supplied
CMD
ARG1
ARG2 (PROP)
ARG3 (PROP)
ARG4 (PROPD)
ARG5 (PROPD)
STATUS
0x12
0x00
0x01
0x04
0xBB
0x80
→
0x80
SET_PROPERTY
DIGITAL_OUTPUT_SAMPLE_RATE
Sample rate = 48000Hz = 0xBB80
Reply Status. Clear-to-send high.
CMD
ARG1
ARG2 (PROP)
ARG3 (PROP)
ARG4 (PROPD)
ARG5 (PROPD)
STATUS
0x12
0x00
0x01
0x02
0x00
0x00
→
0x80
SET_PROPERTY
DIGITAL_OUTPUT_FORMAT
Mode: I2S, stereo, 16bit, sample on rising edge of DCLK.
Reply Status. Clear-to-send high.
Action: Go to Configuration (bypass “Powerup in analog mode” section).
The rest of the programming is the same as analog.
Powerup in analog mode
CMD
ARG1
ARG2
STATUS
0x01
0xC0
0x05
→
0x80
POWER_UP
Set to FM Receive. Enable interrupts.
Set to Analog Audio Output
Reply Status. Clear-to-send high.
Configuration