C8051T620/1/6/7 & C8051T320/1/2/3
Full Speed USB EPROM MCU Family
Analog Peripherals
-
10-Bit ADC (‘T620/6/7 and ‘T320/1 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
-
Up to 3328 bytes internal data RAM (256 + up to
-
-
3072)
Up to 64 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
-
9 x 9 mm LQFP32
Temperature Range: –40 to +85 °C
A
M
U
X
10-bit
500 ksps
ADC
TEMP
SENSOR
VREF
CROSSBAR
POR
ANALOG
PERIPHERALS
DIGITAL I/O
UART0
UART1
SMBus
SPI
PCA
Timer 0
Timer 1
Timer 2
Timer 3
Port 0
Port 1
Port 2
P3.0
+ +
-
-
VOLTAGE
COMPARATORS
LOW FREQUENCY INTERNAL
OSCILLATOR
48 MHz PRECISION INTERNAL
OSCILLATOR
USB Controller /
Transceiver
HIGH-SPEED CONTROLLER CORE
64 kB
EPROM
FLEXIBLE
INTERRUPTS
8051 CPU
(48 MIPS)
DEBUG CIRCUITRY
3328 B SRAM
WDT
Rev. 1.2 7/12
Copyright © 2012 by Silicon Laboratories
C8051T620/1/6/7 & C8051T320/1/2/3
C8051T620/1/6/7 & C8051T320/1/2/3
2
Rev. 1.2
C8051T620/1/6/7 & C8051T320/1/2/3
Table of Contents
1. System Overview ..................................................................................................... 15
2. Ordering Information ............................................................................................... 21
3. Pin Definitions.......................................................................................................... 22
4. LQFP-32 Package Specifications ........................................................................... 28
5. QFN-32 Package Specifications ............................................................................. 30
6. QFN-28 Package Specifications ............................................................................. 32
7. Electrical Characteristics ........................................................................................ 34
7.1. Absolute Maximum Specifications..................................................................... 34
7.2. Electrical Characteristics ................................................................................... 35
7.3. Typical Performance Curves ............................................................................. 44
8. 10-Bit ADC (ADC0, C8051T620/6/7 and C8051T320/1 Only) ................................. 45
8.1. Output Code Formatting .................................................................................... 46
8.2. 8-Bit Mode ......................................................................................................... 46
8.3. Modes of Operation ........................................................................................... 46
8.3.1. Starting a Conversion................................................................................ 46
8.3.2. Tracking Modes......................................................................................... 47
8.3.3. Settling Time Requirements...................................................................... 48
8.4. Programmable Window Detector....................................................................... 52
8.4.1. Window Detector Example........................................................................ 54
8.5. ADC0 Analog Multiplexer (C8051T620/6/7 and C8051T320/1 Only) ................ 55
9. Temperature Sensor (C8051T620/6/7 and C8051T320/1 Only)............................. 57
9.1. Calibration ......................................................................................................... 58
10. Voltage Reference Options ................................................................................... 59
11. Voltage Regulators (REG0 and REG1)................................................................. 61
11.1. Voltage Regulator (REG0)............................................................................... 61
11.1.1. Regulator Mode Selection....................................................................... 61
11.1.2. VBUS Detection ...................................................................................... 61
11.2. Voltage Regulator (REG1)............................................................................... 64
12. CIP-51 Microcontroller........................................................................................... 66
12.1. Instruction Set.................................................................................................. 67
12.1.1. Instruction and CPU Timing .................................................................... 67
12.2. CIP-51 Register Descriptions .......................................................................... 73
13. Prefetch Engine...................................................................................................... 76
14. Comparator0 and Comparator1............................................................................ 77
14.1. Comparator Multiplexers ................................................................................. 84
15. Memory Organization ............................................................................................ 87
15.1. Program Memory............................................................................................. 88
15.1.1. Derivative ID............................................................................................ 89
15.1.2. Temperature Offset Calibration............................................................... 89
15.1.3. Serialization............................................................................................. 89
15.2. Data Memory ................................................................................................... 90
15.2.1. Internal RAM ........................................................................................... 90
15.2.1.1. General Purpose Registers ............................................................ 90
Rev. 1.2
3
C8051T620/1/6/7 & C8051T320/1/2/3
15.2.1.2. Bit Addressable Locations .............................................................. 90
15.2.1.3. Stack ............................................................................................ 90
15.2.2. External RAM .......................................................................................... 91
15.2.3. Accessing USB FIFO Space ................................................................... 91
16. Special Function Registers................................................................................... 95
17. Interrupts .............................................................................................................. 101
17.1. MCU Interrupt Sources and Vectors.............................................................. 102
17.1.1. Interrupt Priorities.................................................................................. 102
17.1.2. Interrupt Latency ................................................................................... 102
17.2. Interrupt Register Descriptions ...................................................................... 102
17.3. INT0 and INT1 External Interrupt Sources .................................................... 110
18. Program Memory (EPROM)................................................................................. 112
18.1. Programming the EPROM Memory............................................................... 112
18.1.1. EPROM Programming over the C2 Interface........................................ 112
18.1.2. EPROM In-Application Programming.................................................... 113
18.2. Security Options ............................................................................................ 114
18.3. EPROM Writing Guidelines ........................................................................... 114
18.3.1. VDD Maintenance and the VDD monitor .............................................. 114
18.3.2. PSWE Maintenance .............................................................................. 115
18.3.3. System Clock ........................................................................................ 115
18.4. Program Memory CRC .................................................................................. 115
18.4.1. Performing 32-bit CRCs on Full EPROM Content ................................ 115
18.4.2. Performing 16-bit CRCs on 256-Byte EPROM Blocks.......................... 115
19. Power Management Modes................................................................................. 118
19.1. Idle Mode....................................................................................................... 118
19.2. Stop Mode ..................................................................................................... 119
19.3. Suspend Mode .............................................................................................. 119
20. Reset Sources ...................................................................................................... 121
20.1. Power-On Reset ............................................................................................ 122
20.2. Power-Fail Reset / VDD Monitor ................................................................... 122
20.3. External Reset ............................................................................................... 124
20.4. Missing Clock Detector Reset ....................................................................... 124
20.5. Comparator0 Reset ....................................................................................... 124
20.6. PCA Watchdog Timer Reset ......................................................................... 125
20.7. EPROM Error Reset ...................................................................................... 125
20.8. Software Reset .............................................................................................. 125
20.9. USB Reset..................................................................................................... 125
21. Oscillators and Clock Selection ......................................................................... 127
21.1. System Clock Selection................................................................................. 128
21.2. USB Clock Selection ..................................................................................... 128
21.3. Programmable Internal High-Frequency (H-F) Oscillator .............................. 130
21.3.1. Internal Oscillator Suspend Mode ......................................................... 130
21.4. Clock Multiplier .............................................................................................. 132
21.5. Programmable Internal Low-Frequency (L-F) Oscillator ............................... 133
21.5.1. Calibrating the Internal L-F Oscillator.................................................... 133
4
Rev. 1.2
C8051T620/1/6/7 & C8051T320/1/2/3
21.6. External Oscillator Drive Circuit..................................................................... 134
21.6.1. External Crystal Mode........................................................................... 134
21.6.2. External RC Example............................................................................ 136
21.6.3. External Capacitor Example.................................................................. 136
22. Port Input/Output ................................................................................................. 138
22.1. Port I/O Modes of Operation.......................................................................... 139
22.1.1. Port Pins Configured for Analog I/O...................................................... 139
22.1.2. Port Pins Configured For Digital I/O...................................................... 139
22.1.3. Interfacing Port I/O to 5 V Logic ............................................................ 140
22.2. Assigning Port I/O Pins to Analog and Digital Functions............................... 140
22.2.1. Assigning Port I/O Pins to Analog Functions ........................................ 140
22.2.2. Assigning Port I/O Pins to Digital Functions.......................................... 140
22.2.3. Assigning Port I/O Pins to External Digital Event Capture Functions ... 141
22.3. Priority Crossbar Decoder ............................................................................. 142
22.4. Port I/O Initialization ...................................................................................... 146
22.5. Port Match ..................................................................................................... 149
22.6. Special Function Registers for Accessing and Configuring Port I/O ............. 152
23. Universal Serial Bus Controller (USB0) ............................................................. 160
23.1. Endpoint Addressing ..................................................................................... 161
23.2. USB Transceiver ........................................................................................... 161
23.3. USB Register Access .................................................................................... 163
23.4. USB Clock Configuration............................................................................... 168
23.5. FIFO Management ........................................................................................ 169
23.5.1. FIFO Split Mode .................................................................................... 170
23.5.2. FIFO Double Buffering .......................................................................... 170
23.5.1. FIFO Access ......................................................................................... 171
23.6. Function Addressing...................................................................................... 172
23.7. Function Configuration and Control............................................................... 173
23.8. Interrupts ....................................................................................................... 176
23.9. The Serial Interface Engine ........................................................................... 181
23.10. Endpoint0 .................................................................................................... 181
23.10.1. Endpoint0 SETUP Transactions ......................................................... 182
23.10.2. Endpoint0 IN Transactions.................................................................. 182
23.10.3. Endpoint0 OUT Transactions.............................................................. 183
23.11. Configuring Endpoints1-3 ............................................................................ 185
23.12. Controlling Endpoints1-3 IN......................................................................... 186
23.12.1. Endpoints1-3 IN Interrupt or Bulk Mode.............................................. 186
23.12.2. Endpoints1-3 IN Isochronous Mode.................................................... 187
23.13. Controlling Endpoints1-3 OUT..................................................................... 189
23.13.1. Endpoints1-3 OUT Interrupt or Bulk Mode.......................................... 190
23.13.2. Endpoints1-3 OUT Isochronous Mode................................................ 190
24. SMBus................................................................................................................... 194
24.1. Supporting Documents .................................................................................. 195
24.2. SMBus Configuration..................................................................................... 195
24.3. SMBus Operation .......................................................................................... 195
Rev. 1.2
5