![Silego GreenPAK SLG46140 Manual Download Page 122](http://html.mh-extra.com/html/silego/greenpak-slg46140/greenpak-slg46140_manual_1270947122.webp)
000-0046140-111
Page 121 of 169
SLG46140
17.0 Slave SPI - Serial to Parallel / Parallel to Serial Converter (SPI)
The Slave SPI data can be communicated between the SLG46140 and the larger system design through either the serial to
parallel or parallel to serial interface. The SPI has two 8-bit registers (2 bytes) that are used for data transfer. The external clock
signal and the nCSB (Enable Control Signal) comes from the Connection Matrix Out.
For serial to parallel operation (S2P), the serial data in (MOSI) comes from PIN 12 of the SLG46140. The S2P will produce a
16-bit parallel data output (S2P<15:0>) where the MSB <15:8> can be used by the PWM/D, PWM/DCMP1_IN-,
PWM/D and FSM0 logic cells, while the LSB <7:0> can be used by the PWM/DCMP0_IN-, PWM/D,
PWM/DCMP2_IN- and FSM1 logic cells.
In parallel to serial mode (P2S) there is an additional configuration of the length of converted code – 8-bit and 16-bit. With 8-bit
configuration the parallel data from FSM0 or ADC can be converted to serial data. PIN 12 is used to output this 8-bit serial data
out (MISO) signal. With 16 bit configuration the parallel data from FSM0 and FSM1 can be converted into a serial code. 8 LSB
bits of FSM1 data will be sent to PAR_IN<7:0> and 8 bits of FSM0 will be sent to PAR_IN<15:8>. Same as in 8-bit mode 16 bit
serial data will be output to PIN12.
17.1 SPI Functional Diagram
Figure 72. SPI Functional Diagram
SPI
PDO <7:0>
SDO
PDO<15:8>
SDI
I/O Mode reg <659>
SPI Mode reg <657:656>
16/8-bit reg <658>
Connection Matrix 0 Output <79>
Connection Matrix 0 Output <80>
CSB
SCLK
Pin 12
PDI <7:0>
0
1
ADC
FSM0 [7:0]
FSM1 [7:0]
Parallel Data Source reg<655>
ADC Buffer Enable reg <654>
PWM CLK SYNC reg <586>
ADC CLK SYNC reg <585>
FSM CLK SYNC reg <587>
FSM0 (8 LSBs)
PWM/DCMP0 IN+ (8 MSBs)
PWM/DCMP1 IN- (8 MSBs)
PWM/DCMP2 IN+ (8 MSBs)
PWM/DCMP2 IN-
PWM/DCMP1 IN+
PWM/DCMP0 IN-
FSM1
0X
10
11
Pin 12
ADC SDO
S2P SDO
SDO PATH reg <997:996>