COP8-REF-FL1 National Semiconductor, COP8-REF-FL1 Datasheet

no-image

COP8-REF-FL1

Manufacturer Part Number
COP8-REF-FL1
Description
KIT REF DESIGN FOR COP8SDR9
Manufacturer
National Semiconductor
Series
COP8™r
Type
MCUr
Datasheet

Specifications of COP8-REF-FL1

Design Resources
COP8 Flash Ref Design Flyer
Contents
PCB, Control Interface, Documentation and 9V Battery
For Use With/related Products
COP8SDR9
Lead Free Status / RoHS Status
Not applicable / Not applicable
© 2002 National Semiconductor Corporation
COP8CFE9
8-Bit CMOS Flash Microcontroller with 8k Memory,
Virtual EEPROM, and 10-Bit A/D
General Description
The COP8CFE9 Flash microcontroller is a highly integrated
COP8
advanced features including Virtual EEPROM, A/D, and High
Speed Timers. This single-chip CMOS device is suited for
Features
KEY FEATURES
n 8k bytes Flash Program Memory with Security Feature
n Virtual EEPROM using Flash Program Memory
n 256byte volatile RAM
n 10-bit Successive Approximation Analog to Digital
n 100% Precise Analog Emulation
n 2.7V – 5.5V In-System Programmability of Flash
n High endurance -100k Read/Write Cycles
n Superior Data Retention - 100 years
n HALT/IDLE Power Save Modes
n Two 16-bit timers:
n High Current I/Os
OTHER FEATURES
n Single supply operation:
COP8
Device included in this datasheet:
Converter (up to 16 channels)
— Timer T2 can operate at high speed (50 ns
— Processor Independent PWM mode
— External Event counter mode
— Input Capture mode
— B0 – B3: 10 mA
— All others: 10 mA
— 2.7V–5.5V (−40˚C to +85˚C)
— 4.5V–5.5V (−40˚C to +125˚C)
COP8CFE9
Device
resolution)
is a trademark of National Semiconductor Corporation.
Feature core device, with 8k Flash memory and
Memory (bytes)
Flash Program
@
@
8k
0.3V
1.0V
(bytes)
RAM
DS200264
256
No Brownout
Brownout
Voltage
applications requiring a full featured, in-system reprogram-
mable 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.
n Quiet Design (low radiated emissions)
n Multi-Input Wake-up with optional interrupts
n MICROWIRE/PLUS (Serial Peripheral Interface
n Nine multi-source vectored interrupts servicing:
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
n Schmitt trigger inputs on I/O ports
n Temperature range: –40˚C to +85˚C and –40˚C to
n Packaging: 44 PLCC, 44 LLP and 48 TSSOP
Compatible)
+125˚C
— External Interrupt
— Idle Timer T0
— Two Timers (each with 2 interrupts)
— MICROWIRE/PLUS Serial peripheral interface
— Multi-Input Wake-up
— Software Trap
— TRI-STATE Output/High Impedance Input
— Push-Pull Output
— Weak Pull Up Input
37, 39
Pins
I/O
48 TSSOP
Packages
44 PLCC,
44 LLP,
PRELIMINARY
−40˚C to +125˚C
−40˚C to +85˚C
Temperature
www.national.com
April 2002

Related parts for COP8-REF-FL1

COP8-REF-FL1 Summary of contents

Page 1

... National Semiconductor Corporation. © 2002 National Semiconductor Corporation applications requiring a full featured, in-system reprogram- mable 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. RAM Brownout I/O ...

Page 2

... Block Diagram Ordering Information COP8 CF Family and Feature Set Indicator www.national.com Part Numbering Scheme Program Program Memory Memory No. Of Pins Size Type Flash Pin Pin 2 20026463 VA 8 Package Temperature Type LQ = LLP 7 = -40 to +125˚ TSSOP 8 = -40 to +85˚ PLCC ...

Page 3

Connection Diagrams Top View Plastic Chip Package See NS Package Number V44A Top View LLP Package See NS Package Number LQA44A 20026464 TSSOP Package See NS Package Number MTD48 20026455 3 20026459 Top View www.national.com ...

Page 4

