The C8051F2xx is a family of fully integrated, mixed-signal System on a Chip MCU's available with a true
12-bit ('F206) multi-channel ADC, 8-bit multi-channel ADC ('F220/1/6 and 'F206), or without an ADC
('F230/1/6). Each model features an 8051-compatible microcontroller core with 8
There are also UART and SPI serial interfaces implemented in hardware (not "bit-banged" in user soft
ware). Products in this family feature 22 or 32 general purpose I/O pins, some of which can be used for
assigned digital peripheral interface. Any pins may be configured for use as analog input to the analog-todigital converter ('F220/1/6 and 'F206 only). (See the Product Selection Guide in
erence of each MCUs' feature set.)
Other features include an on-board VDD monitor, WDT, and clock oscillator. On-board Flash memory can
be reprogrammed in-circuit, and may also be used for non-volatile data storage. Integrated peripherals
can also individually shut down any or all of the peripherals to conserve power. All parts have 256 bytes of
SRAM. Also, an additional 1024 bytes of RAM is available in the 'F206/226/236.
On-board JTAG debug support allows non-intrusive (uses no on-chip resources), full speed, in-circuit
debug using the production MCU installed in the final application. This debug system supports inspection
and modification of memory and registers, setting breakpoints, watchpoints, single stepping, run and halt
commands. All analog and digital peripherals are fully functional when emulating using JTAG.
kB of Flash memory.
-
Table 1.1 for a quick ref-
Each MCU is specified for 2.7 to 3.6 V operation over the industrial temperature range (–45 to +85 °C) and
is available in the 48-pin TFQP and 32-pin LFQP. The Port I/Os are tolerant for input signals up to 5
V.
Table 1.1. Product Selection Guide
MIPS (Peak)
Flash Memory
C8051F206258 k1280
C8051F220258 k256
C8051F221258 k256
C8051F226258 k1280
C8051F230258 k256
C8051F231258 k256
C8051F236258 k1280
RAM
SPI
33
33
33
33
33
33
33
UART
Timers (16-bit)
Digital Port I/O’s
ADC Resolution (bits)
ADC Max Speed (ksps)
ADC Inputs
Voltage Comparators
3321210032248TQFP
332810032248TQFP
322810022232LQFP
332810032248TQFP
332———248TQFP
322———232LQFP
332———248TQFP
Package
Rev. 1.611
C8051F2xx
VDD
VDD
GND
GND
TCK
TMS
TDI
TDO
/RST
VDDMONEN
XTAL1
XTAL2
Digital Power
JTAG
Logic
VDD
Monitor,
WDT
External
Oscillator
Circuit
Internal
Oscillator
NC
NC
NC
Emulation HW
Reset
System Clock
8
0
5
1
C
o
r
e
(Available in
'F206/F226)
8kbyte
FLASH
256 byte
SRAM
SFR Bus
Clock & Reset
Configuration
1024 Byte
XRAM
ADC
Config. &
Control
Port I/O Mode
& Config.
Port 0
Latch
UART
Timer 0
Timer 1
Timer 2
Port 1
Latch
CP0
CP1
Comparator
Config.
Port 2
Latch
SPI
Port Mux
Control
Port 3
Latch
P0.0/TX
P
P
0
M
U
X
P
CP0+
CP0-
CP1+
CP1-
VREF
VREF
1
M
U
X
P
2
M
U
X
A
M
AIN0-AIN31
U
X
CP0
CP1
VDD
SAR
ADC
P0.1/RX
0
P0.2//INT0
P0.3//INT1
P0.4/T0
D
P0.5/T1
r
P0.6/T2
v
P0.7/T2EX
P1.0/CP0+
P
P1.1/CP0-
1
P1.2/CP0
P1.3/CP1+
P1.4/CP1-
D
P1.5/CP1
r
P1.6/SYSCLK
v
P1.7
P2.0/SCK
P
P2.1/MISO
2
P2.2/MOSI
P2.3/NSS
P2.4
D
P2.5
r
P2.6
v
P2.7
P3.0
P
P3.1
3
P3.2
P3.3
P3.4
D
P3.5
r
P3.6
v
P3.7
VREF
Figure 1.1. C8051F206, C8051F220 and C8051F226 Block Diagram (48 TQFP)
Figure 1.3. C8051F230 and C8051F236 Block Diagram (48 TQFP)
14Rev. 1.6
/RST
XTAL1
XTAL2
VDD
GND
TCK
TMS
TDI
TDO
C8051F2xx
Port I/O Mode
Digital Power
Reset
8
0
5
1
C
o
r
e
8kbyte
FLASH
256 byte
SRAM
SFR Bus
Clock & Reset
Configuration
JTAG
Emulation HW
Logic
VDD
Monitor,
WDT
External
Oscillator
Circuit
Internal
Oscillator
NC
System Clock
& Config.
Port 0
Latch
UART
Timer 0
Timer 1
Timer 2
Port 1
Latch
CP0
CP1
Comparator
Config.
Port 2
Latch
SPI
Port Mux
Control
Port 3
Latch
P0.0/TX
P
P
0
M
U
X
P
CP0+
CP0-
CP1+
CP1-
1
M
U
X
P
2
M
U
X
CP0
CP1
P0.1/RX
0
P0.2//INT0
P0.3//INT1
P0.4/T0
D
P0.5/T1
r
P0.6/T2
v
P0.7/T2EX
P1.0/CP0+
P
P1.1/CP0-
1
P1.2/CP0
P1.3/CP1+
P1.4/CP1-
D
P1.5/CP1
r
P1.6/SYSCLK
v
P1.7
P2.0/SCK
P
P2.1/MISO
2
P2.2/MOSI
P2.3/NSS
P2.4
D
P2.5
r
v
Figure 1.4. C8051F231 Block Diagram (32 LQFP)
1.1.CIP-51TM Microcontroller Core
1.1.1. Fully 8051 Compatible
The C8051F206, C8051F220/1/6 and C8051F230/1/6 utilize Silcon Labs’ proprietary CIP-51 microcontrol-
ler core. The CIP-51 is fully compatible with the MCS-51TM instruction set. Standard 803x/805x assemblers and compilers can be used to develop software. The core contains the peripherals included with a
standard 8052, including three 16-bit counter/timers, a full-duplex UART, 256 bytes of internal RAM, an
optional 1024 bytes of XRAM, 128 byte Special Function Register (SFR) address space, and four bytewide I/O Ports.
1.1.2. Improved Throughput
The CIP-51 employs a pipelined architecture that greatly increases its instruction throughput over the standard 8051 architecture. In a standard 8051, all instructions except for MUL and DIV take 12 or 24 system
clock cycles to execute with a maximum system clock of 12
70% of its instructions in one or two system clock cycles, with only four instructions taking more than four
system clock cycles.
The CIP-51 has a total of 109 instructions. The number of instructions versus the system clock cycles to
execute them is as follows:
MHz. By contrast, the CIP-51 core executes
Instructions265051473121
Clocks to Execute122/333/444/558
Rev. 1.615
C8051F2xx
With the CIP-51's maximum system clock at 25 MHz, it has a peak throughput of 25 MIPS. Figure 1.5
shows a comparison of peak throughputs of various 8-bit microcontroller cores with their maximum system
clocks.
25
20
15
MIPS
10
5
Silicon Labs
CIP-51
(25 MHz clk)
Microchip
PIC17C75x
(33 MHz clk)
Philips
80C51
(33 MHz clk)
ADuC812
8051
(16 MHz clk)
Figure 1.5. Comparison of Peak MCU Throughputs
1.1.3. Additional Features
The C8051F206, C8051F220/1/6 and C8051F230/1/6 have several key enhancements both inside and
outside the CIP-51 core to improve overall performance and ease of use in end applications.
The extended interrupt handler provides 22 interrupt sources into the CIP-51 (as opposed to 7 for the standard 8051), allowing the numerous analog and digital peripherals to interrupt the controller. (An interrupt
driven system requires less intervention by the MCU, giving it more effective throughput.) The extra inter
rupt sources are very useful when building multi-tasking, real-time systems.
There are up to six reset sources for the MCU: an on-board VDD monitor, a Watchdog Timer, a missing
clock detector, a voltage level detection from Comparator 0, a forced software reset, and an external reset
pin. The
reset to be output on the
(digital 1). The user may disable each reset source except for the
software. The watchdog timer may be permanently enabled in software after a power-on reset during
MCU initialization.
RST pin is bi-directional, accommodating an external reset, or allowing the internally generated
RST pin. The on-board VDD monitor is enabled by pulling the MONEN pin high
V
monitor and Reset Input Pin from
DD
-
The MCU has an internal, stand-alone clock generator that is used by default as the system clock after
reset. If desired, the clock source may be switched "on the fly" to the external oscillator, which can use a
crystal, ceramic resonator, capacitor, RC, or external clock source to generate the system clock. This can
be extremely useful in low power applications, allowing the MCU to run from a slow (power saving) exter
nal crystal source, while periodically switching to the fast (up to 16MHz) internal oscillator as needed.
16Rev. 1.6
-
C8051F2xx
System
Clock
Comparator 0
+
-
Missing
Clock
Detector
EN
MCD
Enable
CP0+
CP0-C0RSEF
Figure 1.6. Comparison of Peak MCU Throughputs
WDT
EN
Enable
WDT
PRE
WDT
VDD
Strobe
CIP-51
MonEn
Supply
Monitor
+
-
SWRSF
(Software Reset)
System Reset
Supply
Reset
Timeout
(wired-OR)
Reset
Funnel
/RST
Core
1.2.On-Board Memory
The CIP-51 has a standard 8051 program and data address configuration. It includes 256 bytes of data
RAM, with the upper 128 bytes dual-mapped. An optional 1024 bytes of XRAM is available on the 'F206,
'F226 and 'F236. Indirect addressing accesses the upper 128 bytes of general purpose RAM, and direct
addressing accesses the 128-byte SFR address space. The lower 128 bytes of RAM are accessible via
direct or indirect addressing. The first 32 bytes are addressable as four banks of general purpose regis
ters, and the next 16 bytes can be byte addressable or bit addressable.
The MCU's program memory consists of 8 k + 128 bytes of Flash. This memory may be reprogrammed insystem in 512 byte sectors, and requires no special off-chip programming voltage. The 512 bytes from
addresses 0x1E00 to 0x1FFF are reserved for factory use. There is also a user programmable 128-byte
sector at address 0x2000 to 0x207F, which may be useful as a table for storing software constants, nonvol
atile configuration information, or as additional program space. See Figure 1.7 for the MCU system memory map.
-
-
Rev. 1.617
C8051F2xx
0x207F
0x2000
0x1FFF
0x1E00
0x1DFF
0x0000
PROGRAM MEMORY
128 Byte ISP FLASH
RESERVED
FLASH
(In-System
Programmable in 512
Byte Sectors)
0xFF
0x80
0x7F
0x30
0x2F
0x20
0x1F
0x00
0x3FF
0x000
DATA MEMORY
Upper 128 RAM
(Indirect Addressing
Only)
(Direct and Indirect
Addressing)
Bit Addressable
General Purpose
Registers
1024 Byte
XRAM
Special Function
Register's
(Direct Addressing Only)
Lower 128 RAM
(Direct and Indirect
Addressing)
Mapped into
External Data Memory
Space
(C8051F226/236/206 only)
Figure 1.7. On-Board Memory Map
1.3.JTAG
The C8051F2xx have on-chip JTAG and debug logic that provide non-intrusive, full speed, in-circuit debug
using the production part installed in the end application using the four-pin JTAG I/F. The C8051F2xxDK is
a development kit with all the hardware and software necessary to develop application code and perform
in-circuit debug with the C8051F2xx. The kit includes software with a developer's studio and debugger, an
integrated 8051 assembler, and an RS-232 to JTAG interface module referred to as the EC. It also has a
target application board with a C8051F2xx installed and large prototyping area, plus the RS-232 and JTAG
cables, and wall-mount power supply. The Development Kit requires a Windows OS (Windows 95 or later)
computer with one available RS-232 serial port. As shown in
to the EC. A six-inch ribbon cable connects the EC to the user's application board, picking up the four
JTAG pins and
20
mA at 2.7–3.6 V. For applications where there is not sufficient power available from the target board,
V
and GND. The EC takes its power from the application board. It requires roughly
DD
the provided power supply can be connected directly to the EC.
This is a vastly superior configuration for developing and debugging embedded applications compared to
standard MCU Emulators, which use on-board "ICE Chips" and target cables and require the MCU in the
application board to be socketed. Silicon Labs' debug environment both increases ease of use, and pre
serves the performance of the precision analog peripherals.
Figure 1.8, the PC is connected via RS-232
-
18Rev. 1.6
WINDOWS OS
Silicon Labs Integrated
Development Environment
RS-232
JTAG (x4), VDD, GND
SERIAL
ADAPTER
C8051F2xx
VDD GND
C8051
F2XX
TARGET PCB
Figure 1.8. Degub Environment Diagram
1.4.Digital/Analog Configurable I/O
The standard 8051 Ports (0, 1, 2, and 3) are available on the device. The ports behave like standard 8051
ports with a few enhancements.
Each port pin can be configured as either a push-pull or open-drain output. Any input that is configured as
an analog input will have its corresponding weak pull-up turned off.
Digital resources (timers, SPI, UART, system clock, and comparators) are routed to corresponding I/O pins
by configuring the port multiplexer. Port multiplexers are programmed by setting bits in SFR's (please see
Section 14). Any of the 32 external port pins may be configured as either analog inputs or digital I/O (See
Figure 1.9), so effectively, all port pins are dual function.
The C8051F206, C8051F220/1/6 and C8051F230/1/6 include a Full-Duplex UART and SPI Bus. Each of
the serial buses is fully implemented in hardware and makes extensive use of the CIP-51's interrupts, thus
requiring very little intervention by the CPU. The serial buses do not have to "share" resources such as
timers, interrupts, or Port I/O, so both of the serial buses may be used simultaneously. (You may use
Timer1, Timer 2, or SYSCLK to generate baud rates for UART).
1.6.Analog to Digital Converter
The C8051F220/1/6 has an on-chip 8-bit SAR ADC and the C8051F206 has a 12-bit SAR ADC with a programmable gain amplifier. With a maximum throughput of 100ksps, the ADC offers true 8-bit with an INL of
V
±1/4 LSB, and or 12-bit accuracy with ±2 LSB. The voltage reference can be the power supply (
an external reference voltage (VREF). Also, the system controller can place the ADC into a power-saving
shutdown mode when not in use. A programmable gain amplifier follows the analog multiplexer. The gain
can be set in software from 0.5 to 16 in powers of 2.
Conversions can be initiated in two ways; a software command or an overflow on Timer 2. This flexibility
allows the start of conversion to be triggered by software events, or convert continuously. A completed
conversion causes an interrupt, or a status bit can be polled in software to determine the end of conver
sion. The resulting 8-bit data word is latched into an SFR upon completion of a conversion.
DD
), or
-
20Rev. 1.6
C8051F2xx
ADC data is continuously monitored by a programmable window detector, which interrupts the CPU when
data is within the user-programmed window. This allows the ADC to monitor key system voltages in back
ground mode, without the use of CPU resources.
VREF
-
AIN0
AIN1
AIN0-31 are port 0-3
pins -- any external
port pin may be configured as
an analog input
(only 22 input port pins on
'F221)
AIN31
32-to-1
. . .
AMUX
X
Figure 1.10. ADC Diagram
Programmable
Gain Amp
+
-
GND
Control & Data
SFR's
VDD
100ksps
SAR
ADC
SFR Bus
1.7.Comparators
The MCU's have two on-chip voltage comparators. The inputs of the comparators are available at package pins as illustrated in Figure 1.11. Each comparator's hysteresis is software programmable via special
function registers (SFR's). Both voltage level and positive/negative going symmetry can be easily programmed by the user. Additionally, comparator interrupts can be implemented on either rising or fallingedge output transitions. Please see
8.‘Comparators” on page 52 for details.
Rev. 1.621
C8051F2xx
P1.2
P1.5
P1.0
P1.1
P1.3
P1.4
CP0
CP1
+
Port1
MUX
CP0
-
+
CP1
-
CP0
CP1
SFR's
(Data
and
Cntrl)
Figure 1.11. Comparator Diagram
CIP-51
and
Interrupt
Handler
22Rev. 1.6
2.Absolute Maximum Ratings
C8051F2xx
Table 2.1. Absolute Maximum Ratings
ParameterConditionsMinTypMaxUnits
Ambient Temperature under Bias–55—125°C
Storage Temperature–65—150°C
Voltage on any Pin (except V
respect to DGND
Voltage on any Port I/O Pin or RST
DGND
Voltage on V
Total Power Dissipation—1.0800W
Maximum Output Current Sunk by any Port pin——200mA
Maximum Output Current Sunk by any other I/O pin——25 mA
Maximum Output Current Sourced by any Port pin——200mA
Maximum Output Current Sourced by any other I/O pin——25mA
*Note: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the device.
This is a stress rating only and functional operation of the devices at those or any other conditions above
those indicated in the operation listings of this specification is not implied. Exposure to maximum rating
conditions for extended periods may affect device reliability.
with respect to DGND–0.34.2V
DD
and Port I/O) with
DD
pins with respect to
*
–0.3—VDD +
0.3
–0.3—5.8V
V
Rev. 1.623
C8051F2xx
3.Global DC Electrical Characteristics
Table 3.1. Global DC Electrical Characteristics
–40 to +85 °C unless otherwise specified.
ParameterConditionsMinTypMaxUnits
Analog Supply Voltage
V
supply current with ADC and
DD
1
comparators active, and CPU
active
V
supply current with ADC and
DD
comparators active, and CPU inactive (Idle Mode)
V
supply current with ADC and
DD
comparators inactive, and CPU
active
Digital Supply Current with CPU
inactive (Idle Mode)
Digital Supply Current (Stop Mode),
V
monitor enabled
DD
Digital Supply Current (Stop Mode),
monitor disabled
V
DD
Digital Supply RAM Data Retention
Voltage
2.73.03.6V
Clock = 25 MHz
Clock = 1 MHz
Clock = 32 kHz
Clock = 25 MHz
Clock = 1 MHz
Clock = 32 kHz
Clock = 25 MHz
Clock = 1 MHz
Clock = 32 kHz
Clock = 25 MHz
Clock = 1 MHz
Clock = 32 kHz
—13
1.5
300
—9
1.8
275
—12.5
1.0
25
—8.5
1.4
25
—mA
mA
µA
—mA
mA
µA
—mA
mA
µA
—mA
mA
µA
Oscillator not running—10—µA
Oscillator not running—0.1—µA
—1.5— V
Specified Operating Temperature
–40—+85°C
Range
SYSCLK (system clock
frequency)
2
0
—
25MHz
Tsysl (SYSCLK low time)18——ns
Tsysh (SYSCLK high time)18——ns
Notes:
1. Analog Supply AV+ must be greater than 1 V for VDD monitor to operate.
2. SYSCLK must be at least 32 kHz to enable debugging.