M0516ZAN Nuvoton Technology Corporation of America, M0516ZAN Datasheet - Page 244

IC MCU 32BIT 64KB FLASH 33QFN

M0516ZAN

Manufacturer Part Number
M0516ZAN
Description
IC MCU 32BIT 64KB FLASH 33QFN
Manufacturer
Nuvoton Technology Corporation of America
Series
NuMicro M051™r
Datasheets

Specifications of M0516ZAN

Core Processor
ARM Cortex-M0
Core Size
32-Bit
Speed
50MHz
Connectivity
EBI/EMI, I²C, IrDA, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
24
Program Memory Size
64KB (64K x 8)
Program Memory Type
FLASH
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 5.5 V
Data Converters
A/D 5x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
33-WFQFN Exposed Pad
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M0516ZAN
Manufacturer:
Nuvoton
Quantity:
200
Part Number:
M0516ZAN
Manufacturer:
NUVOTON
Quantity:
20 000
2) Write the related settings into the SPI_CNTRL register to control this SPI slave actions
3)
4)
5)
6)
7)
Select high level and level trigger for the input of slave select signal by setting the Slave
Select Active Level bit SS_LVL (SPI_SSR[2] = 1) and the Slave Select Level Trigger bit
SS_LTRIG (SPI_SSR[4] = 1).
1.
2.
3.
4.
5.
6.
7.
If this SPI slave will transmits (be read) one byte data to the off-chip master device, write the
byte data that will be transmitted into the TX0 [7:0] (SPI_TX0[7:0]) register.
If this SPI slave just only receives (be written) one byte data from the off-chip master device,
you don’t care what data will be transmitted and just write 0xFF into the SPI_TX0[7:0]
register.
Enable the GO_BUSY bit (SPI_CNTRL[0] = 1) to wait for the slave select trigger input and
serial clock input from the off-chip master device to start the data transfer at the SPI
interface.
Waiting for SPI interrupt occurred (if the Interrupt Enable IE bit is set) or just polling the
GO_BUSY bit till it be cleared to 0 by hardware automatically.
Read out the received one byte data from RX[7:0] (SPI_RX0[7:0]) register
Go to 3) to continue another data transfer or disable the GO_BUSY bit to stop data transfer.
Set this SPI controller as slave device in SLAVE bit (SPI_CNTRL[18] = 1)
Select the serial clock idle state at high in CLKP bit (SPI_CNTRL[11] = 1)
Select data transmitted at negative edge of serial clock in TX_NEG bit (SPI_CNTRL[2] =
1)
Select data latched at positive edge of serial clock in RX_NEG bit (SPI_CNTRL[1] = 0)
Set the bit length of word transfer as 8 bits in TX_BIT_LEN bit field (SPI_CNTRL[7:3] =
0x08)
Set only one time of word transfer in TX_NUM (SPI_CNTRL[9:8] = 0x0)
Set LSB transfer first in LSB bit (SPI_CNTRL[10] = 1), and don’t care the SP_CYCLE bit
field (SPI_CNTRL[15:12]) due to not burst mode in this case.
NuMicro M051
Series Technical Reference Manual
- 244 -
Publication Release Date: Sep 14, 2010
Revision V1.2

Related parts for M0516ZAN