This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Writing MCI FIFO - LPC2368

Hi

Im trying to write in MCI FIFO but without success..

Im doing like:

MCI_DATA_CTRL = 0x11;
_printf("\r\nFIFO_COUNTER = 0x%X", MCI_FIFO_CNT);
MCI_FIFO |= 0xFFFFFFFF;
_printf("\r\nFIFO = 0x%X", MCI_FIFO);
_printf("\r\nFIFO_COUNTER = 0x%X", MCI_FIFO_CNT);

The answer I got is:

0 0
0

Do not show up the data that i wrote in MCI FIFO!
Im using LPC2368.

Waiting for a help!

Thank you,

Fabio.

Parents
  • What makes you think that you can write to MCIFIFO and then read back the same value?

    The user manual says that you can configure the FIFO for transmit or receive mode. But where does it say that in transmit mode, you can read back your writes.

    There is a sentence "The receive and transmit FIFOs can be read or written as 32 bit wide registers."

    But it never claims readback support. Only that the receive FIFO can be read and the transmit FIFO can be written.

    Next thing - should you prepare your data before trying to start a transfer?

    The data length register has a note "To initiate a data transfer, write to the data timer register and the data length register before writing to the data control register."

    Just so we know - have you read through the chapter about MCI? All of it? Have you moved back to the start of the chapter and read it again since you would now have learned all the terms you would need just to be able to understand the text?

    Or have you set a course for an iterative trial-and-error approach?

Reply
  • What makes you think that you can write to MCIFIFO and then read back the same value?

    The user manual says that you can configure the FIFO for transmit or receive mode. But where does it say that in transmit mode, you can read back your writes.

    There is a sentence "The receive and transmit FIFOs can be read or written as 32 bit wide registers."

    But it never claims readback support. Only that the receive FIFO can be read and the transmit FIFO can be written.

    Next thing - should you prepare your data before trying to start a transfer?

    The data length register has a note "To initiate a data transfer, write to the data timer register and the data length register before writing to the data control register."

    Just so we know - have you read through the chapter about MCI? All of it? Have you moved back to the start of the chapter and read it again since you would now have learned all the terms you would need just to be able to understand the text?

    Or have you set a course for an iterative trial-and-error approach?

Children