The 11 registers of I2S (Inter-IC Sound Interface), from 0x42004C00, with their reset value and every field. The PIC32CM2532LS00100 has 2513 registers in 56 peripherals, one page each.
I2S Inter-IC Sound Interface
CTRLAControl A
Address
0x42004C00
Reset
0x00
Access
read/write
7–
6–
5RXEN
4TXEN
3CKEN1
2CKEN0
1ENABLE
0SWRST
6 fields
Field
Bits
What it does
RXEN
5
Rx Serializer Enable
TXEN
4
Tx Serializer Enable
CKEN1
3
Clock Unit 1 Enable
CKEN0
2
Clock Unit 0 Enable
ENABLE
1
Enable
SWRST
0
Software Reset
CLKCTRL0Clock Unit n Control
Address
0x42004C04
Reset
0x00000000
Access
read/write
Size
32-bit
14 fields
Field
Bits
What it does
MCKOUTDIV
29:24
Master Clock Output Division Factor
MCKDIV
21:16
Master Clock Division Factor
MCKOUTINV
15
Master Clock Output Invert
MCKEN
14
Master Clock Enable
MCKSEL
13
Master Clock Select
0 GCLK_I2S_n is used as Master Clock n source
1 MCKn input pin is used as Master Clock n source
SCKOUTINV
12
Serial Clock Output Invert
SCKSEL
11
Serial Clock Select
0 Divided Master Clock n is used as Serial Clock n source
1 SCKn input pin is used as Serial Clock n source
FSOUTINV
10
Frame Sync Output Invert
FSINV
9
Frame Sync Invert
FSSEL
8
Frame Sync Select
0 Divided Serial Clock n is used as Frame Sync n source
1 FSn input pin is used as Frame Sync n source
BITDELAY
7
Data Delay from Frame Sync
0 Left Justified (0 Bit Delay)
1 I2S (1 Bit Delay)
FSWIDTH
6:5
Frame Sync Width
0 Frame Sync Pulse is 1 Slot wide (default for I2S protocol)
1 Frame Sync Pulse is half a Frame wide
2 Frame Sync Pulse is 1 Bit wide
3 Clock Unit n operates in Burst mode, with a 1-bit wide Frame Sync pulse per Data sample, only when Data transfer is requested
NBSLOTS
4:2
Number of Slots in Frame
SLOTSIZE
1:0
Slot Size
0 8-bit Slot for Clock Unit n
1 16-bit Slot for Clock Unit n
2 24-bit Slot for Clock Unit n
3 32-bit Slot for Clock Unit n
CLKCTRL1Clock Unit n Control
Address
0x42004C08
Reset
0x00000000
Access
read/write
Size
32-bit
14 fields
Field
Bits
What it does
MCKOUTDIV
29:24
Master Clock Output Division Factor
MCKDIV
21:16
Master Clock Division Factor
MCKOUTINV
15
Master Clock Output Invert
MCKEN
14
Master Clock Enable
MCKSEL
13
Master Clock Select
0 GCLK_I2S_n is used as Master Clock n source
1 MCKn input pin is used as Master Clock n source
SCKOUTINV
12
Serial Clock Output Invert
SCKSEL
11
Serial Clock Select
0 Divided Master Clock n is used as Serial Clock n source
1 SCKn input pin is used as Serial Clock n source
FSOUTINV
10
Frame Sync Output Invert
FSINV
9
Frame Sync Invert
FSSEL
8
Frame Sync Select
0 Divided Serial Clock n is used as Frame Sync n source
1 FSn input pin is used as Frame Sync n source
BITDELAY
7
Data Delay from Frame Sync
0 Left Justified (0 Bit Delay)
1 I2S (1 Bit Delay)
FSWIDTH
6:5
Frame Sync Width
0 Frame Sync Pulse is 1 Slot wide (default for I2S protocol)
1 Frame Sync Pulse is half a Frame wide
2 Frame Sync Pulse is 1 Bit wide
3 Clock Unit n operates in Burst mode, with a 1-bit wide Frame Sync pulse per Data sample, only when Data transfer is requested
NBSLOTS
4:2
Number of Slots in Frame
SLOTSIZE
1:0
Slot Size
0 8-bit Slot for Clock Unit n
1 16-bit Slot for Clock Unit n
2 24-bit Slot for Clock Unit n
3 32-bit Slot for Clock Unit n
INTENCLRInterrupt Enable Clear
Address
0x42004C0C
Reset
0x0000
Access
read/write
Size
16-bit
8 fields
Field
Bits
What it does
TXUR1
13
Transmit Underrun 1 Interrupt Enable
TXUR0
12
Transmit Underrun 0 Interrupt Enable
TXRDY1
9
Transmit Ready 1 Interrupt Enable
TXRDY0
8
Transmit Ready 0 Interrupt Enable
RXOR1
5
Receive Overrun 1 Interrupt Enable
RXOR0
4
Receive Overrun 0 Interrupt Enable
RXRDY1
1
Receive Ready 1 Interrupt Enable
RXRDY0
0
Receive Ready 0 Interrupt Enable
INTENSETInterrupt Enable Set
Address
0x42004C10
Reset
0x0000
Access
read/write
Size
16-bit
8 fields
Field
Bits
What it does
TXUR1
13
Transmit Underrun 1 Interrupt Enable
TXUR0
12
Transmit Underrun 0 Interrupt Enable
TXRDY1
9
Transmit Ready 1 Interrupt Enable
TXRDY0
8
Transmit Ready 0 Interrupt Enable
RXOR1
5
Receive Overrun 1 Interrupt Enable
RXOR0
4
Receive Overrun 0 Interrupt Enable
RXRDY1
1
Receive Ready 1 Interrupt Enable
RXRDY0
0
Receive Ready 0 Interrupt Enable
INTFLAGInterrupt Flag Status and Clear
Address
0x42004C14
Reset
0x0000
Access
read/write
Size
16-bit
8 fields
Field
Bits
What it does
TXUR1
13
Transmit Underrun 1
TXUR0
12
Transmit Underrun 0
TXRDY1
9
Transmit Ready 1
TXRDY0
8
Transmit Ready 0
RXOR1
5
Receive Overrun 1
RXOR0
4
Receive Overrun 0
RXRDY1
1
Receive Ready 1
RXRDY0
0
Receive Ready 0
SYNCBUSYSynchronization Status
Address
0x42004C18
Reset
0x0000
Access
read only
Size
16-bit
8 fields
Field
Bits
What it does
RXDATA
9
Rx Data Synchronization Status
TXDATA
8
Tx Data Synchronization Status
RXEN
5
Rx Serializer Enable Synchronization Status
TXEN
4
Tx Serializer Enable Synchronization Status
CKEN1
3
Clock Unit 1 Enable Synchronization Status
CKEN0
2
Clock Unit 0 Enable Synchronization Status
ENABLE
1
Enable Synchronization Status
SWRST
0
Software Reset Synchronization Status
TXCTRLTx Serializer Control
Address
0x42004C20
Reset
0x00000000
Access
read/write
Size
32-bit
17 fields
Field
Bits
What it does
DMA
25
Single or Multiple DMA Channels
0 Single DMA channel
1 One DMA channel per data channel
MONO
24
Mono Mode
0 Normal mode
1 Left channel data is duplicated to right channel
SLOTDIS7
23
Slot 7 Disabled for this Serializer
SLOTDIS6
22
Slot 6 Disabled for this Serializer
SLOTDIS5
21
Slot 5 Disabled for this Serializer
SLOTDIS4
20
Slot 4 Disabled for this Serializer
SLOTDIS3
19
Slot 3 Disabled for this Serializer
SLOTDIS2
18
Slot 2 Disabled for this Serializer
SLOTDIS1
17
Slot 1 Disabled for this Serializer
SLOTDIS0
16
Slot 0 Disabled for this Serializer
BITREV
15
Data Formatting Bit Reverse
0 Transfer Data Most Significant Bit (MSB) first (default for I2S protocol)
1 Transfer Data Least Significant Bit (LSB) first
EXTEND
14:13
Data Formatting Bit Extension
0 Extend with zeroes
1 Extend with ones
2 Extend with Most Significant Bit
3 Extend with Least Significant Bit
WORDADJ
12
Data Word Formatting Adjust
0 Data is right adjusted in word
1 Data is left adjusted in word
DATASIZE
10:8
Data Word Size
0 32 bits
1 24 bits
2 20 bits
3 18 bits
4 16 bits
5 16 bits compact stereo
6 8 bits
7 8 bits compact stereo
SLOTADJ
7
Data Slot Formatting Adjust
0 Data is right adjusted in slot
1 Data is left adjusted in slot
TXSAME
4
Transmit Data when Underrun
0 Zero data transmitted in case of underrun
1 Last data transmitted in case of underrun
TXDEFAULT
3:2
Line Default Line when Slot Disabled
0 Output Default Value is 0
1 Output Default Value is 1
3 Output Default Value is high impedance
RXCTRLRx Serializer Control
Address
0x42004C24
Reset
0x00000000
Access
read/write
Size
32-bit
18 fields
Field
Bits
What it does
RXLOOP
26
Loop-back Test Mode
DMA
25
Single or Multiple DMA Channels
0 Single DMA channel
1 One DMA channel per data channel
MONO
24
Mono Mode
0 Normal mode
1 Left channel data is duplicated to right channel
SLOTDIS7
23
Slot 7 Disabled for this Serializer
SLOTDIS6
22
Slot 6 Disabled for this Serializer
SLOTDIS5
21
Slot 5 Disabled for this Serializer
SLOTDIS4
20
Slot 4 Disabled for this Serializer
SLOTDIS3
19
Slot 3 Disabled for this Serializer
SLOTDIS2
18
Slot 2 Disabled for this Serializer
SLOTDIS1
17
Slot 1 Disabled for this Serializer
SLOTDIS0
16
Slot 0 Disabled for this Serializer
BITREV
15
Data Formatting Bit Reverse
0 Transfer Data Most Significant Bit (MSB) first (default for I2S protocol)