\n

I2S

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x18 byte (0x0)
mem_usage : registers
protection : not protected

address_offset : 0x20 Bytes (0x0)
size : 0x8 byte (0x0)
mem_usage : registers
protection : not protected

Registers

I2S_CTL0 (CTL0)

I2S_TXFIFO (TXFIFO)

I2S_RXFIFO (RXFIFO)

I2S_CTL1 (CTL1)

I2S_STATUS1 (STATUS1)

I2S_CLKDIV (CLKDIV)

I2S_IEN (IEN)

I2S_STATUS0 (STATUS0)


I2S_CTL0 (CTL0)

I2S Control Register 0
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

I2S_CTL0 I2S_CTL0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 I2SEN TXEN RXEN MUTE DATWIDTH MONO ORDER SLAVE MCLKEN TXFBCLR RXFBCLR TXPDMAEN RXPDMAEN RXLCH FORMAT PCMSYNC CHWIDTH TDMCHNUM

I2SEN : I2S Controller Enable Bit
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

I2S controller Disabled

#1 : 1

I2S controller Enabled

End of enumeration elements list.

TXEN : Transmit Enable Bit
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Data transmission Disabled

#1 : 1

Data transmission Enabled

End of enumeration elements list.

RXEN : Receive Enable Bit
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Data receiving Disabled

#1 : 1

Data receiving Enabled

End of enumeration elements list.

MUTE : Transmit Mute Enable Bit
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Transmit data is shifted from buffer

#1 : 1

Send zero on transmit channel

End of enumeration elements list.

DATWIDTH : Data Width\nThis bit field is used to define the bit-width of data word in each audio channel
bits : 4 - 5 (2 bit)
access : read-write

Enumeration:

#00 : 0

The bit-width of data word is 8-bit

#01 : 1

The bit-width of data word is 16-bit

#10 : 2

The bit-width of data word is 24-bit

#11 : 3

The bit-width of data word is 32-bit

End of enumeration elements list.

MONO : Monaural Data Control\nNote: When chip records data, RXLCH (I2S_CTL0[23]) indicates which channel data will be saved if monaural format is selected.
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

Data is stereo format

#1 : 1

Data is monaural format

End of enumeration elements list.

ORDER : Stereo Data Order in FIFO\nIn 8-bit/16-bit data width, this bit is used to select whether the even or odd channel data is stored in higher byte. In 24-bit data width, this is used to select the left/right alignment method of audio data which is stored in data memory consisted of 32-bit FIFO entries.\nMSB of 24-bit audio data in each channel is aligned to left side in 32-bit FIFO entries.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Even channel data at high byte in 8-bit/16-bit data width

#1 : 1

Even channel data at low byte in 8-bit/16-bit data width

End of enumeration elements list.

SLAVE : Slave Mode Enable Bit\nNote: I2S can operate as master or slave. For Master mode, I2S_BCLK and I2S_LRCLK pins are output mode and send out bit clock to Audio CODEC chip. In Slave mode, I2S_BCLK and I2S_LRCLK pins are input mode and I2S_BCLK and I2S_LRCLK signals are received from outer Audio CODEC chip.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Master mode

#1 : 1

Slave mode

End of enumeration elements list.

MCLKEN : Master Clock Enable Bit\nIf MCLKEN is set to 1, I2S controller will generate master clock on I2S_MCLK pin for external audio devices.
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

#0 : 0

Master clock Disabled

#1 : 1

Master clock Enabled

End of enumeration elements list.

TXFBCLR : Transmit FIFO Buffer Clear Note 1: Write 1 to clear transmit FIFO, internal pointer is reset to FIFO start point, and TXCNT (I2S_STATUS1[12:8]) returns 0 and transmit FIFO becomes empty but data in transmit FIFO is not changed. Note 2: This bit is clear by hardware automatically, read it return 0.
bits : 18 - 18 (1 bit)
access : read-write

