Imx6 ESAI TX FIFO empty interrupt - is it possible?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Imx6 ESAI TX FIFO empty interrupt - is it possible?

966 Views
sergeydanilov
Contributor III

Hello!

Is it possible to generate an interrupt when ESAI TX FIFO gets empty without sdma system usage?

As far as I understand from documentation - TX FIFO Empty event can only trigger an sdma request and it looks like I should write special sdma script to issue an interrupt (interrupt 34?)

May be it is possible to generate an interrupt somehow without using an sdma system?

Thanks!

0 Kudos
3 Replies

729 Views
igorpadykov
NXP Employee
NXP Employee

Hi sergeydanilov

you are right, TX FIFO Empty event may be generated only with sdma.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

729 Views
sergeydanilov
Contributor III

Thanks!

could you please clear up this info from the manual (signed with bold):

-----------------------------

25.6.9 Transmit Data Register n (ESAI_TXn)

ESAI_TX5, ESAI_TX4, ESAI_TX3, ESAI_TX2, ESAI_TX1 and ESAI_TX0 are 32-bit

write-only registers. Data to be transmitted is written into these registers and is

automatically transferred to the transmit shift registers (Figure 25-2 and Figure 25-3).

The data written (8, 12, 16, 20, or 24 bits) should occupy the most significant portion of

the TXn according to the ALC control bit setting. The unused bits (least significant

portion and the 8 most significant bits when ALC=1) of the TXn are don't care bits. The

Core is interrupted whenever the TXn becomes empty if the transmit data register empty

interrupt has been enabled.

-----------------------------

The question is - what does the sentence "TXn becomes empty" exactly mean? No more data in TX FIFO to fill up this transmit data register? Or interrupt issued just every time when every enabled transmitter actually transmits data?

0 Kudos

729 Views
igorpadykov
NXP Employee
NXP Employee

this means that at least one of the enabled transmit data registers is empty (TDE=1),

check Figure 25-1. ESAI Block Diagram, sect.25.4.2 ESAI Interrupt Requests

~igor

0 Kudos