![]() |
RTOS_MSPM0
1.1
ECE445M starter code
|
Synchronous serial communication. More...
Go to the source code of this file.
Functions | |
| void | SPI_OutData (char data) |
| Output data. More... | |
| void | SPI_OutCommand (char command) |
| Output command. More... | |
| void | SPI1_Reset (void) |
| Reset LCD. More... | |
| void | CS_Init (void) |
| SDC CS initialization. More... | |
| void | SPI1_Init (void) |
| initialize SPI1 More... | |
| void | TFT_OutCommand (char command) |
| Output command. More... | |
| void | TFT_OutData (char data) |
| Output data. More... | |
Synchronous serial communication.
SPI uses a chip select, clock, data out and data in. This interface is used for TFT and SDC This interface can be used for MKII LCD and the ST7735R LCD
| Pin | Function | Description |
|---|---|---|
| PB9 | SPI1 SCLK <tdLCD SPI clock (SPI) | |
| PB6 | GPIO CS | LCD SPI CS |
| PB0 | GPIO CS | SDC SPI CS |
| PB8 | SPI1 PICO | LCD SPI data (SPI) |
| PB7 | SPI1 POCI | SCD SPI data (SPI) |
| PB15 | GPIO | J2.17 LCD !RST =1 for run, =0 for reset |
| PB16 | GPIO | J4.31 LCD D/C RS =1 for data, =0 for command |