CMT2380F17
Rev0.1 | 249/347
www.cmostek.com
Master
Slave #1
MISO
MOSI
SPICLK
Port Pin 1
MISO
MOSI
SPICLK
nSS
Slave #2
MISO
Port Pin 2
nSS
SPICLK
MOSI
Figure 20-4. SPI single master multiple slaves configuration
20.2
Configuring the SPI
Table 20
–1 shows configuration for the master/slave modes as well as usages and directions for the
modes.
Table 201. SPI Master and Slave Selection
SPEN
(SPCON.6)
SSIG
(SPCON.7)
nSS
-pin
MSTR
(SPCON.4)
Mode
MISO
-pin
MOSI
-pin
SPICLK
-pin
Remarks
0
X
X
X
SPI disabled input
input
input
SPI assigned port pint are used as
general port pins.
1
0
0
0
Salve
(selected)
output input
input
Selected as slave.
1
0
1
0
Slave
(not selected)
Hi-Z
input
input
Not selected.
1
0
0
1
0
Slave
(by mode
change)
output
input
input
Mode change to slave
if nSS pin is driven low, then MSTR
will be cleared to
‘0’ by H/W
automatically, and SPEN is
cleared, MODF is set.
1
0
1
1
Master
(idle)
input
Hi-Z
Hi-Z
MOSI and SPICLK are at high
impedance to avoid bus contention
when the Master is idle.
Master
(active)
output
output
MOSI and SPICLK are push-pull
when the Master is active.
1
1
X
0
Slave
output input
input
1
1
X
1
Master
input output
output
“X” means “don’t care”.
Содержание CMT2380F17
Страница 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Страница 111: ...CMT2380F17 Rev0 1 111 347 www cmostek com INT2IS 1 0 Selected Port Pin of nINT2 00 P4 4 01 P3 0 10 P1 1 11 P1 6...
Страница 131: ...CMT2380F17 Rev0 1 131 347 www cmostek com Figure 16 1 Timer 0 Mode 0 Structure Figure15 2 Timer 1 Mode 0 Structure...
Страница 161: ...CMT2380F17 Rev0 1 161 347 www cmostek com Figure 16 32 Split Timer 3 Mode 1 Structure AR with Ex INT...
Страница 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Страница 239: ...CMT2380F17 Rev0 1 239 347 www cmostek com Figure 19 5 8 bit Timer Mode Configuration for S1BRG S1TME 1...
Страница 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...
Страница 289: ...CMT2380F17 Rev0 1 289 347 www cmostek com...