Enumeration:

#0 : 0

No Effect

#1 : 1

Clear TX FIFO

End of enumeration elements list.

RXFBCLR : Receive FIFO Buffer Clear Note 1: Write 1 to clear receive FIFO, internal pointer is reset to FIFO start point, and RXCNT (I2S_STATUS1[20:16]) returns 0 and receive FIFO becomes empty. Note 2: This bit is cleared by hardware automatically, read it return 0.
bits : 19 - 19 (1 bit)
access : read-write

Enumeration:

#0 : 0

No Effect

#1 : 1

Clear RX FIFO

End of enumeration elements list.

TXPDMAEN : Transmit PDMA Enable Bit
bits : 20 - 20 (1 bit)
access : read-write

Enumeration:

#0 : 0

Transmit PDMA function Disabled

#1 : 1

Transmit PDMA function Enabled

End of enumeration elements list.

RXPDMAEN : Receive PDMA Enable Bit
bits : 21 - 21 (1 bit)
access : read-write

Enumeration:

#0 : 0

Receive PDMA function Disabled

#1 : 1

Receive PDMA function Enabled

End of enumeration elements list.

RXLCH : Receive Left Channel Enable Bit
bits : 23 - 23 (1 bit)
access : read-write

Enumeration:

#0 : 0

Receive channel1 data in MONO mode

#1 : 1

Receive channel0 data in MONO mode

End of enumeration elements list.

FORMAT : Data Format Selection
bits : 24 - 26 (3 bit)
access : read-write

Enumeration:

#000 : 0

I2S standard data format

#001 : 1

I2S with MSB justified

#010 : 2

I2S with LSB justified

#011 : 3

Reserved.

#100 : 4

PCM standard data format

#101 : 5

PCM with MSB justified

#110 : 6

PCM with LSB justified

#111 : 7

Reserved.

End of enumeration elements list.

PCMSYNC : PCM Synchronization Pulse Length Selection\nThis bit field is used to select the high pulse length of frame synchronization signal in PCM protocol\nNote: This bit is only available in master mode
bits : 27 - 27 (1 bit)
access : read-write

Enumeration:

#0 : 0

One BCLK period

#1 : 1

One channel period

End of enumeration elements list.

CHWIDTH : Channel Width This bit fields are used to define the length of audio channel. If CHWIDTH DATWIDTH, the hardware will set the real channel length as the bit-width of audio data which is defined by DATWIDTH.
bits : 28 - 29 (2 bit)
access : read-write

Enumeration:

#00 : 0

The bit-width of each audio channel is 8-bit

#01 : 1

The bit-width of each audio channel is 16-bit

#10 : 2

The bit-width of each audio channel is 24-bit

#11 : 3

The bit-width of each audio channel is 32-bit

End of enumeration elements list.

TDMCHNUM : TDM Channel Number
bits : 30 - 31 (2 bit)
access : read-write

Enumeration:

#00 : 0

2 channels in audio frame

#01 : 1

4 channels in audio frame

#10 : 2

6 channels in audio frame

#11 : 3

8 channels in audio frame

End of enumeration elements list.


I2S_TXFIFO (TXFIFO)

I2S Transmit FIFO Register
address_offset : 0x10 Bytes (0x0)
access : write-only
reset_value : 0x0
reset_Mask : 0x0

I2S_TXFIFO I2S_TXFIFO write-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TXFIFO

TXFIFO : Transmit FIFO Bits\nI2S contains 16 words (16x32 bits) data buffer for data transmit. Write data to this register to prepare data for transmit. The remaining word number is indicated by TXCNT (I2S_STATUS1[12:8]).
bits : 0 - 31 (32 bit)
access : write-only


I2S_RXFIFO (RXFIFO)

I2S Receive FIFO Register
address_offset : 0x14 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

I2S_RXFIFO I2S_RXFIFO read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RXFIFO

