I have an application where I need to write 20 bits through the serial port using the SCS line as a sync. The SPI port has a max bit transfer of 16 Originally, I was planning to manually control the SCS line as a GPIO asserting before writing and desserting it after the two transfers one 16 bit and one 4 bit. I saw that in the SPIDAT1 register, there is a CS hold. So, I can setup the word format registers to the 2 required formats, send the two transfers calling on those formats and keep the CS control asserted between each. Looking into the SPRU718B manual Pg 49 and 50. There is a caution on Pg 50 regarding how to operate this feature to prevent a glitch.
The question: when a register is classified as a word read/write, is the term "word" considered to be 16 bits or 32 bits. If a word is considered 16 bits, I can offset the memory location as base +2 or 4700_003E for SPIDAT1 and rewrite this bit using a short pointer to this location? If a word is considered 32 bits, how can this be done?
Thanks in advance for any help. Regards...