XE8802MI000 SEMTECH [Semtech Corporation], XE8802MI000 Datasheet - Page 111

no-image

XE8802MI000

Manufacturer Part Number
XE8802MI000
Description
Sensing Machine Data Acquisition MCU
Manufacturer
SEMTECH [Semtech Corporation]
Datasheet
5- Wait for the end of transmission, i.e. SpiRxFull flag is one or the interrupt of the receiver is asserted.
6- Write 1 to the SpiTxEmpty bit to load the shift register with the value inside the RegSpiDataOut register and to
start the byte transmission. The SPI SpiTxEmpty flag toggles back high.
7- Read RegSpiDataIn. The SpiRxFull flag returns to 0.
8- Write the next data to send in the RegSpiDataOut register. The SpiTxEmpty flag toggles low.
9- Jump to 5.
16.6.2 Slave mode
The following routine must be executed by the CoolRISC in order to run properly the SPI interface in slave mode:
1- Write RegSpiControl to enable the SPI interface and to configure the slave mode and communication settings
(as configured in the master device).
2- Write the data to send in the RegSpiDataOut register. The SpiTxEmpty flag toggles low.
3- Write 1 to SpiTxEmpty bit to load the shift register with the value of the RegSpiDataOut register. The
SpiTxEmpty flag toggles back high. This load is only required for the first byte to transmit after nresetglobal. It is
automatic for the following bytes.
4- Write the next data to send in the RegSpiDataOut register. The SpiTxEmpty flag toggles low.
5- Wait for the end of transmission, i.e. the SpiRxFull flag is one or the interrupt of the receiver asserted. The shift
register is automatically loaded with the value inside the RegSpiDataOut register and the SpiTxEmpty flag toggles
back high.
6- Read RegSpiDataIn. The SpiRxFull flag returns to 0.
7- Write the next data to send in the RegSpiDataOut register. The SpiTxEmpty flag toggles low.
8- Jump to 5.
16.6.3 General purpose port.
This mode is enabled when SpiEnable value is 0 (default value).
The SPI dedicated pads are used as a general purpose 4 bit input/output digital port. Next figure shows the
structure of the SPI in this mode.
© Semtech 2006
XE8802 Sensing Machine Data Acquisition MCU
NORMAL OPERATION
NORMAL OPERATION
INITIALIZATION
16-8
with ZoomingADC™ and LCD driver
www.semtech.com

Related parts for XE8802MI000