RXFIFO : Receive FIFO Bits\nI2S contains 16 words (16x32 bits) data buffer for data receive. Read this register to get data in FIFO. The remaining data word number is indicated by RXCNT (I2S_STATUS1[20:16]).
bits : 0 - 31 (32 bit)
access : read-only


I2S_CTL1 (CTL1)

I2S Control Register 1
address_offset : 0x20 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

I2S_CTL1 I2S_CTL1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CH0ZCEN CH1ZCEN CH2ZCEN CH3ZCEN CH4ZCEN CH5ZCEN CH6ZCEN CH7ZCEN TXTH RXTH PBWIDTH PB16ORD

CH0ZCEN : Channel0 Zero-cross Detection Enable Bit Note 2: If this bit is set to 1, when channel0 data sign bit change or next shift data bits are all 0 then CH0ZCIF(I2S_STATUS1[0]) flag is set to 1. Note 3: If CH0ZCIF flag is set to 1, the channel0 will be mute.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

channel0 zero-cross detect Disabled

#1 : 1

channel0 zero-cross detect Enabled

End of enumeration elements list.

CH1ZCEN : Channel1 Zero-cross Detect Enable Bit Note 2: If this bit is set to 1, when channel1 data sign bit change or next shift data bits are all 0 then CH1ZCIF(I2S_STATUS1[1]) flag is set to 1. Note 3: If CH1ZCIF flag is set to 1, the channel1 will be mute.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

channel1 zero-cross detect Disabled

#1 : 1

channel1 zero-cross detect Enabled

End of enumeration elements list.

CH2ZCEN : Channel2 Zero-cross Detect Enable Bit Note 2: If this bit is set to 1, when channel2 data sign bit change or next shift data bits are all 0 then CH2ZCIF(I2S_STATUS1[2]) flag is set to 1. Note 3: If CH2ZCIF flag is set to 1, the channel2 will be mute.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

channel2 zero-cross detect Disabled

#1 : 1

channel2 zero-cross detect Enabled

End of enumeration elements list.

CH3ZCEN : Channel3 Zero-cross Detect Enable Bit Note 2: If this bit is set to 1, when channel3 data sign bit change or next shift data bits are all 0 then CH3ZCIF(I2S_STATUS1[3]) flag is set to 1. Note 3: If CH3ZCIF flag is set to 1, the channel3 will be mute.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

channel3 zero-cross detect Disabled

#1 : 1

channel3 zero-cross detect Enabled

End of enumeration elements list.

CH4ZCEN : Channel4 Zero-cross Detect Enable Bit Note 2: If this bit is set to 1, when channel4 data sign bit change or next shift data bits are all 0 then CH4ZCIF(I2S_STATUS1[4]) flag is set to 1. Note 3: If CH4ZCIF flag is set to 1, the channel4 will be mute.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

channel4 zero-cross detect Disabled

#1 : 1

channel4 zero-cross detect Enabled

End of enumeration elements list.

CH5ZCEN : Channel5 Zero-cross Detect Enable Bit Note 2: If this bit is set to 1, when channel5 data sign bit change or next shift data bits are all 0 then CH5ZCIF(I2S_STATUS1[5]) flag is set to 1. Note 3: If CH5ZCIF flag is set to 1, the channel5 will be mute.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

channel5 zero-cross detect Disabled

#1 : 1

channel5 zero-cross detect Enabled

End of enumeration elements list.

CH6ZCEN : Channel6 Zero-cross Detect Enable Bit Note 2: If this bit is set to 1, when channel6 data sign bit change or next shift data bits are all 0 then CH6ZCIF(I2S_STATUS1[6]) flag is set to 1. Note 3: If CH6ZCIF flag is set to 1, the channel6 will be mute.
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

channel6 zero-cross detect Disabled

#1 : 1

channel6 zero-cross detect Enabled

End of enumeration elements list.

