AN332
Rev. 0.8
277
Table 55 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 “5. Commands
and Properties” for a full description of each command and property.
Table 55. 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
CMD
STATUS
RESP1
RESP2
RESP3
RESP4
RESP5
RESP6
RESP7
RESP8
0x10
0x80
0x1F
0x32
0x30
0x85
0xC5
0x32
0x30
0x42
GET_REV
Reply Status. Clear-to-send high.
Part Number, HEX (0x1F = 31 dec. = Si4731)
Firmware Major Rev, ASCII (0x32 = 2)
Firmware Minor Rev, ASCII (0x30 = 0)
Patch ID MSB, example only
Patch ID LSB, example only
Component Firmware Major Rev, ASCII (0x32 = 2)
Component Firmware Minor Rev, ASCII (0x30 = 0)
Chip Rev, ASCII (0x42 = revB)