
CMT2380F17
Rev0.1 | 248/347
www.cmostek.com
1.
See the AUXR8 in Section “4.3 Alternate Function Redirection”, for its alternate pin-out option.
2. Even if the SPI is configured as a master (MSTR=1), it can still be converted to slave mode by the
logic low of nSS pin input (if SSIG=0). Should this happen, the SPIF bit (SPSTAT.7) will be set and
SPEN will be cle
ared. (See Section “20.2.3 Mode Change on nSS-pin”)
。
20.1
Typical SPI Configurations
20.1.1
Single Master & Single Slave
For the master: any port pin, including nSS GPIO, can be used to drive the nSS pin of the slave. For the
slave: SSIG is ‘0’, and nSS pin is used to determine whether it is selected.
Master
Slave
MISO
MOSI
SPICLK
Port Pin
MISO
MOSI
SPICLK
nSS
Figure 20-2. SPI single master & single slave configuration
20.1.2
Dual Device, where either can be a Master or a Slave
Two devices are connected to each other and either device can be a master or a slave. When no SPI
operation is occurring, both can be configured as masters with MSTR=1, SSIG=0 and nSS GPIO configured
in quasi-bidirectional mode. When any device initiates a transfer, it can configure P1.4 as an output and drive
it low to force a “mode change to slave” in the other device. (See Section “20.2.3 Mode Change on nSS-pin”).
Master/
Slave
Slave/
Master
MISO
MOSI
SPICLK
nSS
MISO
MOSI
SPICLK
nSS
Figure 18-3. SPI dual device configuration, where either can be a master or a slave
20.1.3
Single Master & Multiple Slaves
For the master: any port pin, including nSS GPIO, can be used to drive the nSS pins of the slaves. For all
the slaves: SSIG is ‘0’, and nSS pin are used to determine whether it is selected.
Содержание 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...