CH7ZCEN : Channel7 Zero-cross Detect Enable Bit Note 2: If this bit is set to 1, when channel7 data sign bit change or next shift data bits are all 0 then CH7ZCIF (I2S_STATUS1[7]) flag is set to 1. Note 3: If CH7ZCIF flag is set to 1, the channel7 will be mute.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

channel7 zero-cross detect Disabled

#1 : 1

channel7 zero-cross detect Enabled

End of enumeration elements list.

TXTH : Transmit FIFO Threshold Level Note: If remain data word number in transmit FIFO is less than or equal to threshold level then TXTHIF (I2S_STATUS0[18]) flag is set.
bits : 8 - 11 (4 bit)
access : read-write

Enumeration:

#0000 : 0

0 data word in transmit FIFO

#0001 : 1

1 data word in transmit FIFO

#0010 : 2

2 data words in transmit FIFO

#1110 : 14

14 data words in transmit FIFO

#1111 : 15

15 data words in transmit FIFO

End of enumeration elements list.

RXTH : Receive FIFO Threshold Level\nNote: When received data word number in receive buffer is larger than threshold level then RXTHIF (I2S_STATUS0[10]) flag is set.
bits : 16 - 19 (4 bit)
access : read-write

Enumeration:

#0000 : 0

1 data word in receive FIFO

#0001 : 1

2 data words in receive FIFO

#0010 : 2

3 data words in receive FIFO

#1110 : 14

15 data words in receive FIFO

#1111 : 15

16 data words in receive FIFO

End of enumeration elements list.

PBWIDTH : Peripheral Bus Data Width Selection\nThis bit is used to choice the available data width of APB bus. It must be set to 1 while PDMA function is enable and it is set to 16-bit transmission mode
bits : 24 - 24 (1 bit)
access : read-write

Enumeration:

#0 : 0

32 bits data width

#1 : 1

16 bits data width

End of enumeration elements list.

PB16ORD : FIFO Read/Write Order in 16-bit Width of Peripheral Bus
bits : 25 - 25 (1 bit)
access : read-write

Enumeration:

#0 : 0

Low 16-bit read/write access first

#1 : 1

High 16-bit read/write access first

End of enumeration elements list.


I2S_STATUS1 (STATUS1)

I2S Status Register 1
address_offset : 0x24 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

I2S_STATUS1 I2S_STATUS1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CH0ZCIF CH1ZCIF CH2ZCIF CH3ZCIF CH4ZCIF CH5ZCIF CH6ZCIF CH7ZCIF TXCNT RXCNT

CH0ZCIF : Channel0 Zero-cross Interrupt Flag\nIt indicates channel0 next sample data sign bit is changed or all data bits are 0.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No zero-cross in channel0

#1 : 1

Channel0 zero-cross is detected

End of enumeration elements list.

CH1ZCIF : Channel1 Zero-cross Interrupt Flag\nIt indicates channel1 next sample data sign bit is changed or all data bits are 0.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

No zero-cross in channel1

#1 : 1

Channel1 zero-cross is detected

End of enumeration elements list.

CH2ZCIF : Channel2 Zero-cross Interrupt Flag\nIt indicates channel2 next sample data sign bit is changed or all data bits are 0.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

No zero-cross in channel2

#1 : 1

Channel2 zero-cross is detected

End of enumeration elements list.

CH3ZCIF : Channel3 Zero-cross Interrupt Flag\nIt indicates channel3 next sample data sign bit is changed or all data bits are 0.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

No zero-cross in channel3

#1 : 1

Channel3 zero-cross is detected

End of enumeration elements list.

CH4ZCIF : Channel4 Zero-cross Interrupt Flag\nIt indicates channel4 next sample data sign bit is changed or all data bits are 0.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

No zero-cross in channel4

#1 : 1

Channel4 zero-cross is detected

End of enumeration elements list.

