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

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

Скачать:  PDF   ZIP

Document Outline

COP8SBR9/COP8SCR9/COP8SDR9
8-Bit CMOS Flash Based Microcontroller with 32k
Memory, Virtual EEPROM and Brownout
1.0 General Description
The COP8SBR9/SCR9/SDR9 Flash based microcontrollers
are highly integrated COP8
TM
Feature core devices, with 32k
Flash memory and advanced features including Virtual EE-
PROM, High Speed Timers, USART, and Brownout Reset.
This single-chip CMOS device is suited for applications re-
quiring a full featured, in-system reprogrammable controller
with large memory and low EMI. The same device is used for
development, pre-production and volume production with a
range of COP8 software and hardware development tools.
Devices included in this datasheet:
Device
Flash Program
Memory
(bytes)
RAM
(bytes)
Brownout
Voltage
I/O
Pins
Packages
Temperature
COP8SBR9
32k
1k
2.7V to 2.9V
37,39,49,
59
44 LLP,
44/68 PLCC,
48/56 TSSOP
-40C to +85C
COP8SCR9
32k
1k
4.17V to 4.5V
37,39,49,
59
44 LLP,
44/68 PLCC,
48/56 TSSOP
-40C to +85C
-40C to +125C
COP8SDR9
32k
1k
No Brownout
37,39,49,
59
44 LLP,
44/68 PLCC,
48/56 TSSOP
-40C to +85C
-40C to +125C
2.0 Features
KEY FEATURES
n
32 kbytes Flash Program Memory with Security Feature
n
Virtual EEPROM using Flash Program Memory
n
1 kbyte volatile RAM
n
USART with on chip baud generator
n
2.7V5.5V In-System Programmability of Flash
n
High endurance - 100k Read/Write Cycles
n
Superior data retention - 100 years
n
Dual Clock Operation with HALT/IDLE Power Save
Modes
n
Three 16-bit timers:
-- Timers T2 and T3 can operate at high speed (50 ns
resolution)
-- Processor Independent PWM mode
-- External Event counter mode
-- Input Capture mode
n
Brown-out Reset (COP8SBR9/SCR9)
OTHER FEATURES
n
Single supply operation: 2.7V5.5V
n
Quiet Design (low radiated emissions)
n
Multi-Input Wake-up with optional interrupts
n
MICROWIRE/PLUS (Serial Peripheral Interface
Compatible)
n
Clock Doubler for 20 MHz operation from 10 MHz
Oscillator, with 0.5 s Instruction Cycle
n
Thirteen multi-source vectored interrupts servicing:
-- External Interrupt
-- USART (2)
-- Idle Timer T0
-- Three Timers (each with 2 interrupts)
-- MICROWIRE/PLUS Serial peripheral interface
-- Multi-Input Wake-Up
-- Software Trap
n
Idle Timer with programmable interrupt interval
n
8-bit Stack Pointer SP (stack in RAM)
n
Two 8-bit Register Indirect Data Memory Pointers
n
True bit manipulation
n
WATCHDOG and Clock Monitor logic
n
Software selectable I/O options
-- TRI-STATE
Output/High Impedance Input
-- Push-Pull Output
-- Weak Pull Up Input
n
Schmitt trigger inputs on I/O ports
n
High Current I/Os
n
Temperature range: 40C to +85C and 40C to
+125C (COP8SCR9/SDR9)
n
Packaging: 44 and 68 PLCC, 44 LLP, 48 and 56 TSSOP
n
True In-System, Real time emulation and debug offered
by MetaLink's Development Systemstools available
COP8
TM
is a trademark of National Semiconductor Corporation.
August 2003
COP8SBR9/COP8SCR9/COP8SDR9
8-Bit
CMOS
Flash
Based
Microcontroller
with
32k
Memory
,
V
irtual
EEPROM
and
Brownout
2003 National Semiconductor Corporation
DS101389
www.national.com
3.0 Block Diagram
10138901
4.0 Ordering Information
Part Numbering Scheme
COP8
SB
R
9
H
VA
8
Family and
Feature Set
Indicator
Program
Memory
Size
Program
Memory
Type
No. Of Pins
Package
Type
Temperature
SB = Low Brownout Voltage
SC = High Brownout Voltage
SD = No Brownout
R = 32k
9 = Flash
H = 44 Pin
I = 48 Pin
k = 56 Pin
L = 68 Pin
LQ = LLP
MT = TSSOP
VA = PLCC
7 = -40 to +125C
8 = -40 to +85C
COP8SBR9/COP8SCR9/COP8SDR9
www.national.com
2
Table of Contents
1.0 General Description ..................................................................................................................................... 1
2.0 Features ....................................................................................................................................................... 1
3.0 Block Diagram .............................................................................................................................................. 2
4.0 Ordering Information .................................................................................................................................... 2
5.0 Connection Diagrams ................................................................................................................................... 6
6.0 Architectural Overview ............................................................................................................................... 10
6.1 EMI REDUCTION .................................................................................................................................... 10
6.2 IN-SYSTEM PROGRAMMING AND VIRTUAL EEPROM ...................................................................... 10
6.3 DUAL CLOCK AND CLOCK DOUBLER ................................................................................................. 10
6.4 TRUE IN-SYSTEM EMULATION ............................................................................................................ 10
6.5 ARCHITECTURE
................................................................................................................................... 10
6.6 INSTRUCTION SET
............................................................................................................................... 10
6.6.1 Key Instruction Set Features ............................................................................................................. 10
6.6.2 Single Byte/Single Cycle Code Execution
....................................................................................... 10
6.6.3 Many Single-Byte, Multi-Function Instructions .................................................................................. 10
6.6.4 Bit-Level Control ................................................................................................................................ 11
6.6.5 Register Set ....................................................................................................................................... 11
6.7 PACKAGING/PIN EFFICIENCY .............................................................................................................. 11
7.0 Absolute Maximum Ratings ....................................................................................................................... 12
8.0 Electrical Characteristics ............................................................................................................................ 12
9.0 Pin Descriptions ......................................................................................................................................... 17
9.1 EMULATION CONNECTION ................................................................................................................... 18
10.0 Functional Description .............................................................................................................................. 19
10.1 CPU REGISTERS ................................................................................................................................. 19
10.2 PROGRAM MEMORY ........................................................................................................................... 19
10.3 DATA MEMORY .................................................................................................................................... 19
10.4 DATA MEMORY SEGMENT RAM EXTENSION .................................................................................. 19
10.4.1 Virtual EEPROM .............................................................................................................................. 20
10.5 OPTION REGISTER ............................................................................................................................. 20
10.6 SECURITY ............................................................................................................................................ 21
10.7 RESET ................................................................................................................................................... 21
10.7.1 External Reset ................................................................................................................................. 22
10.7.2 On-Chip Brownout Reset ................................................................................................................. 22
10.8 OSCILLATOR CIRCUITS ...................................................................................................................... 24
10.8.1 Oscillator .......................................................................................................................................... 24
10.8.2 Clock Doubler .................................................................................................................................. 24
................................................................................................................................................................... 0
10.9 CONTROL REGISTERS ....................................................................................................................... 25
10.9.1 CNTRL Register (Address X'00EE) ................................................................................................. 25
10.9.2 PSW Register (Address X'00EF) ..................................................................................................... 25
10.9.3 ICNTRL Register (Address X'00E8) ................................................................................................ 25
10.9.4 T2CNTRL Register (Address X'00C6) ............................................................................................. 25
10.9.5 T3CNTRL Register (Address X'00B6) ............................................................................................. 26
10.9.6 HSTCR Register (Address X'00AF) ................................................................................................ 26
10.9.7 ITMR Register (Address X'00CF) .................................................................................................... 26
11.0 In-System Programming ........................................................................................................................... 27
11.1 INTRODUCTION ................................................................................................................................... 27
11.2 FUNCTIONAL DESCRIPTION .............................................................................................................. 27
11.3 REGISTERS .......................................................................................................................................... 27
11.3.1 ISP Address Registers ..................................................................................................................... 27
11.3.2 ISP Read Data Register .................................................................................................................. 28
11.3.3 ISP Write Data Register ................................................................................................................... 28
11.3.4 ISP Write Timing Register ................................................................................................................ 28
11.4 MANEUVERING BACK AND FORTH BETWEEN FLASH MEMORY AND BOOT ROM ..................... 29
11.5 FORCED EXECUTION FROM BOOT ROM ......................................................................................... 29
11.6 RETURN TO FLASH MEMORY WITHOUT HARDWARE RESET ....................................................... 30
11.7 MICROWIRE/PLUS ISP ........................................................................................................................ 30
11.8 USER ISP AND VIRTUAL E
2
................................................................................................................ 30
11.9 RESTRICTIONS ON SOFTWARE WHEN CALLING ISP ROUTINES IN BOOT ROM ....................... 32
11.10 FLASH MEMORY DURABILITY CONSIDERATIONS ........................................................................ 32
12.0 Timers ....................................................................................................................................................... 34
12.1 TIMER T0 (IDLE TIMER) ...................................................................................................................... 34
COP8SBR9/COP8SCR9/COP8SDR9
www.national.com
3
Table of Contents
(Continued)
12.1.1 ITMR Register .................................................................................................................................. 34
12.2 TIMER T1, TIMER T2, AND TIMER T3 ................................................................................................ 35
12.2.1 Timer Operating Speeds .................................................................................................................. 35
12.2.2 Mode 1. Processor Independent PWM Mode ................................................................................. 35
12.2.3 Mode 2. External Event Counter Mode ........................................................................................... 36
12.2.4 Mode 3. Input Capture Mode .......................................................................................................... 36
12.3 TIMER CONTROL FLAGS .................................................................................................................... 36
13.0 Power Saving Features ............................................................................................................................ 37
13.1 POWER SAVE MODE CONTROL REGISTER .................................................................................... 38
13.2 OSCILLATOR STABILIZATION ............................................................................................................. 39
13.3 HIGH SPEED MODE OPERATION ...................................................................................................... 39
13.3.1 High Speed Halt Mode .................................................................................................................... 39
13.3.1.1 Entering The High Speed Halt Mode ......................................................................................... 39
13.3.1.2 Exiting The High Speed Halt Mode ........................................................................................... 39
13.3.1.3 HALT Exit Using Reset .............................................................................................................. 39
13.3.1.4 HALT Exit Using Multi-Input Wake-up ....................................................................................... 39
13.3.1.5 Options ....................................................................................................................................... 39
13.3.2 High Speed Idle Mode ..................................................................................................................... 40
13.4 DUAL CLOCK MODE OPERATION ...................................................................................................... 40
13.4.1 Dual Clock HALT Mode ................................................................................................................... 41
13.4.1.1 Entering The Dual Clock Halt Mode .......................................................................................... 41
13.4.1.2 Exiting The Dual Clock Halt Mode ............................................................................................. 41
13.4.1.3 HALT Exit Using Reset .............................................................................................................. 41
13.4.1.4 HALT Exit Using Multi-Input Wake-up ....................................................................................... 41
13.4.1.5 Options ....................................................................................................................................... 41
13.4.2 Dual Clock Idle Mode ...................................................................................................................... 41
13.5 LOW SPEED MODE OPERATION ....................................................................................................... 42
13.5.1 Low Speed HALT Mode ................................................................................................................... 42
13.5.1.1 Entering The Low Speed Halt Mode ......................................................................................... 42
13.5.1.2 Exiting The Low Speed Halt Mode ............................................................................................ 42
13.5.1.3 HALT Exit Using Reset .............................................................................................................. 42
13.5.1.4 HALT Exit Using Multi-Input Wake-up ....................................................................................... 42
13.5.1.5 Options ....................................................................................................................................... 42
13.5.2 Low Speed Idle Mode ...................................................................................................................... 42
13.6 MULTI-INPUT WAKE-UP ...................................................................................................................... 43
14.0 USART ..................................................................................................................................................... 44
14.1 USART CONTROL AND STATUS REGISTERS ................................................................................... 45
14.2 DESCRIPTION OF USART REGISTER BITS ...................................................................................... 45
14.3 ASSOCIATED I/O PINS ........................................................................................................................ 46
14.4 USART OPERATION ............................................................................................................................ 46
14.4.1 Asynchronous Mode ........................................................................................................................ 47
14.4.2 Synchronous Mode .......................................................................................................................... 47
14.5 FRAMING FORMATS ............................................................................................................................ 47
14.6 USART INTERRUPTS .......................................................................................................................... 48
14.7 BAUD CLOCK GENERATION .............................................................................................................. 48
14.8 EFFECT OF HALT/IDLE ....................................................................................................................... 50
14.9 DIAGNOSTIC ........................................................................................................................................ 50
14.10 ATTENTION MODE ............................................................................................................................. 50
14.11 BREAK GENERATION ........................................................................................................................ 50
15.0 Interrupts .................................................................................................................................................. 51
15.1 INTRODUCTION ................................................................................................................................... 51
15.2 MASKABLE INTERRUPTS ................................................................................................................... 51
15.3 VIS INSTRUCTION ............................................................................................................................... 52
15.3.1 VIS Execution .................................................................................................................................. 53
15.4 NON-MASKABLE INTERRUPT ............................................................................................................ 54
15.4.1 Pending Flag .................................................................................................................................... 54
15.4.2 Software Trap .................................................................................................................................. 54
15.4.2.1 Programming Example: External Interrupt ................................................................................. 56
15.5 PORT L INTERRUPTS .......................................................................................................................... 56
15.6 INTERRUPT SUMMARY ....................................................................................................................... 56
16.0 WATCHDOG/Clock Monitor ..................................................................................................................... 57
COP8SBR9/COP8SCR9/COP8SDR9
www.national.com
4
Table of Contents
(Continued)
16.1 CLOCK MONITOR ................................................................................................................................ 57
16.2 WATCHDOG/CLOCK MONITOR OPERATION .................................................................................... 57
16.3 WATCHDOG AND CLOCK MONITOR SUMMARY .............................................................................. 58
16.4 DETECTION OF ILLEGAL CONDITIONS ............................................................................................ 58
17.0 MICROWIRE/PLUS .................................................................................................................................. 59
17.1 MICROWIRE/PLUS OPERATION ......................................................................................................... 59
17.1.1 MICROWIRE/PLUS Master Mode Operation .................................................................................. 59
17.1.2 MICROWIRE/PLUS Slave Mode Operation .................................................................................... 59
17.1.2.1 Alternate SK Phase Operation and SK Idle Polarity ................................................................. 60
18.0 Memory Map ............................................................................................................................................ 62
19.0 Instruction Set .......................................................................................................................................... 64
19.1 INTRODUCTION ................................................................................................................................... 64
19.2 INSTRUCTION FEATURES .................................................................................................................. 64
19.3 ADDRESSING MODES ......................................................................................................................... 64
19.3.1 Operand Addressing Modes ............................................................................................................ 64
19.3.2 Tranfer-of-Control Addressing Modes .............................................................................................. 65
19.4 INSTRUCTION TYPES ......................................................................................................................... 66
19.4.1 Arithmetic Instructions ...................................................................................................................... 66
19.4.2 Transfer-of-Control Instructions ....................................................................................................... 66
19.4.3 Load and Exchange Instructions ..................................................................................................... 66
19.4.4 Logical Instructions .......................................................................................................................... 66
19.4.5 Accumulator Bit Manipulation Instructions ....................................................................................... 66
19.4.6 Stack Control Instructions ................................................................................................................ 66
19.4.7 Memory Bit Manipulation Instructions ............................................................................................. 66
19.4.8 Conditional Instructions ................................................................................................................... 66
19.4.9 No-Operation Instruction .................................................................................................................. 66
19.5 REGISTER AND SYMBOL DEFINITION .............................................................................................. 67
19.6 INSTRUCTION SET SUMMARY .......................................................................................................... 67
19.7 INSTRUCTION EXECUTION TIME ...................................................................................................... 69
20.0 Development Support .............................................................................................................................. 71
20.1 TOOLS ORDERING NUMBERS FOR THE COP8 FLASH FAMILY DEVICES ................................... 71
20.2 COP8 TOOLS OVERVIEW ................................................................................................................... 73
20.3 WHERE TO GET TOOLS ..................................................................................................................... 74
21.0 Revision History ....................................................................................................................................... 76
22.0 Physical Dimensions ................................................................................................................................ 79
COP8SBR9/COP8SCR9/COP8SDR9
www.national.com
5