Hello,
I have a question regarding SPI chip selects on the C5515. In particular, how to set HI/LO the SPI_CS1 pin (see data pin assignments below).
This pin is used to select the SPI slave device.
The screen shot below shows for P11=SPI_CS0 and N4=SPI_CS1.
From examples I cannot figure out how the SPI_CSn pins get toggled lo/hi to select the slave device.
I am writing my own routines & do not plan on using the CSL code necessarily.
If I wanted to control GP[19] I would write
IOIDIR2 |= 0x0008; // set GP[19] as output
IODATAOUT |= 0x0008; // set GP[19] = HI
IODATAOUT &= 0xFFF7; // set GP[19] = LO
Pretty easy.
From table 3-11 in the dataseet (page 29)
LCD_CS1_E1/SPI_CS1 - N4 - For SPI, this pin is SPI chip select SPI_CS1.
If in the EBSR register I select PPMODE = Mode 5, the code above will be understood as controlling SPI_CS0 (Data Sheet Table 4-7).
Q1. But look at N4, LCD_CS1_E1SPI_CS1. Here there is no GP[n] for me to control.
What do I do in order to set SPI_CS1 = HI/LO?
What code analogous to that shown in red would I use?
Thanks for your help!