000-0046140-111
Page 125 of 169
SLG46140
17.4 SPI data buffer function
SPI data buffer can be used to have DCMP compare two different ADC timing data. The ADC buffer is shared with the DFFs that
are in the SPI macrocell. When the SPI is set to ADC buffer mode (reg[654]=1), the DFF ‘s data inputs of SPI’s parallel outputs
are from ADC (reg[655]=1), and the DFF’s clock source comes from matrix_output80 which can be programmed by user. The
DFF’s output (SPI[7:0]) is the ADC data’s buffered output which can be sent to DCMP/PWMs or FSM (CNT)s.
17.5 SPI Register Settings
Figure 76. The SPI used as ADC/FSM data buffer diagram
Table 77. SPI Register Settings
Signal Function
Register Bit
Address
Register Definition
SPI used as ADC/FSM
buffer enable (1 clock
delayed)
<654>
0: Disable
1: Enable
SPI parallel input data
source selection
<655>
0: FSM0[7:0],FSM1[7:0]
1: ADC
SPI clock phase (CHPA)
<656>
refer to SPI spec
SPI clock polarity
(CHOL)
<657>
refer to SPI spec
byte selection
<658>
0: 16bits
1: 8bits (less significant 8 bits)
SPI input/output mode
selection
<659>
0: serial in parallel out
1: parallel in serial out.
SPI SDIO output control
<997:996>
0x: pin12 dout from matrix 0 (out57)
10: from s2p (SDO)
11: from ADC serial output
0
1
0
1
D
Q
Q
Ck
RB
16
16
16
reg <654>
reg <655>
reg <657>
SPI_SCLK
(matrix_out80)
Resetb_core
0, ADC[7:0]
FSM0_Q[7:0], FSM1_Q[7:0]
SPI [15:0]