Content originally posted in LPCWare by kabriolin on Mon May 20 00:48:08 MST 2013
New test,
GPIOSetBitValue(Debug_1_port, Debug_1_pin, 1);
LPC_USART->THR = 0xFF;
LPC_USART->THR = 0xFF;
LPC_USART->THR = 0xFF;
LPC_USART->THR = 0xFF;
LPC_USART->THR = 0xFF;
LPC_USART->THR = 0xFF;
LPC_USART->THR = 0xFF;
LPC_USART->THR = 0xFF;
LPC_USART->THR = 0xFF;
LPC_USART->THR = 0xFF;
GPIOSetBitValue(Debug_1_port, Debug_1_pin, 0);
The debug pin is high during 2.2uS, that's ok, but it takes 82us between the first byte and the end of the last one....
Instead of waiting between each byte, i have to wait for the last one.
I've also changed the baud rate (divided by 4), one byte transfert time 4us, and time between 2 bytes is 32us, but the fifo filling's time is always 2.2us.
So why is it waiting the equivalent time of 8 byte before sending the next one?
In the final apps, i'll have 5 or 6 uC echanging a lot of data, i can't wait a so long time. I will have a look on soft uart.
If you have any idea.
Thx.