AN332
Confidential Rev. 0.2
251
Table 49 provides an example for the WB 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 49. Programming Example for the WB/SAME Receiver
Action
Data
Description
CMD
ARG1
ARG2
STATUS
0x01
0xC3
0x05
→
0x80
POWER_UP
Set to weatherband receive. Enable interrupts.
Set to Analog Out.
Reply Status. Clear-to-send high.
CMD
STATUS
RESP1
RESP2
RESP3
RESP4
RESP5
RESP6
RESP7
RESP8
0x10
→
0x80
→
0x25
→
0x30
→
0x41
→
0x13
→
0x36
→
0x30
→
0x41
→
0x42
GET_REV
Reply Status. Clear-to-send high.
Part Number, HEX (0x25 = 37 dec. = Si4737)
Firmware Major Rev, ASCII (0x30 = 0)
Firmware Minor Rev, ASCII (0x41 = A)
Patch ID MSB, example only
Patch ID LSB, example only
Component Firmware Major Rev, ASCII (0x30 = 0)
Component Firmware Minor Rev, ASCII (0x41 = A)
Chip Rev, ASCII (0x42 = revB)
CMD
ARG1
ARG2 (PROP)
ARG3 (PROP)
ARG4 (PROPD)
ARG5 (PROPD)
STATUS
0x12
0x00
0x00
0x01
0x00
0xC7
→
0x80
SET_PROPERTY
GPO_IEN
Set STCIEN, ERRIEN, CTSIEN, ASQIEN, SAMEIEN
Reply Status. Clear-to-send high.
CMD
ARG1
ARG2 (PROP)
ARG3 (PROP)
ARG4 (PROPD)
ARG5 (PROPD)
STATUS
0x12
0x00
0x02
0x01
0x80
0x00
→
0x80
SET_PROPERTY
REFCLK_FREQ
REFCLK = 32768 Hz
Reply Status. Clear-to-send high.
CMD
ARG1
ARG2 (PROP)
ARG3 (PROP)
ARG4 (PROPD)
ARG5 (PROPD)
STATUS
0x12
0x00
0x02
0x02
0x00
0x01
→
0x80
SET_PROPERTY
REFCLK_PRESCALE
Divide by 1
Reply Status. Clear-to-send high.