Hi,
I am trying to transmit and receive more than 16 bits via SPI A.
After configuring the SPI A bus in 16 bit, 4-wire master mode with FIFO enabled and SPIFFCT.all = 0x00, I tried to send 48 bits within one CS frame. This works:
SpiaRegs.SPITXBUF = 0xFF; SpiaRegs.SPITXBUF = 0x00; SpiaRegs.SPITXBUF = 0xF0;
After the transmission I would like to receive the bits (tested by connecting MISO and MOSI).
Neither this:
SpiaRegs.SPITXBUF = 0xFF; SpiaRegs.SPITXBUF = 0x00; SpiaRegs.SPITXBUF = 0xF0; RX1 = SpiaRegs.SPIRXBUF; RX2 = SpiaRegs.SPIRXBUF; RX3 = SpiaRegs.SPIRXBUF;
nor this:
SpiaRegs.SPITXBUF = 0xFF; RX1 = SpiaRegs.SPIRXBUF; SpiaRegs.SPITXBUF = 0x00; RX2 = SpiaRegs.SPIRXBUF; SpiaRegs.SPITXBUF = 0xF0; RX3 = SpiaRegs.SPIRXBUF;
could deliver the sent bit sequence.
How can I implement this ? Transmit and receive of 48 bits within one CS frame.
Thank you !
- Brian