AN332
Table 48 provides an example of programming the AM/SW/LW 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 48. Programming Example for the AM/SW/LW Receiver
Action
CMD
0x01
ARG1
0xC1
ARG2
0xB0
STATUS
→0x80
CMD
0x12
ARG1
0x00
ARG2 (PROP)
0x01
ARG3 (PROP)
0x04
ARG4 (PROPD)
0xBB
ARG5 (PROPD)
0x80
STATUS
→0x80
CMD
0x12
ARG1
0x00
ARG2 (PROP)
0x01
ARG3 (PROP)
0x02
ARG4 (PROPD)
0x00
ARG5 (PROPD)
0x00
STATUS
→0x80
CMD
0x01
ARG1
0xC1
ARG2
0x05
STATUS
→0x80
240
Data
Powerup in digital mode
POWER_UP
Set to AM/SW/LW Receive. Enable interrupts.
Set to Digital Audio Output
Reply Status. Clear-to-send high.
Action: Ensure that DCLK and DFS are already supplied
SET_PROPERTY
DIGITAL_OUTPUT_SAMPLE_RATE
Sample rate = 48000 Hz = 0xBB80
Reply Status. Clear-to-send high.
SET_PROPERTY
DIGITAL_OUTPUT_FORMAT
2
Mode: I
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
POWER_UP
Set to AM/SW/LW Receive. Enable interrupts.
Set to Analog Audio Output
Reply Status. Clear-to-send high.
Configuration
Confidential Rev. 0.2
Description
Need help?
Do you have a question about the Si4704 Series and is the answer not in the manual?