4 microcontroller configuration commands, Microcontroller configuration commands, Cs5378 – Cirrus Logic CS5378 User Manual
Page 33: Write df register - 0x01, Sample command, Read df register - 0x02

CS5378
DS639F3
33
9.4 Microcontroller Configuration
Commands
A summary of available microcontroller configura-
tion commands is listed in Table 9.
Write DF Register - 0x01
This configuration command writes a specified
digital filter register. Digital filter registers control
hardware peripherals and filtering functions. See
“Digital Filter Registers” on page 71 for the bit def-
initions of the digital filter registers.
Sample Command:
Write digital filter register 0x00 with data value
0x060431. Then write 0x20 with data 0x000240.
02 03 00 00 01 00 00 00 06 04 31
Delay 1 ms or poll E2DREQ
02 03 00 00 01 00 00 20 00 02 40
Delay 1 ms or poll E2DREQ
Read DF Register - 0x02
This command reads a specified digital filter regis-
ter. The register value is requested in the first serial
transaction, with the register value copied to
SPIDAT1 and read in a subsequent serial transac-
tion.
Sample Command:
Read digital filter registers 0x00 and 0x20.
02 03 00 00 02 00 00 00
Delay 1 ms or poll E2DREQ
MOSI: 03 06 00 00 00
MISO: xx xx 06 04 31
02 03 00 00 02 00 00 20
Delay 1 ms or poll E2DREQ
MOSI: 03 06 00 00 00
MISO: xx xx 00 02 40
[DATA] indicates data word returned from digital filter.
(DATA) indicates multiple words of this type are to be written.
Name
CMD
24-bit
DAT1
24-bit
DAT2
24-bit
Description
NOP
000000
-
-
No Operation
WRITE DF REGISTER
000001
REG
DATA
Write Digital Filter Register
READ DF REGISTER
000002
REG
[DATA]
-
-
Read Digital Filter Register
WRITE FIR COEFFICIENTS
000003
NUM FIR1
(FIR COEF)
NUM FIR2
(FIR COEF)
Write Custom FIR Coefficients
WRITE IIR COEFFICIENTS
000004
a11
b11
a22
b21
b10
a21
b20
b22
Write Custom IIR Coefficients
WRITE ROM COEFFICIENTS
000005
COEF SEL
-
Use On-Chip Coefficients
NOP
000006
-
-
No Operation
NOP
000007
-
-
No Operation
FILTER START
000008
-
-
Start Digital Filter Operation
FILTER STOP
000009
-
-
Stop Digital Filter Operation
Table 9. Microcontroller Boot Configuration Commands