AnsweredAssumed Answered

Problem with BF506F SPORT.

Question asked by Belen on Oct 6, 2010
Latest reply on Feb 28, 2011 by Belen

I´m trying to get an interrupt ( callback event ) when one byte is received via SPORT. I have configured two ADI_DEV_1D_BUFFER, one of them is 128 bytes RX SPORT buffer and the other one    is 128 bytes TX SPORT buffer. The problem I'm having is that I receive the ADI_DEV_EVENT_BUFFER_PROCESSED when the buffer is full, that is when 128 bytes of data are received.

I have tried configuring the buffers as ADI_DEV_CIRCULAR_BUFFER having 128 sub-buffers and expecting  an ADI_DEV_EVENT_SUB_BUFFER_PROCESSED, but I've got an error when I've submitted the buffers.

 

The examples I've seen always use the DMA.

My question is: Can I have an SPORT interrupt without using DMA?  If so, what should I do?

Thank you.

Outcomes