A N 3 3 2
298
Rev. 0.8
Table 56 provides an example of programming the AM/LW/SW 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.
Note that 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 56. Programming Example for the AM/LW/SW Receiver
Action
Data
Description
Powerup in Digital Mode
CMD
ARG1
ARG2
STATUS
0x01
0xC1
0xB0
→
0x80
POWER_UP
Set to AM/LW/SW 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 = 48000 Hz = 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: I
2
S, 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
0xC1
0x05
→
0x80
POWER_UP
Set to AM/LW/SW Receive. Enable interrupts.
Set to Analog Audio Output
Reply Status. Clear-to-send high.
Configuration