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.
I would have thought that 10^9 would be 1,000,000,000. Wouldn't 512 be 2^9?
Well, as the writing on the T-Shirt goes:
There are 10 types of people in the world:
those who can read binary, and all the others.
;->
So the intention was 10^1001 ;)
It was clearly a type mistake, it's just you see that the result is right.
And the datasheet is confuse.. We have Command Path State Machine (CPSM) and Data Path State Machine (DPSM). But dont help to the sequence..
So..I follow CPSM steps and send the write command. I wait for an answer and if it's OK I go to DPSM? And then I prepare all registers, lenght, timer, FIFO.. Then I put 0x1 in Data_Control and the data is sent?
So what is the right way to put data in MCI FIFO? If I cant assign a direct data like this: MCI_FIFO = 0xFF;
How can I do?
Now my status is no longer 0
It is 0x45000 bits 12 - TxActive 14 - TxFIFO Half Empty 18 - TxFIFO Empty are asserted
So the problem Im having is with this damn FIFO. I dont understand how I can write in FIFO If I have to write a full 512B block and FIFO size its smaller.