Proper way to send 16 bit SPI data
I need to send 8 bit and 16 bit data with my 32f769. I found a register modification routine to change the bits from 8 to 16 and back. I checked the SFRs and it works (changing the bits that is),
When I transmit 8 bit data, all is fine. I can send 1,2,3 etc bytes without trouble.
When I load up a uint16_t with the correct data, verified in debug, with the SPI datasize bits set to 16 and a (uint8_t)&data pointing at the single uint16_t of data to be sent, I see 16 clock pulses on the scope but it sends two bytes with the data split between them padding the resert with 0x00.
How should I set it up properly or should I just split the data and send it myself as 8bits?
thanks