NUMICRO-SDK Nuvoton Technology Corporation of America, NUMICRO-SDK Datasheet - Page 344

KIT EVAUATION NUC100/120/130/140

NUMICRO-SDK

Manufacturer Part Number
NUMICRO-SDK
Description
KIT EVAUATION NUC100/120/130/140
Manufacturer
Nuvoton Technology Corporation of America
Series
NuMicro™r
Type
MCUr
Datasheets

Specifications of NUMICRO-SDK

Contents
Board, Cable, CD, Nu-Link
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
NUC100, NUC120, NUC130, NUC140

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
NUMICRO-SDK
Manufacturer:
Nuvoton Technology Corporation
Quantity:
135
Part Number:
NUMICRO-SDK
Manufacturer:
NuvoTon
Quantity:
69
NuMicro™ NUC100 Series Technical Reference Manual
Slave Select
In master mode, this SPI controller can drive up to two off-chip slave devices through the slave
select output pins SPISSx0 and SPISSx1. In slave mode, the off-chip master device drives the
slave select signal from the SPISSx0 input port to this SPI controller. In master/slave mode, the
active level of slave select signal can be programmed to low active or high active in SS_LVL bit
(SPI_SSR[2]), and the SS_LTRIG bit (SPI_SSR[4]) defines the slave select signal SPISSx0/1 is
level trigger or edge trigger. The selection of trigger condition depends on what type of peripheral
slave/master device is connected.
In slave mode, if the SS_LTRIG bit is configured as level trigger, the LTRIG_FLAG bit
(SPI_SSR[5]) is used to indicate if both t
he received number and received bits met the requirement
which defines in TX_NUM and TX_BIT_LEN among one transaction done (the transaction done means the
slave select has deactivated.).
Level-trigger / Edge-trigger
In slave mode, the slave select signal can be configured as level-trigger or edge-trigger. In edge-
trigger, the data transfer starts from an active edge and ends on an inactive edge. If master does
not send an inactive edge to slave, the transfer procedure will not be completed and the interrupt
flag of slave will not be set. In level-trigger, the following two conditions will terminate the transfer
procedure and the interrupt flag of slave will be set. The first condition, if master set the slave
select pin to inactive level, it will force slave device to terminate the current transfer no matter how
many bits have been transferred and the interrupt flag will be set. User can read the status of
LTRIG_FLAG bit to check if the data has been completely transferred. The second condition is
that if the number of transferred bits matches the settings of TX_NUM and TX_BIT_LEN, the
interrupt flag of slave will be set.
Automatic Slave Select
In master mode, if the bit AUTOSS (SPI_SSR[3]) is set, the slave select signals will be generated
automatically and output to SPISSx0 and SPISSx1 pins according to SSR[0] (SPI_SSR[0]) and
SSR[1] (SPI_SSR[1]) whether be enabled or not. It means that the slave select signals, which is
enabled in SSR[1:0] register is asserted by the SPI controller when transmit/receive is started by
setting the GO_BUSY bit (SPI_CNTRL[0]) and is de-asserted after the data transfer is finished. If
the AUTOSS bit is cleared, the slave select output signals are asserted and de-asserted by
manual setting and clearing the related bits in SPI_SSR[1:0] register. The active level of the slave
select output signals is specified in SS_LVL bit (SPI_SSR[2]).
Serial Clock
In master mode, set the DIVIDER1 bits (SPI_DIVIDER[15:0]) to program the output frequency of
serial clock to the SPICLK output port. It also supports a variable serial clock if the VARCLK_EN
bit (SPI_CTL[23]) is enabled. In this case, the output frequency of serial clock can be
programmed as one of the two different frequencies which depend on the value of DIVIDER1
(SPI_DIVIDER[15:0]) and DIVIDER2 (SPI_DIVIDER[31:16]). The decision of the variable serial
clock for each cycle is depended on the SPI_VARCLK register.
In slave mode, the off-chip master device drives the serial clock through the SPICLK input port to
this SPI controller.
Publication Release Date: Dec. 22, 2010
- 344 -
Revision V1.06

Related parts for NUMICRO-SDK