C8051T620/621/320/321/322/323
Full Speed USB EPROM MCU Family
Analog Peripherals
-
10-Bit ADC (‘T620/320/321 only)
•
Up to 500 ksps
•
Up to 21 external inputs
•
VREF from on-chip VREF, external pin, Internal 1.8 V
•
•
-
Regulator or V
DD
Internal or external start of conversion source
Built-in temperature sensor
High-Speed 8051 µC Core
-
Pipelined instruction architecture; executes 70% of
-
-
Memory
-
1280 Bytes internal data RAM (256 + 1024)
-
16 kB byte-programmable EPROM code memory
-
EPROM can be programmed from firmware running
on the device
instructions in 1 or 2 system clocks
Up to 48 MIPS throughput with 48 MHz clock
Expanded interrupt handler
Comparators
•
Programmable hysteresis and response time
•
Configurable as interrupt or reset source
•
Low current (<0.5 µA)
USB Function Controller
-
USB specification 2.0 compliant
-
Full speed (12 Mbps) or low speed (1.5 Mbps) oper-
-
-
-
-
ation
Integrated clock recovery; no external oscillator
required for full speed or low speed
Supports eight flexible endpoints
1 kB USB buffer memory
Integrated transceiver; no external resistors
required
Digital Peripherals
-
25 Port I/O with high sink current capability
-
Hardware enhanced SPI™, SMBus™, and two
-
-
enhanced UART serial ports
Four general purpose 16-bit counter/timers
16-Bit programmable counter array (PCA) with five
capture/compare modules and enhanced PWM
functionality
On-Chip Debug
-
C8051F34A can be used as code development plat-
-
-
form; Complete development kit available
On-chip debug circuitry facilitates full speed, non-
intrusive in-system debug
Provides breakpoints, single stepping,
inspect/modify memory and registers
Clock Sources
-
Two internal oscillators:
•
48 MHz: ±0.25% accuracy with clock recovery
•
-
-
enabled. Supports all USB and UART modes
80/40/20/10 kHz low frequency, low power
External oscillator: Crystal, RC, C, or CMOS Clock
Can switch between clock sources on-the-fly; useful
in power saving modes
Supply Voltage 1.8 to 5.25 V
-
On-chip LDO for internal core supply
-
Built-in supply voltage monitor
Package Options:
-
5 x 5 mm QFN28 or QFN32
-
LQFP32
Temperature Range: –40 to +85 °C
ANALOG
PERIPHERALS
A
M
U
X
DIGITAL I/O
UART0
UART1
SMBus
SPI
PCA
Timer 0
Timer 1
Timer 2
Timer 3
CROSSBAR
POR
Port 0
Port 1
Port 2
P3.0
10-bit
500 ksps
ADC
TEMP
SENSOR
‘T620/320/321 Only
VREF
+ +
-
-
VOLTAGE
COMPARATORS
LOW FREQUENCY INTERNAL
OSCILLATOR
48 MHz PRECISION INTERNAL
OSCILLATOR
USB Controller /
Transceiver
HIGH-SPEED CONTROLLER CORE
16 KB
EPROM
FLEXIBLE
INTERRUPTS
8051 CPU
(48 MIPS)
DEBUG CIRCUITRY
1280 B SRAM
WDT
Rev. 1.1 2/11
Copyright © 2011 by Silicon Laboratories
C8051T620/621/320/321/322/323
C8051T620/621/320/321/322/323
2
Rev. 1.1
C8051T620/621/320/321/322/323
Table of Contents
1. System Overview ..................................................................................................... 15
2. Ordering Information ............................................................................................... 20
3. Pin Definitions.......................................................................................................... 21
4. LQFP-32 Package Specifications ........................................................................... 27
5. QFN-32 Package Specifications ............................................................................. 29
6. QFN-28 Package Specifications ............................................................................. 31
7. Electrical Characteristics ........................................................................................ 33
7.1. Absolute Maximum Specifications..................................................................... 33
7.2. Electrical Characteristics ................................................................................... 34
7.3. Typical Performance Curves ............................................................................. 42
8. 10-Bit ADC (ADC0, C8051T620/320/321 only)........................................................ 43
8.1. Output Code Formatting .................................................................................... 44
8.2. 8-Bit Mode ......................................................................................................... 44
8.3. Modes of Operation ........................................................................................... 44
8.3.1. Starting a Conversion................................................................................ 44
8.3.2. Tracking Modes......................................................................................... 45
8.3.3. Settling Time Requirements...................................................................... 46
8.4. Programmable Window Detector....................................................................... 50
8.4.1. Window Detector Example........................................................................ 52
8.5. ADC0 Analog Multiplexer (C8051T620/320/321 only)....................................... 53
9. Temperature Sensor (C8051T620/320/321 only) ................................................... 55
9.1. Calibration ......................................................................................................... 56
10. Voltage Reference Options ................................................................................... 57
11. Voltage Regulators (REG0 and REG1)................................................................. 59
11.1. Voltage Regulator (REG0)............................................................................... 59
11.1.1. Regulator Mode Selection....................................................................... 59
11.1.2. VBUS Detection ...................................................................................... 59
11.2. Voltage Regulator (REG1)............................................................................... 62
12. CIP-51 Microcontroller........................................................................................... 64
12.1. Instruction Set.................................................................................................. 65
12.1.1. Instruction and CPU Timing .................................................................... 65
12.2. CIP-51 Register Descriptions .......................................................................... 70
13. Prefetch Engine...................................................................................................... 74
14. Comparator0 and Comparator1............................................................................ 75
14.1. Comparator Multiplexers ................................................................................. 82
15. Memory Organization ............................................................................................ 85
15.1. Program Memory............................................................................................. 85
15.1.1. Derivative ID............................................................................................ 86
15.1.2. Temperature Offset Calibration............................................................... 86
15.1.3. Serialization............................................................................................. 86
15.2. Data Memory ................................................................................................... 87
15.2.1. Internal RAM ........................................................................................... 87
15.2.1.1. General Purpose Registers ............................................................ 87
Rev. 1.1
3
C8051T620/621/320/321/322/323
15.2.1.2. Bit Addressable Locations .............................................................. 87
15.2.1.3. Stack ............................................................................................ 87
15.2.2. External RAM .......................................................................................... 88
15.2.3. Accessing USB FIFO Space ................................................................... 88
16. Special Function Registers................................................................................... 91
17. Interrupts ................................................................................................................ 96
17.1. MCU Interrupt Sources and Vectors................................................................ 96
17.1.1. Interrupt Priorities.................................................................................... 96
17.1.2. Interrupt Latency ..................................................................................... 97
17.2. Interrupt Register Descriptions ........................................................................ 97
17.3. INT0 and INT1 External Interrupt Sources .................................................... 105
18. Program Memory (EPROM)................................................................................. 107
18.1. Programming the EPROM Memory............................................................... 107
18.1.1. EPROM Programming over the C2 Interface........................................ 107
18.1.2. EPROM In-Application Programming.................................................... 108
18.2. Security Options ............................................................................................ 109
18.3. EPROM Writing Guidelines ........................................................................... 109
18.3.1. VDD Maintenance and the VDD monitor .............................................. 109
18.3.2. PSWE Maintenance .............................................................................. 110
18.3.3. System Clock ........................................................................................ 110
18.4. Program Memory CRC .................................................................................. 110
18.4.1. Performing 32-bit CRCs on Full EPROM Content ................................ 110
18.4.2. Performing 16-bit CRCs on 256-Byte EPROM Blocks.......................... 110
19. Power Management Modes................................................................................. 113
19.1. Idle Mode....................................................................................................... 113
19.2. Stop Mode ..................................................................................................... 114
19.3. Suspend Mode .............................................................................................. 114
20. Reset Sources ...................................................................................................... 116
20.1. Power-On Reset ............................................................................................ 117
20.2. Power-Fail Reset / VDD Monitor ................................................................... 117
20.3. External Reset ............................................................................................... 119
20.4. Missing Clock Detector Reset ....................................................................... 119
20.5. Comparator0 Reset ....................................................................................... 119
20.6. PCA Watchdog Timer Reset ......................................................................... 120
20.7. EPROM Error Reset ...................................................................................... 120
20.8. Software Reset .............................................................................................. 120
20.9. USB Reset..................................................................................................... 120
21. Oscillators and Clock Selection ......................................................................... 122
21.1. System Clock Selection................................................................................. 123
21.2. USB Clock Selection ..................................................................................... 123
21.3. Programmable Internal High-Frequency (H-F) Oscillator .............................. 125
21.3.1. Internal Oscillator Suspend Mode ......................................................... 125
21.4. Clock Multiplier .............................................................................................. 127
21.5. Programmable Internal Low-Frequency (L-F) Oscillator ............................... 128
21.5.1. Calibrating the Internal L-F Oscillator.................................................... 128
4
Rev. 1.1
C8051T620/621/320/321/322/323
21.6. External Oscillator Drive Circuit..................................................................... 129
21.6.1. External Crystal Mode........................................................................... 129
21.6.2. External RC Example............................................................................ 131
21.6.3. External Capacitor Example.................................................................. 131
22. Port Input/Output ................................................................................................. 133
22.1. Port I/O Modes of Operation.......................................................................... 134
22.1.1. Port Pins Configured for Analog I/O...................................................... 134
22.1.2. Port Pins Configured For Digital I/O...................................................... 134
22.1.3. Interfacing Port I/O to 5V Logic ............................................................. 135
22.2. Assigning Port I/O Pins to Analog and Digital Functions............................... 135
22.2.1. Assigning Port I/O Pins to Analog Functions ........................................ 135
22.2.2. Assigning Port I/O Pins to Digital Functions.......................................... 135
22.2.3. Assigning Port I/O Pins to External Digital Event Capture Functions ... 136
22.3. Priority Crossbar Decoder ............................................................................. 137
22.4. Port I/O Initialization ...................................................................................... 141
22.5. Port Match ..................................................................................................... 144
22.6. Special Function Registers for Accessing and Configuring Port I/O ............. 146
23. Universal Serial Bus Controller (USB0) ............................................................. 155
23.1. Endpoint Addressing ..................................................................................... 155
23.2. USB Transceiver ........................................................................................... 156
23.3. USB Register Access .................................................................................... 158
23.4. USB Clock Configuration............................................................................... 162
23.5. FIFO Management ........................................................................................ 163
23.5.1. FIFO Split Mode .................................................................................... 164
23.5.2. FIFO Double Buffering .......................................................................... 164
23.5.1. FIFO Access ......................................................................................... 165
23.6. Function Addressing...................................................................................... 166
23.7. Function Configuration and Control............................................................... 166
23.8. Interrupts ....................................................................................................... 169
23.9. The Serial Interface Engine ........................................................................... 175
23.10. Endpoint0 .................................................................................................... 175
23.10.1. Endpoint0 SETUP Transactions ......................................................... 176
23.10.2. Endpoint0 IN Transactions.................................................................. 176
23.10.3. Endpoint0 OUT Transactions.............................................................. 177
23.11. Configuring Endpoints1-3 ............................................................................ 179
23.12. Controlling Endpoints1-3 IN......................................................................... 180
23.12.1. Endpoints1-3 IN Interrupt or Bulk Mode.............................................. 180
23.12.2. Endpoints1-3 IN Isochronous Mode.................................................... 181
23.13. Controlling Endpoints1-3 OUT..................................................................... 183
23.13.1. Endpoints1-3 OUT Interrupt or Bulk Mode.......................................... 184
23.13.2. Endpoints1-3 OUT Isochronous Mode................................................ 184
24. SMBus................................................................................................................... 188
24.1. Supporting Documents .................................................................................. 189
24.2. SMBus Configuration..................................................................................... 189
24.3. SMBus Operation .......................................................................................... 189
Rev. 1.1
5