SLAU847F October 2022 – March 2026 MSPM0L1105 , MSPM0L1106 , MSPM0L1116 , MSPM0L1117 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2116 , MSPM0L2117 , MSPM0L2227 , MSPM0L2227-Q1 , MSPM0L2228 , MSPM0L2228-Q1
When using the Motorola frame format, the CDMODE bit can be set to use the CS3/CD line as signal to distinguish between Command and Data information. This is often used for LCD or data storage devices.
Command Function: To send out COMMAND, load CDMODE with 0xF and populate the transmit FIFO with the COMMAND data to be sent; the module will drive CS3/CD low and transmit the COMMAND data on the TX line.
Data Function with CDMODE as counter: After the COMMAND data is sent, load CDMODE with the number of data bytes to be transmitted and populate the transmit FIFO with the data to be sent. CS3/CD line will be driven high & data will be transmitted on the TX line; CDMODE will be decremented by 1 after each transmission. CS3/CD line remains high after the counter reaches '0'.
Alternatively, the DATA function can also be implemented in MANUAL mode, by writing CDMODE with a value of '0' and then populating the transmit FIFO. This will pull CS3/CD high and transmit populated in the transmit FIFO.