CH5ZCIF : Channel5 Zero-cross Interrupt Flag\nIt indicates channel5 next sample data sign bit is changed or all data bits are 0.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

No zero-cross in channel5

#1 : 1

Channel5 zero-cross is detected

End of enumeration elements list.

CH6ZCIF : Channel6 Zero-cross Interrupt Flag\nIt indicates channel6 next sample data sign bit is changed or all data bits are 0.
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

No zero-cross in channel6

#1 : 1

Channel6 zero-cross is detected

End of enumeration elements list.

CH7ZCIF : Channel7 Zero-cross Interrupt Flag\nIt indicates channel7 next sample data sign bit is changed or all data bits are 0.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

No zero-cross in channel7

#1 : 1

Channel7 zero-cross is detected

End of enumeration elements list.

TXCNT : Transmit FIFO Level (Read Only)\nThese bits indicate the number of available entries in transmit FIFO\nOthers are reserved.
bits : 8 - 12 (5 bit)
access : read-only

Enumeration:

#00000 : 0

No data

#00001 : 1

1 word in transmit FIFO

#00010 : 2

2 words in transmit FIFO

#01110 : 14

14 words in transmit FIFO

#01111 : 15

15 words in transmit FIFO

#10000 : 16

16 words in transmit FIFO

End of enumeration elements list.

RXCNT : Receive FIFO Level (Read Only)\nThese bits indicate the number of available entries in receive FIFO\nOthers are reserved.
bits : 16 - 20 (5 bit)
access : read-only

Enumeration:

#00000 : 0

No data

#00001 : 1

1 word in receive FIFO

#00010 : 2

2 words in receive FIFO

#01110 : 14

14 words in receive FIFO

#01111 : 15

15 words in receive FIFO

#10000 : 16

16 words in receive FIFO

End of enumeration elements list.


I2S_CLKDIV (CLKDIV)

I2S Clock Divider Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

I2S_CLKDIV I2S_CLKDIV read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 MCLKDIV BCLKDIV

MCLKDIV : Master Clock Divider\nIf chip external crystal frequency is (2xMCLKDIV)*256fs then software can program these bits to generate 256fs clock frequency to audio codec chip. If MCLKDIV is set to 0, MCLK is the same as external clock input.\nNote: F_MCLK is the frequency of MCLK, and F_I2SCLK is the frequency of the I2S_CLK
bits : 0 - 6 (7 bit)
access : read-write

BCLKDIV : Bit Clock Divider\nThe I2S controller will generate bit clock in Master mode. Software can program these bit fields to generate sampling rate clock frequency.\nNote: F_BCLK is the frequency of BCLK and F_I2SCLK is the frequency of I2S_CLK
bits : 8 - 17 (10 bit)
access : read-write


I2S_IEN (IEN)

I2S Interrupt Enable Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

I2S_IEN I2S_IEN read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RXUDFIEN RXOVFIEN RXTHIEN TXUDFIEN TXOVFIEN TXTHIEN CH0ZCIEN CH1ZCIEN CH2ZCIEN CH3ZCIEN CH4ZCIEN CH5ZCIEN CH6ZCIEN CH7ZCIEN

RXUDFIEN : Receive FIFO Underflow Interrupt Enable Bit\nNote: If software reads receive FIFO when it is empty then RXUDIF (I2S_STATUS0[8]) flag is set to 1. If RXUDFIEN bit is enabled, interrupt occurs.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

RXOVFIEN : Receive FIFO Overflow Interrupt Enable Bit\nNote: Interrupt occurs if this bit is set to 1 and RXOVIF (I2S_STATUS0[9]) flag is set to 1
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

RXTHIEN : Receive FIFO Threshold Level Interrupt Enable Bit Note: Interrupt occurs if this bit is set to 1 and data words in receive FIFO is larger than RXTH (I2S_CTL1[19:16]).
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

