C8051F021-GQ Silicon Laboratories Inc, C8051F021-GQ Datasheet - Page 199

IC 8051 MCU 64K FLASH 64TQFP

C8051F021-GQ

Manufacturer Part Number
C8051F021-GQ
Description
IC 8051 MCU 64K FLASH 64TQFP
Manufacturer
Silicon Laboratories Inc
Series
C8051F02xr
Datasheets

Specifications of C8051F021-GQ

Program Memory Type
FLASH
Program Memory Size
64KB (64K x 8)
Package / Case
64-TQFP, 64-VQFP
Core Processor
8051
Core Size
8-Bit
Speed
25MHz
Connectivity
EBI/EMI, SMBus (2-Wire/I²C), SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, Temp Sensor, WDT
Number Of I /o
32
Ram Size
4.25K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 3.6 V
Data Converters
A/D 8x8b, 8x12b; D/A 2x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
C8051F0x
Core
8051
Data Bus Width
8 bit
Data Ram Size
4.25 KB
Interface Type
I2C/SMBus/SPI/UART
Maximum Clock Frequency
25 MHz
Number Of Programmable I/os
32
Number Of Timers
4
Operating Supply Voltage
2.7 V to 3.6 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
PK51, CA51, A51, ULINK2
Development Tools By Supplier
C8051F020DK
Minimum Operating Temperature
- 40 C
On-chip Adc
8-ch x 8-bit or 8-ch x 12-bit
On-chip Dac
2-ch x 12-bit
No. Of I/o's
32
Ram Memory Size
4352Byte
Cpu Speed
25MHz
No. Of Timers
5
No. Of Pwm Channels
5
Rohs Compliant
Yes
Data Rom Size
64 KB
A/d Bit Size
12 bit
A/d Channels Available
8
Height
1.05 mm
Length
10 mm
Supply Voltage (max)
3.6 V
Supply Voltage (min)
2.7 V
Width
10 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
336-1200 - DEV KIT FOR F020/F021/F022/F023
Eeprom Size
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
336-1201

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
C8051F021-GQ
Manufacturer:
Silicon Laboratories Inc
Quantity:
10 000
Part Number:
C8051F021-GQR
Manufacturer:
SiliconL
Quantity:
2 000
Part Number:
C8051F021-GQR
Manufacturer:
Silicon Laboratories Inc
Quantity:
10 000
Part Number:
C8051F021-GQR
Manufacturer:
SILICON LABS/芯科
Quantity:
20 000
Part Number:
C8051F021-GQR
0
19.2. SPI0 Operation
Only a SPI master device can initiate a data transfer. SPI0 is placed in master mode by setting the Master Enable flag
(MSTEN, SPI0CN.1). Writing a byte of data to the SPI0 data register (SPI0DAT) when in Master Mode starts a data
transfer. The SPI0 master immediately shifts out the data serially on the MOSI line while providing the serial clock
on SCK. The SPIF (SPI0CN.7) flag is set to logic 1 at the end of the transfer. If interrupts are enabled, an interrupt
request is generated when the SPIF flag is set. The SPI0 master can be configured to shift in/out from one to eight bits
in a transfer operation in order to accommodate slave devices with different word lengths. The SPIFRS bits in the
SP0I Configuration Register (SPI0CFG.[2:0]) are used to select the number of bits to shift in/out in a transfer opera-
tion.
While the SPI0 master transfers data to a slave on the MOSI line, the addressed SPI slave device simultaneously
transfers the contents of its shift register to the SPI master on the MISO line in a full-duplex operation. The data byte
received from the slave replaces the data in the master's data register. Therefore, the SPIF flag serves as both a trans-
mit-complete and receive-data-ready flag. The data transfer in both directions is synchronized with the serial clock
generated by the master. Figure 19.3 illustrates the full-duplex operation of an SPI master and an addressed slave.
When SPI0 is enabled and not configured as a master, it will operate as an SPI slave. Another SPI device acting as a
master will initiate a transfer by driving the NSS input signal low. The master then shifts data out of the shift register
on the MOSI pin using the its serial clock. The SPIF flag is set to logic 1 when the NSS signal goes high, indicating
the end of a data transfer. Note that following a rising edge on NSS, the receive buffer will always contain the last
8 bits of data in the slave shift register. The slave can load its shift register for the next data transfer by writing to the
SPI0 data register. The slave must make the write to the data register at least one SPI serial clock cycle before the
master starts the next transmission. Otherwise, the byte of data already in the slave's shift register will be transferred.
Note that the NSS signal must be driven low at least 2 system clocks before the first active edge of SCK for each byte
transfer.
The SPI0 data register is double buffered on reads, but not on writes. If a write to SPI0DAT is attempted during a data
transfer, the WCOL flag (SPI0CN.6) will be set to logic 1 and the write will be ignored. The current data transfer will
continue uninterrupted. A read of the SPI0 data register by the system controller actually reads the receive buffer. The
receive overrun flag (RXOVRN in register SPI0CN) is set anytime a SPI0 slave detects a rising edge on NSS while
the receive buffer still holds unread data from a previous transfer. The new data is not transferred to the receive buf-
fer, allowing the previously received data byte to be read. The data byte causing the overrun is lost.
7
SPI SHIFT REGISTER
Receive Buffer
6
Baud Rate
Generator
5
MASTER DEVICE
4
3
2
1
0
Figure 19.3. Full Duplex Operation
MOSI
MISO
NSS
SCK
Px.y
VDD
Rev. 1.4
MOSI
MISO
NSS
SCK
C8051F020/1/2/3
SLAVE DEVICE
7
SPI SHIFT REGISTER
Receive Buffer
6
5
4
3
2
1
0
199

Related parts for C8051F021-GQ