z8fmc16100 ZiLOG Semiconductor, z8fmc16100 Datasheet - Page 165

no-image

z8fmc16100

Manufacturer Part Number
z8fmc16100
Description
Z8 Encore Motor Control Flash Mcus
Manufacturer
ZiLOG Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
z8fmc16100AKEG
Manufacturer:
LT
Quantity:
151
Part Number:
z8fmc16100AKEG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8fmc16100AKSG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
z8fmc16100QKEG
Manufacturer:
TOREX
Quantity:
2 000
PS024611-0408
Slave Operation
Error Detection
The SPI block is configured for SLAVE mode operation by setting the SPIEN bit to 1 and
the MMEN bit to 0 in the SPICTL register and setting the SSIO bit to 0 in the SPIMODE
register. The
NUMBITS field in the SPIMODE register must be set to be consistent with the other SPI
devices. The STR bit in the SPICTL register can be used, if appropriate, to force a start-up
interrupt. The
are not used in SLAVE mode. The SPI baud rate generator is not used in SLAVE mode;
therefore, the SPIBRH and SPIBRL registers do not require initialization.
If the slave contains data to send to the master, the data should be written to the SPIDAT
register before the transaction starts (first edge of SCK when SS is asserted). If the
SPIDAT register is not written prior to the slave transaction, the MISO pin outputs the
value that is currently in the SPIDAT register.
Due to the delay resulting from synchronization of the SPI input signals to the internal
system clock, the maximum SPICLK baud rate that can be supported in SLAVE mode is
the system clock frequency (X
The SPI contains error detection logic that supports SPI communication protocols and
recognizes when communication errors have occurred. The SPI Status register indicates
when a data transmission error has been detected.
Overrun
An overrun error (write collision) indicates that a Write to the SPI Data register was
attempted while a data transfer is in progress (in either MASTER or SLAVE modes). An
overrun sets the OVR bit in the SPI Status register to 1. Writing a 1 to OVR clears this error
flag. The SPI Data register is not altered when a Write occurs while a data transfer is in
progress.
Mode Fault
A mode fault indicates when more than one master is trying to communicate at the same
time (a multimaster collision). The mode fault is detected when the enabled master’s SS
pin is asserted. A mode fault sets the COL bit in the SPI Status register to 1. Writing a 1 to
COL clears this error flag.
Slave Mode Abort
In the SLAVE mode, if the SS pin deasserts before all bits in a character are transferred,
the transaction aborts. When this condition occurs, the
register as well as the
BIRQ
IRQE
,
bit in the SPICTL register and the
PHASE
IRQ
bit (which indicates that the transaction is complete).
,
IN
CLKPOL
) divided by 8. This rate is controlled by the SPI master.
, and
WOR
bits in the SPICTL register and the
Z8FMC16100 Series Flash MCU
ABT
SSV
bit is set in the SPISTAT
bit in the SPIMODE register
Product Specification
Slave Operation
153

Related parts for z8fmc16100