TXUDFIEN : Transmit FIFO Underflow Interrupt Enable Bit\nNote: Interrupt occur if this bit is set to 1 and TXUDIF (I2S_STATUS0[16]) flag is set to 1.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

TXOVFIEN : Transmit FIFO Overflow Interrupt Enable Bit\nNote: Interrupt occurs if this bit is set to 1 and TXOVIF (I2S_STATUS0[17]) flag is set to 1
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

TXTHIEN : Transmit FIFO Threshold Level Interrupt Enable Bit\nNote: Interrupt occurs if this bit is set to 1 and data words in transmit FIFO is less than or equal to TXTH (I2S_CTL1[11:8]).
bits : 10 - 10 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

CH0ZCIEN : Channel0 Zero-cross Interrupt Enable Bit
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

CH1ZCIEN : Channel1 Zero-cross Interrupt Enable Bit
bits : 17 - 17 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

CH2ZCIEN : Channel2 Zero-cross Interrupt Enable Bit
bits : 18 - 18 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

CH3ZCIEN : Channel3 Zero-cross Interrupt Enable Bit
bits : 19 - 19 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

CH4ZCIEN : Channel4 Zero-cross Interrupt Enable Bit
bits : 20 - 20 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

CH5ZCIEN : Channel5 Zero-cross Interrupt Enable Bit
bits : 21 - 21 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

CH6ZCIEN : Channel6 Zero-cross Interrupt Enable Bit
bits : 22 - 22 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.

CH7ZCIEN : Channel7 Zero-cross Interrupt Enable Bit
bits : 23 - 23 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt Disabled

#1 : 1

Interrupt Enabled

End of enumeration elements list.


I2S_STATUS0 (STATUS0)

I2S Status Register 0
address_offset : 0xC Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

I2S_STATUS0 I2S_STATUS0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 I2SINT I2SRXINT I2STXINT DATACH RXUDIF RXOVIF RXTHIF RXFULL RXEMPTY TXUDIF TXOVIF TXTHIF TXFULL TXEMPTY TXBUSY

I2SINT : I2S Interrupt Flag (Read Only)\nNote: It is wire-OR of I2STXINT and I2SRXINT bits.
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

#0 : 0

No I2S interrupt

#1 : 1

I2S interrupt

End of enumeration elements list.

I2SRXINT : I2S Receive Interrupt (Read Only)
bits : 1 - 1 (1 bit)
access : read-only

Enumeration:

#0 : 0

No receive interrupt

#1 : 1

Receive interrupt

End of enumeration elements list.

I2STXINT : I2S Transmit Interrupt (Read Only)
bits : 2 - 2 (1 bit)
access : read-only

Enumeration:

#0 : 0

No transmit interrupt

#1 : 1

Transmit interrupt

End of enumeration elements list.

DATACH : Transmission Data Channel (Read Only)\nThis bit fields are used to indicate which audio channel is current transmit data belong.
bits : 3 - 5 (3 bit)
access : read-only

Enumeration:

#000 : 0

channel0 (means left channel while 2-channel I2S/PCM mode)

#001 : 1

channel1 (means right channel while 2-channel I2S/PCM mode)

#010 : 2

channel2 (available while 4-channel TDM PCM mode)

#011 : 3

channel3 (available while 4-channel TDM PCM mode)

#100 : 4

channel4 (available while 6-channel TDM PCM mode)

#101 : 5

channel5 (available while 6-channel TDM PCM mode)

#110 : 6

channel6 (available while 8-channel TDM PCM mode)

#111 : 7

channel7 (available while 8-channel TDM PCM mode)

End of enumeration elements list.

RXUDIF : Receive FIFO Underflow Interrupt Flag Note 1: When receive FIFO is empty, and software reads the receive FIFO again. This bit will be set to 1, and it indicates underflow situation occurs. Note 2: Write 1 to clear this bit to 0
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

No underflow occur

#1 : 1

Underflow occur

End of enumeration elements list.

