Datasheet
ADuC7033
Rev. B | Page 115 of 140
SPI Control Register
Name: SPICON
Address: 0xFFFF0A10
Default Value: 0x0000
Access: Read/write
Function: The 16-bit MMR configures the serial peripheral interface.
Table 89. SPICON MMR Bit Designations
Bit Description
15 to 13 Reserved.
12 Continuous Transfer Enable.
Set by the user to enable continuous transfer. In master mode, the transfer continues until no valid data is available in
the SPITX register. SS
is asserted and remains asserted for the duration of each 8-bit serial transfer until SPITX is empty.
Cleared by the user to disable continuous transfer. Each transfer consists of a single 8-bit serial transfer. If valid data
exists in the SPITX register, a new transfer is initiated after a stall period.
11 Loopback Enable.
Set by user to connect MISO to MOSI and test software.
Cleared by user to be in normal mode.
10 Slave Output Enable.
Set by user to enable the slave output.
Cleared by user to disable slave output.
9 Slave Select Input Enable.
Set by user in master mode to enable the output.
8 SPIRX Overflow Overwrite Enable.
Set by the user, the valid data in the SPIRX register is overwritten by the new serial byte received.
Cleared by the user, the new serial byte received is discarded.
7 SPITX Underflow Mode.
Set by the user to transmit the previous data.
Cleared by the user to transmit 0.
6 Transfer and Interrupt Mode (Master Mode).
Set by the user to initiate a transfer with a write to the SPITX register. Interrupt occurs when SPITX is empty.
Cleared by the user to initiate a transfer with a read of the SPIRX register. Interrupt occurs when SPIRX is full.
5 LSB First Transfer Enable Bit.
Set by the user; the LSB is transmitted first.
Cleared by the user; the MSB is transmitted first.
4 Reserved. Should be written as 0.
3 Serial Clock Polarity Mode Bit.
Set by user, the serial clock idles high.
Cleared by user the serial clock idles low.
2 Serial Clock Phase Mode Bit.
Set by the user. The serial clock pulses at the beginning of each serial bit transfer.
Cleared by the user. The serial clock pulses at the end of each serial bit transfer.
1 Master Mode Enable Bit.
Set by the user to enable master mode.
Cleared by the user to enable slave mode.
0 SPI Enable Bit.
Set by the user to enable the SPI.
Cleared to disable the SPI.