Serial audio interface
SAI
0x0
0x400
registers
BCR1
BCR1
BConfiguration register 1
0x24
0x20
read-write
0x00000040
MCJDIV
Master clock divider
20
4
NODIV
No divider
19
1
DMAEN
DMA enable
17
1
SAIBEN
Audio block B enable
16
1
OutDri
Output drive
13
1
MONO
Mono mode
12
1
SYNCEN
Synchronization enable
10
2
CKSTR
Clock strobing edge
9
1
LSBFIRST
Least significant bit
first
8
1
DS
Data size
5
3
PRTCFG
Protocol configuration
2
2
MODE
Audio block mode
0
2
BCR2
BCR2
BConfiguration register 2
0x28
0x20
read-write
0x00000000
COMP
Companding mode
14
2
CPL
Complement bit
13
1
MUTECN
Mute counter
7
6
MUTEVAL
Mute value
6
1
MUTE
Mute
5
1
TRIS
Tristate management on data
line
4
1
FFLUS
FIFO flush
3
1
FTH
FIFO threshold
0
3
BFRCR
BFRCR
BFRCR
0x2C
0x20
read-write
0x00000007
FSOFF
Frame synchronization
offset
18
1
FSPOL
Frame synchronization
polarity
17
1
FSDEF
Frame synchronization
definition
16
1
FSALL
Frame synchronization active level
length
8
7
FRL
Frame length
0
8
BSLOTR
BSLOTR
BSlot register
0x30
0x20
read-write
0x00000000
SLOTEN
Slot enable
16
16
NBSLOT
Number of slots in an audio
frame
8
4
SLOTSZ
Slot size
6
2
FBOFF
First bit offset
0
5
BIM
BIM
BInterrupt mask register2
0x34
0x20
read-write
0x00000000
LFSDETIE
Late frame synchronization detection
interrupt enable
6
1
AFSDETIE
Anticipated frame synchronization
detection interrupt enable
5
1
CNRDYIE
Codec not ready interrupt
enable
4
1
FREQIE
FIFO request interrupt
enable
3
1
WCKCFG
Wrong clock configuration interrupt
enable
2
1
MUTEDET
Mute detection interrupt
enable
1
1
OVRUDRIE
Overrun/underrun interrupt
enable
0
1
BSR
BSR
BStatus register
0x38
0x20
read-only
0x00000000
FLVL
FIFO level threshold
16
3
LFSDET
Late frame synchronization
detection
6
1
AFSDET
Anticipated frame synchronization
detection
5
1
CNRDY
Codec not ready
4
1
FREQ
FIFO request
3
1
WCKCFG
Wrong clock configuration
flag
2
1
MUTEDET
Mute detection
1
1
OVRUDR
Overrun / underrun
0
1
BCLRFR
BCLRFR
BClear flag register
0x3C
0x20
write-only
0x00000000
LFSDET
Clear late frame synchronization
detection flag
6
1
CAFSDET
Clear anticipated frame synchronization
detection flag
5
1
CNRDY
Clear codec not ready flag
4
1
WCKCFG
Clear wrong clock configuration
flag
2
1
MUTEDET
Mute detection flag
1
1
OVRUDR
Clear overrun / underrun
0
1
BDR
BDR
BData register
0x40
0x20
read-write
0x00000000
DATA
Data
0
32
ACR1
ACR1
AConfiguration register 1
0x4
0x20
read-write
0x00000040
MCJDIV
Master clock divider
20
4
NODIV
No divider
19
1
DMAEN
DMA enable
17
1
SAIAEN
Audio block A enable
16
1
OutDri
Output drive
13
1
MONO
Mono mode
12
1
SYNCEN
Synchronization enable
10
2
CKSTR
Clock strobing edge
9
1
LSBFIRST
Least significant bit
first
8
1
DS
Data size
5
3
PRTCFG
Protocol configuration
2
2
MODE
Audio block mode
0
2
ACR2
ACR2
AConfiguration register 2
0x8
0x20
read-write
0x00000000
COMP
Companding mode
14
2
CPL
Complement bit
13
1
MUTECN
Mute counter
7
6
MUTEVAL
Mute value
6
1
MUTE
Mute
5
1
TRIS
Tristate management on data
line
4
1
FFLUS
FIFO flush
3
1
FTH
FIFO threshold
0
3
AFRCR
AFRCR
AFRCR
0xC
0x20
read-write
0x00000007
FSOFF
Frame synchronization
offset
18
1
FSPOL
Frame synchronization
polarity
17
1
FSDEF
Frame synchronization
definition
16
1
FSALL
Frame synchronization active level
length
8
7
FRL
Frame length
0
8
ASLOTR
ASLOTR
ASlot register
0x10
0x20
read-write
0x00000000
SLOTEN
Slot enable
16
16
NBSLOT
Number of slots in an audio
frame
8
4
SLOTSZ
Slot size
6
2
FBOFF
First bit offset
0
5
AIM
AIM
AInterrupt mask register2
0x14
0x20
read-write
0x00000000
LFSDET
Late frame synchronization detection
interrupt enable
6
1
AFSDETIE
Anticipated frame synchronization
detection interrupt enable
5
1
CNRDYIE
Codec not ready interrupt
enable
4
1
FREQIE
FIFO request interrupt
enable
3
1
WCKCFG
Wrong clock configuration interrupt
enable
2
1
MUTEDET
Mute detection interrupt
enable
1
1
OVRUDRIE
Overrun/underrun interrupt
enable
0
1
ASR
ASR
AStatus register
0x18
0x20
read-write
0x00000000
FLVL
FIFO level threshold
16
3
LFSDET
Late frame synchronization
detection
6
1
AFSDET
Anticipated frame synchronization
detection
5
1
CNRDY
Codec not ready
4
1
FREQ
FIFO request
3
1
WCKCFG
Wrong clock configuration flag. This bit
is read only.
2
1
MUTEDET
Mute detection
1
1
OVRUDR
Overrun / underrun
0
1
ACLRFR
ACLRFR
AClear flag register
0x1C
0x20
read-write
0x00000000
LFSDET
Clear late frame synchronization
detection flag
6
1
CAFSDET
Clear anticipated frame synchronization
detection flag.
5
1
CNRDY
Clear codec not ready flag
4
1
WCKCFG
Clear wrong clock configuration
flag
2
1
MUTEDET
Mute detection flag
1
1
OVRUDR
Clear overrun / underrun
0
1
ADR
ADR
AData register
0x20
0x20
read-write
0x00000000
DATA
Data
0
32