Cirrus Logic EP93xx User Manual

Page 667

Advertising
background image

DS785UM1

21-11

Copyright 2007 Cirrus Logic

I

2

S Controller

EP93xx User’s Guide

2

1

2

1

21

TX2 FIFO empty.

TX underflow.

The first three can have their interrupt level determined by I2STXCtrl[0]. If this bit = 1, then
the FIFO empty interrupt will occur when the FIFO is empty. If this bit = 0, then the FIFO
empty interrupt will occur when the FIFO is half empty.

All four are combined and are maskable with the TX interrupt register enable bit,
I2STXCtrl[1].

The FIFO empty internal interrupts are cleared if the FIFO’s are filled with data or the
corresponding channel is disabled.

The TX underflow internal interrupt is cleared by writing to both the left and right data
registers of all enabled TX channels. This interrupt will also be cleared if the corresponding
channel is disabled.

The I

2

S receiver generates 4 internal interrupts within the I

2

S controller. Each of these reflect

the status of the 3 individual RX FIFOs. These internal interrupts are as follows:

RX0 FIFO full.

RX1 FIFO full.

RX2 FIFO full.

RX overflow.

The first three can have their interrupt level determined by I2SRXCtrl[0]. If this bit = 1, then
the FIFO full interrupt will occur when the FIFO is full. If this bit = 0, then the FIFO full interrupt
will occur when the FIFO is half full.

All four are combined and are maskable with the RX interrupt register enable bit,
I2SRXCtrl[1].

The FIFO full internal interrupts are cleared if the FIFO’s become less than full or the
corresponding channel is disabled.

The RX overflow internal interrupt is cleared by reading both the left and right data registers
of all enabled RX channels. This interrupt will also be cleared if the corresponding channel is
disabled.

The RX and TX global interrupts are combined to form the I

2

S controller Interrupt, I2SINTR.

Table 21-6

summarizes which FIFO flags will generate interrupts when set. For example a

transmitter FIFO empty flag will result in an interrupt but for a receiver FIFO empty flag a
status bit only is set.

The sticky bits refer to bits I2SGlSts[11:6]. A write of zero is required to clear the setting of
these bits.

Advertising