xe8802 Semtech Corporation, xe8802 Datasheet - Page 109

no-image

xe8802

Manufacturer Part Number
xe8802
Description
Data Acquisition Soc With 16+10 Bit Zoomingadc? Embedded Risc Controller And Lcd Driver
Manufacturer
Semtech Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
xe8802MI035LF
Manufacturer:
TI
Quantity:
8 700
Part Number:
xe8802MI035LF
Manufacturer:
Semtech
Quantity:
10 000
Note: for both cases, it is not required to toggle the NSS signal back to high and back to low between each byte
transmitted.
The SPI interface can be operated by polling the RegSpiStatus register or interrupt driven. The interrupt is active
on reception of a new byte.
In case of a multi-slave configuration, any digital output pin of any parallel port can be used to select the different
slaves. In some cases, it might be easier to have DC signals on these pins and to derive the timing from the single
NSS pin independently from the selected slave. This can be realized by combining the NSS wire from the master
device with signals coming from an output port as shown in Figure 16-4.
Pull-up resistors can be added on the input pads (MISO in master mode, MOSI, NSS and SCK in slave mode) by
setting the corresponding bits in RegSpiPullup. Use Table 16-2 for the correspondence between the pads and
register bits.
16.5.1.2 Master/Slave synchronization
In the master mode, a transmission is started by writing a 1 to the bit SpiTxEmpty. This automatically loads the
data of the register RegSpiDataOut to the shift register and starts the clock and shifting. At the end of the
transmission, the clock stops and the received data are copied to RegSpiDataIn. The bit SpiTxEmpty should not
be asserted while the previous transmission is still running, otherwise, the transmitted and received data will be
corrupted.
In slave mode, the fastest clock in the circuit should be at least 4 times faster than the baud rate of the
transmission. The transmission is synchronized by the NSS input signal. While the NSS signal is high, the counters
controlling the transmission are reset. The reception starts at the first clock cycle after the falling edge of NSS. At
the end of the transmission, the received data are copied to RegSpiDataIn and the contents of the register
RegSpiDataOut are copied automatically to the shift register. The data in the shift register can be overwritten by
writing 1 to SpiTxEmpty. This should not be done while a transmission is running, otherwise, the transmitted and
received data will be corrupted.
The counters controlling the timing of the transmission can be reset by writing a 1 to the ClearCounters bit in the
RegSpiControl register. In master mode, it restarts a complete transmission cycle. In slave mode, it has the same
effect as a rising edge of NSS. This bit should be used with caution.
© Semtech 2006
SCK cycle
SCK
(CPOL=0)
SCK
(CPOL=1)
MOSI
MISO
NSS
MSB
MSB
1
Figure 16-3: SPI transmission format with ClockPhase=1
bit 6
bit 6
2
bit 5
bit 5
3
XE8802 Sensing Machine Data Acquisition MCU
bit 4
bit 4
4
16-6
bit 3
bit 3
5
with ZoomingADC™ and LCD driver
bit 2
bit 2
6
bit 1
bit 1
7
LSB
LSB
8
www.semtech.com

Related parts for xe8802