Port Type Alt. Function L0 I/O MIWU L1 I/O MIWU L2 I/O MIWU L3 I/O MIWU L4 I/O MIWU or T2A L5 I/O MIWU or T2B L6 I/O MIWU L7 I/O MIWU G0 I/O INT a G1 I/O WDOUT G2 ...

Page 5

... Many of these issues can be addressed through the manner in which a microcontroller’s instruction set handles process- ing tasks. And that’s why the COP8 family offers a unique and code-efficient instruction set - one that provides the flexibility, functionality, reduced costs and faster time to mar- ket that today’ ...

Page 6

... I/O needed. Large packages take valuable board space and increase device cost, two trade-offs that microcontroller de- signs can ill afford. The COP8 family offers a wide range of packages and does not waste pins. 6 ...

Page 7

... Absolute Maximum Ratings If Military/Aerospace specified devices are required, please contact the National Semiconductor Sales Office/ Distributors for availability and specifications. Supply Voltage ( Voltage at Any Pin Total Current into V Pin (Source) CC 2.0 Electrical Characteristics TABLE 1. DC Electrical Characteristics (−40˚C Datasheet min/max specification limits are guaranteed by design, test, or statistical analysis. ...

Page 8

Electrical Characteristics TABLE 1. DC Electrical Characteristics (−40˚C Datasheet min/max specification limits are guaranteed by design, test, or statistical analysis. Parameter Input Capacitance Voltage Force Execution from Boot ROM(Note 8) G6 Rise Time to Force Execution ...

Page 9

A/D Converter Electrical Characteristics (−40˚C Datasheet min/max specification limits are guaranteed by design, test, or statistical analysis. Parameter Resolution DNL DNL INL INL Offset Error Offset Error Gain Error Gain Error Input Voltage Range Analog Input Leakage Current Analog Input ...

Page 10

Datasheet min/max specification limits are guaranteed by design, test, or statistical analysis. Parameter Operating Voltage Power Supply Rise Time Power Supply Ripple (Note 2) Supply Current (Note 3) CKI = 10 MHz CKI = 3.33 MHz HALT Current with BOR ...

Page 11

AC Electrical Characteristics (−40˚C Datasheet min/max specification limits are guaranteed by design, test, or statistical analysis. Parameter MICROWIRE/PLUS Output Propagation Delay (t ) UPD Input Pulse Width Interrupt Input High Time Interrupt Input Low Time Timer 1 Input High Time ...

Page 12

... CC Note 17: Resistance between the device input and the internal sample and hold capacitance. 3.0 Pin Descriptions The COP8CFE I/O structure enables designers to reconfig- ure the microcontroller’s I/O functions with a single instruc- tion. Each individual I/O pin can be independently configured as output pin low, output high, input with high impedance or input with weak pull-up device ...

Page 13

Pin Descriptions (Continued) CKI is the clock input. This can be connected (in conjunction with CKO external crystal circuit to form a crystal oscillator. See Oscillator Description section. RESET is the master reset input. See Reset description ...

Page 14

... Connection to the emulation system is made via connector which interrupts the continuity of the RESET, G0, G1, G2 and G3 signals between the COP8 device and the rest of the target system (as shown in Figure 6 ). This con- nector can be designed into the production pc board and can be replaced by jumpers or signal traces when emulation is no longer necessary ...

Page 15

Functional Description RAM address 06F Hex. The SP is decremented as items are pushed onto the stack. SP points to the next available loca- tion on the stack. All the CPU registers are memory mapped with the excep- tion ...

Page 16

... Bit The COP8 assembler defines a special ROM section type, CONF, into which the Option Register data may be coded. The Option Register is programmed automatically by pro- grammers that are certified by National. The user needs to ensure that the FLEX bit will be set when the device is programmed ...

Page 17

... Functional Description ;options .endsect Example: The following sets a value in the Option Register and User Identification for a COP8CFE9HVA7. The Option Register bit values shown select options: Security disabled, WATCHDOG enabled HALT mode enabled and execution will commence from Flash Memory. .chip 8CFE ...

Page 18

Functional Description WATCHDOG service window of 64k T0 clock cycles. The Clock Monitor bit being initialized high will cause a Clock Monitor error following reset if the clock has not reached the minimum specified frequency at the termination of ...

Page 19

Functional Description 4.9 CONTROL REGISTERS CNTRL Register (Address X'00EE) T1C3 T1C2 T1C1 T1C0 MSEL Bit 7 The Timer1 (T1) and MICROWIRE/PLUS control register contains the following bits: T1C3 Timer T1 mode control bit T1C2 Timer T1 mode control bit ...

Page 20

In-System Programming 5.1 INTRODUCTION This device provides the capability to program the program memory while installed in an application board. This feature is called In System Programming (ISP). It provides a means of ISP by using the MICROWIRE/PLUS, or ...

Page 21

In-System Programming (Continued) 5.3.2 ISP Read Data Register The Read Data Register (ISPRD) contains the value read back from a read operation. This register can be accessed from either flash program memory or Boot ROM. This regis- ter is ...

Page 22

In-System Programming (Continued) 5.4 MANEUVERING BACK AND FORTH BETWEEN FLASH MEMORY AND BOOT ROM When using ISP, at some point, it will be necessary to maneuver between the flash program memory and the Boot ROM, even when using customized ...

Page 23

... PC. The software accepts manually input commands and is capable of downloading standard Intel HEX Format files. Users who wish to write their own MICROWIRE/PLUS ISP host software should refer to the COP8 FLASH ISP User Command Function PGMTIM_SET ...

Page 24

... JSRB instruction. Table 13 lists the Ram locations and Peripheral Registers, used for User ISP and Virtual E pected contents. Please refer to the COP8 FLASH ISP User Manual for additional information and programming ex- 2 commands, ...

Page 25

In-System Programming Command/ Command Function Label Entry Point cpgerase Page Erase 0x17 cmserase Mass Erase 0x1A creadbf Read Byte 0x11 cblockr Block Read 0x26 cwritebf Write Byte 0x14 cblockw Block Write 0x23 exit EXIT 0x62 (Continued) 2 TABLE 12. ...

Page 26

In-System Programming Register Name ISPADHI High byte of Flash Memory Address ISPADLO Low byte of Flash Memory Address ISPWR The user must store the byte to be written into this register before jumping into the write byte routine. ISPRD ...

Page 27

... RSVD RSVD1 RSVD 4,096 inst. cycles Bit 7 Bit 6 8,192 inst. cycles Note: Documentation for previous COP8 device, which in- 16,384 inst. cycles cluded the Programmable Idle Timer, recommended the user 32,768 inst. cycles write zero to the high order bits of the ITMR Register. If 65,536 inst ...

Page 28

Timers (Continued) 6.2 TIMER T1 AND TIMER T2 The device has a set of two powerful timer/counter blocks, T1, and T2. Since T1, and T2 are identical, except for the high speed operation of T2, all comments are equally ...

Page 29

Timers (Continued) FIGURE 15. Timer in External Event Counter Mode 6.2.4 Mode 3. Input Capture Mode The device can precisely measure external frequencies or time external events by placing the timer block, Tx, in the input capture mode. In ...

Page 30

Timers (Continued) register. Any type of read/write operation, including SBIT and RBIT may be performed on this register in any operating mode. Mode TxC3 TxC2 ...

Page 31

Power Saving Features lator has a sufficiently large amplitude to meet the Schmitt trigger specifications. This Schmitt trigger is not part of the oscillator closed loop. The start-up time-out from the IDLE timer enables the clock signals to be ...

Page 32

Power Saving Features 7.3 MULTI-INPUT WAKE-UP The Multi-Input Wake-up feature is used to return (wake-up) the device from either the HALT or IDLE modes. Alternately Multi-Input Wake-up/Interrupt feature may also be used to generate edge selectable ...

Page 33

Power Saving Features 8.0 A/D Converter This device contains a 16-channel, multiplexed input, suc- cessive approximation, 10 bit Analog-to-Digital Converter. Pins AV and AGND are used for the voltage reference. CC 8.1 OPERATING MODES It supports both Single Ended ...

Page 34

A/D Converter (Continued) TABLE 17. ENAD Bit 7 Channel Select Mode Select Mux/Out Prescale ADCH3 ADCH2 ADCH1 ADCH0 ADMOD CHANNEL SELECT This 4-bit field selects one of sixteen channels to be the V The mode selection and the mux ...

Page 35

A/D Converter (Continued) TABLE 19. A/D Converter Channel Selection when the Multiplexor Output is Enabled Select Bits ADCH3 ADCH2 ADCH1 ...

Page 36

A/D Converter (Continued) FIGURE 20. A/D with Single Ended Mux Output Feature Enabled FIGURE 21. A/D with Differential Mux Output Feature Enabled MODE SELECT This 1-bit field is used to select the mode of operation (single ended or differential) ...

Page 37

A/D Converter (Continued) 8.2 A/D OPERATION The A/D conversion is completed within fifteen A/D converter clocks. The A/D Converter interface works as follows. Setting the ADBSY bit in the A/D control register ENAD initiates an A/D conversion. The conversion ...

Page 38

Interrupts 9.1 INTRODUCTION The device supports nine vectored interrupts. Interrupt sources include Timer 1, Timer 2, Timer T0, Port L Wake-up, Software Trap, MICROWIRE/PLUS, and External Input. All interrupts force a branch to location 00FF Hex in program memory. ...

Page 39

Interrupts (Continued) tion. If the next normally executed instruction skipped, the skip is performed before the pending interrupt is acknowledged. At the start of interrupt acknowledgment, the following ac- tions occur: 1. The GIE bit is ...

Page 40

Interrupts (Continued) ensure that execution is not erroneous, the routine should restore the program context and execute the RETI to return to the interrupted program. This technique can save up to fifty instruction cycles (t more, (50 µs at ...

Page 41

Interrupts (Continued) 9.4 NON-MASKABLE INTERRUPT 9.4.1 Pending Flag There is a pending flag bit associated with the non-maskable Software Trap interrupt, called STPND. This pending flag is not memory-mapped and cannot be accessed directly by the software. The pending ...

Page 42

Interrupts (Continued) user program should contain the Software Trap routine to perform a recovery procedure rather than a return to normal execution. Under normal conditions, the STPND flag is reset by a RPND instruction in the Software Trap service ...

Page 43

Interrupts (Continued) . SERVICE: RBIT,EXPND,PSW . . . RET I 9.5 PORT L INTERRUPTS Port L provides the user with an additional eight fully select- able, edge sensitive interrupts which are all vectored into the same service subroutine. The ...

Page 44

WATCHDOG/CLOCK MONITOR WDSVR WDSVR Bit 7 Bit 10.1 CLOCK MONITOR The Clock Monitor aboard the device can be selected or deselected under program control. The Clock Monitor is guaranteed not to reject ...

Page 45

WATCHDOG/CLOCK MONITOR (Continued) 10.3 WATCHDOG AND CLOCK MONITOR SUMMARY The following salient points regarding the WATCHDOG and CLOCK MONITOR should be noted: • Both the WATCHDOG and CLOCK MONITOR detector circuits are inhibited during RESET. • Following RESET, the ...

Page 46

MICROWIRE/PLUS TABLE 28. MICROWIRE/PLUS Master Mode Clock Select SL1 SL0 Where t is the instruction cycle clock C 11.1 MICROWIRE/PLUS OPERATION Setting the BUSY bit in the PSW register causes the MICROWIRE/PLUS to ...

Page 47

MICROWIRE/PLUS clock. The SIO register is shifted on each falling edge of the SK clock. In the alternate SK phase operation, data is shifted in on the falling edge of the SK clock and shifted out on the rising ...

Page 48

MICROWIRE/PLUS FIGURE 30. MICROWIRE/PLUS SPI Mode Interface Timing, Alternate SK Mode, SK Idle Phase being High 13.0 Memory Map All RAM, ports and registers (except A and PC) are mapped into data memory address space. Address Contents S/ADD REG ...

Page 49

... Reading memory locations from other Seg- ments (i.e., Segment 8, Segment 9, … etc.) will return undefined data. 13.0 Instruction Set 13.1 INTRODUCTION This section defines the instruction set of the COP8 Family members. It contains information about the instruction set features, addressing modes and types. 13.2 INSTRUCTION FEATURES ...

Page 50

Instruction Set (Continued) Reg/Data Contents Memory Before Accumulator 01 Hex Memory Location 87 Hex 0005 Hex B Pointer 05 Hex Register Indirect with Post-Incrementing/ Decrementing. The relevant memory address is specified by the contents of the ...

Page 51

Instruction Set (Continued) Jump Absolute Long. In this 3-byte instruction, 15 bits of the instruction opcode specify the new contents of the Pro- gram Counter. Example: Jump Absolute Long JMP 03625 Reg/ Contents Memory Before PCU 42 Hex PCL ...

Page 52

... REGISTER AND SYMBOL DEFINITION The following abbreviations represent the nomenclature used in the instruction description and the COP8 cross- assembler. Registers A 8-Bit Accumulator Register B ...

Page 53

Instruction Set (Continued) 13.6 INSTRUCTION SET SUMMARY ADD A,Meml ADD ADC A,Meml ADD with Carry SUBC A,Meml Subtract with Carry AND A,Meml Logical AND ANDSZ A,Imm Logical AND Immed., Skip if Zero OR A,Meml Logical OR XOR A,Meml Logical ...

Page 54

Instruction Set (Continued) JSRL Addr. Jump SubRoutine Long JSR Addr. Jump SubRoutine JSRB Addr Jump SubRoutine Boot ROM JID Jump InDirect RET RETurn from subroutine RETSK RETurn and SKip RETI RETurn from Interrupt INTR Generate an Interrupt NOP No ...

Page 55

Instruction Set (Continued) Register Indirect [ (Note 21) 1 (Note 21) 1/1 LD B,Imm LD B,Imm LD Mem,Imm 2/2 LD Reg,Imm IFEQ MD,Imm > Note 21: = Memory location addressed ...

Page 56

Nibble Lower 56 ...

Page 57

... COP8-REF-FL1 Reference Designs COP8-REF-AM Starter Kits and Hardware Target Boards Starter COP8-SKFLASH-00 Development Kits COP8-SKFLASH-01 (Available 6/2002) COP8-REF-FL1 or -AM Software Development Languages, and Integrated Development Environments National’s WCOP8 COP8-NSDEV IDE and Assembler on CD COP8 Library www.kkd.dk/libman.htm Manager from KKD WEBENCH Online www ...

Page 58

... Baseline version - Purchase from IAR only. Free Assembler only; No COP8 Emulator/Debugger support. L Includes 110v/220v p/s, target cable with 2x7 connector pin COP8CDR9 Null Target, manuals and software on CD COP8AME/ANE9 uses optional 28 pin Null Target (COP8-EMFA-28N). - Add PLCC Target Package Adapter if needed pin PLCC COP8CDR9 ...

Page 59

... COP8Flash Emulator, or our COP8-NSDEV CD with your ISP cable for a complete low-cost development system.) COP8 Starter Kits and Hardware Target Solutions - Hardware Kits for: In-depth Evaluation and Testing of COP8 capabilities; Developing and Testing Code; Implementing Product COP8 Flash Flash Starter Kit - A complete Code Development Tool for COP8Flash Families. A ...

Page 60

... PC serial interface only. COP8 COP8-PM Development Programming Module. Windows programming tool for Programming COP8 OTP and Flash Families. Includes on-board 40 DIP programming socket, Module control software, RS232 cable, and power supply. (Requires optional COP8-PGMA programming adapters for COP8FLASH devices) ...

Page 61

... Fax: +39 0434 631598 The following companies have approved COP8 programmers in a variety of configurations. Contact your vendor’s local office or distributor and request a COP8FLASH update. You can link to their web sites and get the latest listing of approved programmers at: www.national.com/cop8. Advantech; BP Microsystems; Data I/O; Dataman; Hi-Lo Systems; KANDA, Lloyd Research; MQP; Needhams; Phyton; SofTec Microsystems ...

Page 62

... Physical Dimensions www.national.com inches (millimeters) unless otherwise noted LLP Package (LQA) Order Number COP8CFE9HLQ8 NS Package Number LQA44A TSSOP Package (MTD) Order Number COP8CFE9IMT8 NS Package Number MTD48 62 ...

Page 63

... National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications. inches (millimeters) unless otherwise noted (Continued) Plastic Leaded Chip Carrier (VA) Order Number COP8CFE9HVA8 NS Package Number V44A 2. A critical component is any component of a life ...

Related keywords