ChipFind - документация

Электронный компонент: C8051F320

Скачать:  PDF   ZIP

Document Outline

DS010-1.0 APR03
CYGNAL Integrated Products, Inc.
2003
Page 1
Preliminary
Full Speed USB, 16K ISP FLASH MCU Family
C8051F320/1
ANALOG PERIPHERALS
-
10-Bit ADC
Up to 200 ksps
Up to 17 or 13 External Single-Ended or Differential
Inputs
VREF from External Pin, Internal Reference, or VDD
Built-in Temperature Sensor
External Conversion Start Input
-
Two Comparators
-
Internal Voltage Reference
-
POR/Brown-Out Detector
USB FUNCTION CONTROLLER
-
USB Specification 2.0 Compliant
-
Full Speed (12 Mbps) or Low Speed (1.5 Mbps)
Operation
-
Integrated Clock Recovery; No External Crystal
Required for Full Speed or Low Speed
-
Supports Eight Flexible Endpoints
-
1k Byte USB Buffer Memory
-
Integrated Transceiver; No External Resistors Required
ON-CHIP DEBUG
-
On-Chip Debug Circuitry Facilitates Full Speed,
Non-Intrusive In-System Debug (No Emulator
Required!)
-
Provides Breakpoints, Single Stepping,
Inspect/Modify Memory and Registers
-
Superior Performance to Emulation Systems Using
ICE-Chips, Target Pods, and Sockets
VOLTAGE REGULATOR INPUT: 4.0V TO 5.25V
HIGH SPEED 8051 C Core
-
Pipelined Instruction Architecture; Executes 70% of
Instructions in 1 or 2 System Clocks
-
Up to 25 MIPS Throughput with 25 MHz Clock
-
Expanded Interrupt Handler
MEMORY
-
2304 Bytes Internal RAM (1k + 256 + 1k USB FIFO)
-
16k Bytes FLASH; In-system programmable in 512-byte
Sectors
DIGITAL PERIPHERALS
-
25/21 Port I/O; All 5 V tolerant with High Sink Current
-
Hardware Enhanced SPITM, Enhanced UART, and
SMBusTM Serial Ports
-
Four General Purpose 16-Bit Counter/Timers
-
16-Bit Programmable Counter Array (PCA) with Five
Capture/Compare Modules
-
Real Time Clock Mode using External Clock Source and
PCA or Timer
CLOCK SOURCES
-
Internal Oscillator: 0.25% Accuracy with Clock
Recovery enabled. Supports all USB and UART Modes
-
External Oscillator: Crystal, RC, C, or Clock (1 or 2 Pin
Modes)
-
Can Switch Between Clock Sou rces on-the-fly; Usefu l in
Power Saving Strategies
PACKAGES
-
32-pin LQFP (C8051F320)
-
28-pin MLP (C8051F321)
TEMPERATURE RANGE: -40C TO+85C
ANALOG
PERIPHERALS
10-bit
200ksps
ADC
16KB
ISP FLASH
2304 B
SRAM
POR
DEBUG
CIRCUITRY
16
INTERRUPTS
8051 CPU
(25MIPS)
DIGITAL I/O
PRECISION INTERNAL
OSCILLATOR
HIGH-SPEED CONTROLLER CORE
A
M
U
X
C
R
OSSB
AR
+
-
WDT
+
-
USB Controller /
Transceiver
UART
SMBus
PCA
Timer 0
Timer 1
Timer 2
Timer 3
SPI
Port 0
Port 1
Port 2
Port 3
TEMP
SENSOR
VREG
VREF
Preliminary
Page 2
DS010-1.0 APR03
2003 Cygnal Integrated Products, Inc.
C8051F320/1
Notes
2003 Cygnal Integrated Products, Inc.
DS010-1.0 APR03
Page 3
Preliminary
C8051F320/1
TABLE OF CONTENTS
1. SYSTEM OVERVIEW .........................................................................................................17
1.1. CIP-51TM Microcontroller Core ......................................................................................20
1.1.1. Fully 8051 Compatible ..........................................................................................20
1.1.2. Improved Throughput ............................................................................................20
1.1.3. Additional Features................................................................................................21
1.2. On-Chip Memory ............................................................................................................22
1.3. Universal Serial Bus Controller.......................................................................................23
1.4. Voltage Regulator............................................................................................................23
1.5. On-Chip Debug Circuitry ................................................................................................24
1.6. Programmable Digital I/O and Crossbar .........................................................................25
1.7. Serial Ports.......................................................................................................................25
1.8. Programmable Counter Array .........................................................................................26
1.9. 10-Bit Analog to Digital Converter .................................................................................27
1.10. Comparators ....................................................................................................................28
2. ABSOLUTE MAXIMUM RATINGS ..................................................................................29
3. GLOBAL DC ELECTRICAL CHARACTERISTICS ......................................................30
4. PINOUT AND PACKAGE DEFINITIONS........................................................................31
5. 10-BIT ADC (ADC0) .............................................................................................................39
5.1. Analog Multiplexer .........................................................................................................40
5.2. Temperature Sensor.........................................................................................................41
5.3. Modes of Operation.........................................................................................................42
5.3.1. Starting a Conversion.............................................................................................42
5.3.2. Tracking Modes .....................................................................................................43
5.3.3. Settling Time Requirements ..................................................................................44
5.4. Programmable Window Detector ....................................................................................50
5.4.1. Window Detector In Single-Ended Mode .............................................................52
5.4.2. Window Detector In Differential Mode.................................................................53
6. VOLTAGE REFERENCE....................................................................................................55
7. COMPARATORS ................................................................................................................57
8. VOLTAGE REGULATOR (REG0) ....................................................................................67
8.1. Regulator Mode Selection ...............................................................................................68
8.2. VBUS Detection..............................................................................................................69
9. CIP-51 MICROCONTROLLER .........................................................................................73
9.1. Instruction Set..................................................................................................................75
9.1.1. Instruction and CPU Timing..................................................................................75
9.1.2. MOVX Instruction and Program Memory.............................................................75
9.2. Memory Organization .....................................................................................................79
9.2.1. Program Memory ...................................................................................................79
9.2.2. Data Memory .........................................................................................................80
9.2.3. General Purpose Registers .....................................................................................80
9.2.4. Bit Addressable Locations .....................................................................................80
9.2.5. Stack
...................................................................................................................80
9.2.6. Special Function Registers.....................................................................................81
Preliminary
Page 4
DS010-1.0 APR03
2003 Cygnal Integrated Products, Inc.
C8051F320/1
9.2.7. Register Descriptions .............................................................................................84
9.3. Interrupt Handler .............................................................................................................87
9.3.1. MCU Interrupt Sources and Vectors .....................................................................87
9.3.2. External Interrupts .................................................................................................88
9.3.3. Interrupt Priorities..................................................................................................88
9.3.4. Interrupt Latency....................................................................................................88
9.3.5. Interrupt Register Descriptions ..............................................................................90
9.4. Power Management Modes .............................................................................................96
9.4.1. Idle Mode ...............................................................................................................96
9.4.2. Stop Mode..............................................................................................................96
10. RESET SOURCES ..............................................................................................................99
10.1. Power-On Reset.............................................................................................................100
10.2. Power-Fail Reset / VDD Monitor..................................................................................101
10.3. External Reset................................................................................................................102
10.4. Missing Clock Detector Reset .......................................................................................102
10.5. Comparator0 Reset ........................................................................................................102
10.6. PCA Watchdog Timer Reset .........................................................................................102
10.7. FLASH Error Reset .......................................................................................................102
10.8. Software Reset...............................................................................................................103
10.9. USB Reset .....................................................................................................................103
11. FLASH MEMORY ............................................................................................................107
11.1. Programming The FLASH Memory .............................................................................107
11.1.1. FLASH Lock and Key Functions ........................................................................107
11.1.2. FLASH Erase Procedure......................................................................................107
11.1.3. FLASH Write Procedure .....................................................................................108
11.2. Non-volatile Data Storage .............................................................................................109
11.3. Security Options ............................................................................................................109
12. EXTERNAL RAM .............................................................................................................113
12.1. Accessing User XRAM .................................................................................................113
12.2. Accessing USB FIFO Space..........................................................................................114
13. OSCILLATORS...................................................................................................................117
13.1. Programmable Internal Oscillator .................................................................................117
13.1.1. Programming the Internal Oscillator on C8051F320/1 Devices .........................118
13.1.2. Internal Oscillator Suspend Mode .......................................................................118
13.2. External Oscillator Drive Circuit...................................................................................120
13.2.1. Clocking Timers Directly Through the External Oscillator ................................120
13.2.2. External Crystal Example ....................................................................................120
13.2.3. External RC Example ..........................................................................................121
13.2.4. External Capacitor Example ................................................................................121
13.3. 4x Clock Multiplier .......................................................................................................123
13.4. System and USB Clock Selection .................................................................................124
13.4.1. System Clock Selection .......................................................................................124
13.4.2. USB Clock Selection ...........................................................................................124
14. PORT INPUT/OUTPUT ...................................................................................................127
14.1. Priority Crossbar Decoder .............................................................................................129
2003 Cygnal Integrated Products, Inc.
DS010-1.0 APR03
Page 5
Preliminary
C8051F320/1
14.2. Port I/O Initialization.....................................................................................................131
14.3. General Purpose Port I/O...............................................................................................134
15. UNIVERSAL SERIAL BUS CONTROLLER (USB0) ....................................................143
15.1. Endpoint Addressing .....................................................................................................144
15.2. USB Transceiver ...........................................................................................................144
15.3. USB Register Access.....................................................................................................146
15.4. USB Clock Configuration .............................................................................................150
15.5. FIFO Management.........................................................................................................151
15.5.1. FIFO Split Mode ..................................................................................................151
15.5.2. FIFO Double Buffering .......................................................................................151
15.5.3. FIFO Access ........................................................................................................152
15.6. Function Addressing......................................................................................................153
15.7. Function Configuration and Control .............................................................................154
15.8. Interrupts .......................................................................................................................157
15.9. The Serial Interface Engine ...........................................................................................161
15.10.Endpoint0.....................................................................................................................161
15.10.1.Endpoint0 SETUP Transactions .........................................................................162
15.10.2.Endpoint0 IN Transactions .................................................................................162
15.10.3.Endpoint0 OUT Transactions .............................................................................163
15.11.Configuring Endpoints1-3 ...........................................................................................166
15.12.Controlling Endpoints1-3 IN .......................................................................................166
15.12.1.Endpoints1-3 IN Interrupt or Bulk Mode ...........................................................166
15.12.2.Endpoints1-3 IN Isochronous Mode...................................................................167
15.13.Controlling Endpoints1-3 OUT ...................................................................................170
15.13.1.Endpoints1-3 OUT Interrupt or Bulk Mode .......................................................170
15.13.2.Endpoints1-3 OUT Isochronous Mode...............................................................170
16. SMBUS..................................................................................................................................175
16.1. Supporting Documents ..................................................................................................176
16.2. SMBus Configuration....................................................................................................176
16.3. SMBus Operation ..........................................................................................................177
16.3.1. Arbitration............................................................................................................177
16.3.2. Clock Low Extension...........................................................................................178
16.3.3. SCL Low Timeout ...............................................................................................178
16.3.4. SCL High (SMBus Free) Timeout.......................................................................178
16.4. Using the SMBus...........................................................................................................179
16.4.1. SMBus Configuration Register............................................................................180
16.4.2. SMB0CN Control Register ..................................................................................183
16.4.3. Data Register........................................................................................................186
16.5. SMBus Transfer Modes.................................................................................................187
16.5.1. Master Transmitter Mode ....................................................................................187
16.5.2. Master Receiver Mode.........................................................................................188
16.5.3. Slave Receiver Mode ...........................................................................................189
16.5.4. Slave Transmitter Mode.......................................................................................190
16.6. SMBus Status Decoding................................................................................................191
17. UART0 ..................................................................................................................................193