4 microcontroller configuration commands, Microcontroller configuration commands, Cs5376a – Cirrus Logic CS5376A User Manual

Page 35: Sample command

Advertising
background image

CS5376A

DS612F4

35

The E2DREQ bit reads high while a configuration
command is being processed. When low, the digital
filter is ready to receive a new configuration com-
mand.

9.4 Microcontroller Configuration

Commands

A summary of available microcontroller configura-
tion commands is listed in Table 7.

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 86 for the bit def-
initions of the digital filter registers.

Sample Command:

Write digital filter register 0x00 with data value
0x070431. Then write 0x20 with data 0x000240.

02 03 00 00 01 00 00 00 07 04 31

Delay 1 ms, monitor SINT, or poll E2DREQ

02 03 00 00 01 00 00 20 00 02 40

Delay 1 ms, monitor SINT, or poll E2DREQ

Read DF Register - 0x02

This command reads a specified digital filter regis-
ter. The register value is requested in the first SPI
transaction, with the register value copied to
SPI1DAT1 and read in a subsequent SPI transac-
tion.

Sample Command:

Read digital filter registers 0x00 and 0x20.

02 03 00 00 02 00 00 00

[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

WRITE TBS DATA

000006

NUM TBS

(TBS DATA)

-

(TBS DATA)

Write Custom Test Bit Stream Data

WRITE ROM TBS

000007

-

-

Use On-Chip TBS Data

FILTER START

000008

-

-

Start Digital Filter Operation

FILTER STOP

000009

-

-

Stop Digital Filter Operation

Table 7. Microcontroller Boot Configuration Commands

Advertising