Hi, I am working on USART based SPI on Arduino Due, found some useful code to send a single byte (Using USART0 and USART1 in SPI Master Mode or SPI Slave Mode) it is working for me. Then I added another set of code to send another byte consecutively but it is not working.
My code to send 16-bit data
void loop() {
if (micros() - previousMicros >= interval) {
previousMicros = micros();
USART0->US_THR = 0xAA;
USART0->US_THR = 0xAA; // Added to send another byte. Did not work
}
}
So, what may be the missing thing that I should know to make it work for sending /receiving 16-bit data?