RXOVIF : Receive FIFO Overflow Interrupt Flag Note 1: When receive FIFO is full and receive hardware attempt to write data into receive FIFO then this bit is set to 1, data in 1st buffer is overwritten. Note 2: Write 1 to clear this bit to 0.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

No overflow occur

#1 : 1

Overflow occur

End of enumeration elements list.

RXTHIF : Receive FIFO Threshold Interrupt Flag (Read Only)\nNote: When data word(s) in receive FIFO is larger than threshold value set in RXTH (I2S_CTL1[19:16]) the RXTHIF bit becomes to 1. It keeps at 1 till RXCNT (I2S_STATUS1[20:16]) is less than or equal to RXTH (I2S_CTL1[19:16]) after software read RXFIFO register.
bits : 10 - 10 (1 bit)
access : read-only

Enumeration:

#0 : 0

Data word(s) in FIFO is less than or equal to threshold level

#1 : 1

Data word(s) in FIFO is larger than threshold level

End of enumeration elements list.

RXFULL : Receive FIFO Full (Read Only)\nNote: This bit reflects data words number in receive FIFO is 16.
bits : 11 - 11 (1 bit)
access : read-only

Enumeration:

#0 : 0

Not full

#1 : 1

Full

End of enumeration elements list.

RXEMPTY : Receive FIFO Empty (Read Only)\nNote: This bit reflects data words number in receive FIFO is 0
bits : 12 - 12 (1 bit)
access : read-only

Enumeration:

#0 : 0

Not empty

#1 : 1

Empty

End of enumeration elements list.

TXUDIF : Transmit FIFO Underflow Interrupt Flag Note 1: This bit will be set to 1 when shift logic hardware read data from transmitting FIFO and the filling data level in transmitting FIFO is not enough for one audio frame. Note 2: Write 1 to clear this bit to 0.
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

No underflow

#1 : 1

Underflow

End of enumeration elements list.

TXOVIF : Transmit FIFO Overflow Interrupt Flag Note 1: Write data to transmit FIFO when it is full and this bit set to 1 Note 2: Write 1 to clear this bit to 0.
bits : 17 - 17 (1 bit)
access : read-write

Enumeration:

#0 : 0

No overflow

#1 : 1

Overflow

End of enumeration elements list.

TXTHIF : Transmit FIFO Threshold Interrupt Flag (Read Only)\nNote: When data word(s) in transmit FIFO is less than or equal to threshold value set in TXTH (I2S_CTL1[11:8]) the TXTHIF bit becomes to 1. It keeps at 1 till TXCNT (I2S_STATUS1[12:8]) is larger than TXTH (I2S_CTL1[11:8]) after software write TXFIFO register.
bits : 18 - 18 (1 bit)
access : read-only

Enumeration:

#0 : 0

Data word(s) in FIFO is larger than threshold level

#1 : 1

Data word(s) in FIFO is less than or equal to threshold level

End of enumeration elements list.

TXFULL : Transmit FIFO Full (Read Only)\nThis bit reflect data word number in transmit FIFO is 16
bits : 19 - 19 (1 bit)
access : read-only

Enumeration:

#0 : 0

Not full

#1 : 1

Full

End of enumeration elements list.

TXEMPTY : Transmit FIFO Empty (Read Only)\nThis bit reflect data word number in transmit FIFO is 0
bits : 20 - 20 (1 bit)
access : read-only

Enumeration:

#0 : 0

Not empty

#1 : 1

Empty

End of enumeration elements list.

TXBUSY : Transmit Busy (Read Only)\nNote: This bit is cleared to 0 when all data in transmit FIFO and shift buffer is shifted out. And set to 1 when 1st data is load to shift buffer.
bits : 21 - 21 (1 bit)
access : read-only

Enumeration:

#0 : 0

Transmit shift buffer is empty

#1 : 1

Transmit shift buffer is busy

End of enumeration elements list.



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.