Andreas Schwarz <andrea...@web.de> wrote:

> daniel.n...@sigicom.com (Daniel Néri) wrote:
> 
> > Andreas Schwarz <andrea...@web.de> writes:
> > 
> > > I'm talking to a MMC in SPI-Mode, and if I don't check TXEPT (or
> > > alternatively URXIFG0) it doesn't work reliably!
> > 
> > It's actually pretty simple: UTXIFG gets set when UTXBUF becomes
> > empty, i.e. when the data has moved from UTXBUF to the transmitter
> > shift register and starts to shift out on the output pin. TXEPT is
> > set when UTXBUF *and* the transmitter shift register are empty, i.e.
> > after the last bit of the data has been shifted out (and no new data
> > has been written to UTXBUF).
> 
> Then I don't understand why it isn't sufficient to test UTXIFG in my
> application:

After having a close look at the MMC datasheet again I found out that my
initialisation wasn't correct. Now it works of course without TXEPT.

Reply via email to