lpcware

SPI Transmissions in 8 bit words

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Rorrik on Fri Sep 05 11:59:15 MST 2014
I am trying to send data 8 bits at a time across SPI using the LPC812, with a delay between words. I've implemented a delay, but my words are 16 bit. To satisfy the conditions of the setup configuration, I put my 8 bit data in a 16 bit int array. And though I have set the DataSize to 8, it still uses two words at a time in transmissions. Is there a way to work around this to send the 8 bit data my slave is expecting?

Outcomes