PIC12F635/PIC16F636/639
The AFE operates in SPI mode 0,0. In mode 0,0 the
clock idles in the low state (Figure 11-19). SDI data is
loaded into the AFE on the rising edge of SCLK and
SDO data is clocked out on the falling edge of SCLK.
There must be multiples of 16 clocks (SCLK) while CS
is low or commands will abort.
11.32.2 COMMAND
DECODER/CONTROLLER
The circuit executes 8 SPI commands from the MCU.
The command structure is:
Command (3 bits) + Configuration Address (4 bits) +
Data Byte and Row Parity Bit received by the AFE Most
Significant bit first. Table 11-5 shows the available SPI
commands.
TABLE 11-5: SPI COMMANDS (AFE)
Row
Command Address
Data
Description
Parity
Command only – Address and Data are “Don’t Care”, but need to be clocked in regardless.
000
001
010
011
100
101
XXXX
XXXX
XXXX
XXXX
XXXX
XXXX
XXXX XXXX
XXXX XXXX
XXXX XXXX
XXXX XXXX
XXXX XXXX
XXXX XXXX
X
X
X
X
X
X
Clamp on – enable modulation circuit
Clamp off – disable modulation circuit
Enter Sleep mode (any other command wakes the AFE)
AGC Preserve On – to temporarily preserve the current AGC level
AGC Preserve Off – AGC again tracks strongest input signal
Soft Reset – resets various circuit blocks
Read Command – Data will be read from the specified register address.
110
0000
0001
0010
0011
0100
0101
0110
0111
Config Byte 0
Config Byte 1
Config Byte 2
Config Byte 3
Config Byte 4
Config Byte 5
Column Parity
AFE Status
P
P
P
P
P
P
P
X
General – options that may change during normal operation
LCX antenna tuning and LFDATA output format
LCY antenna tuning
LCZ antenna tuning
LCX and LCY sensitivity reduction
LCZ sensitivity reduction and modulation depth
Column parity byte for Config Byte 0 -> Config Byte 5
AFE status – parity error, which input is active, etc.
Write Command – Data will be written to the specified register address.
111
0000
0001
0010
0011
0100
0101
0110
0111
Config Byte 0
Config Byte 1
Config Byte 2
Config Byte 3
Config Byte 4
Config Byte 5
Column Parity
Not Used
P
P
P
P
P
P
P
X
General – options that may change during normal operation
LCX antenna tuning and LFDATA output format
LCY antenna tuning
LCZ antenna tuning
LCX and LCY sensitivity reduction
LCZ sensitivity reduction and modulation depth
Column parity byte for Config Byte 0 -> Config Byte 5
Register is readable, but not writable
Note:
‘P’ denotes the row parity bit (odd parity) for the respective data byte.
© 2007 Microchip Technology Inc.
DS41232D-page 121