COP884CF National Semiconductor, COP884CF Datasheet
COP884CF
Related parts for COP884CF
COP884CF Summary of contents
Page 1
... Memory mapped Software selectable I O options (TRI-STATE Y push-pull output weak pull-up input high impedance in- put) Schmitt trigger inputs on ports G and L Y Block Diagram TRI-STATE is a registered trademark of National Semiconductor Corporation MICROWIRE PLUS TM COP8 TM and WATCHDOG TM are trademarks of National Semiconductor Corporation PC ...
Page 2
General Description (Continued fully static part fabricated using double-metal silicon gate microCMOS technology Features include an 8-bit memory mapped architecture MICROWIRE PLUS serial I O three 16-bit timer counters supporting three modes (Processor Independent PWM generation External ...
Page 3
Connection Diagrams (Continued) Port Type WDOUT ...
Page 4
... 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 b Total Current into V Pin (Source Electrical Characteristics Parameter Operating Voltage Power Supply Ripple (Note 1) ...
Page 5
AC Electrical Characteristics Parameter Instruction Cycle Time ( Crystal Resonator R C Oscillator Inputs t SETUP t HOLD Output Propagation Delay (Note PD1 PD0 SO SK All Others MICROWIRE Setup Time (t ) UWS MICROWIRE ...
Page 6
Comparators AC and DC Characteristics Parameter Input Offset Voltage Input Common Mode Voltage Range Low Level Output Current High Level Output Current DC Supply Current per Comparator (When Enabled) Response Time http www national com ...
Page 7
Pin Descriptions V and GND are the power supply pins All V CC pins must be connected CKI is the clock input This can come from generat- ed oscillator or a crystal oscillator (in conjunction with CKO) ...
Page 8
Pin Descriptions (Continued) Note that the chip will be placed in the HALT mode by writ- ing a ‘‘1’’ to bit 7 of the Port G Data Register Similarly the chip will be placed in the IDLE mode by writing ...
Page 9
Data Memory Segment RAM Extension Data memory address 0FF is used as a memory mapped location for the Data Segment Address Register (S) The data store memory is either addressed directly by a single byte address within the instruction or ...
Page 10
Reset The RESET input when pulled low initializes the microcon- troller Initialization will occur whenever the RESET input is pulled low Upon initialization the data and configuration registers for ports L G and C are cleared resulting in these Ports ...
Page 11
Control Registers CNTRL Register (Address X 00EE) The Timer1 (T1) and MICROWIRE PLUS control register contains the following bits SL1 SL0 Select the MICROWIRE PLUS clock divide by ( IEDG External interrupt ...
Page 12
Timers The device contains a very versatile set of timers ( T3) All timers and associated autoreload capture regis- ters power up containing random data TIMER T0 (IDLE TIMER) The device supports applications that require maintaining real time ...
Page 13
Timers (Continued) Figure 9 shows a block diagram of the timer in External Event Counter mode Note The PWM output is not available in this mode since the TxA pin is being used as the counter input clock FIGURE 9 ...
Page 14
Timers (Continued) The timer mode control bits (TxC3 TxC2 and TxC1) are detailed below TxC3 TxC2 TxC1 ...
Page 15
Power Save Modes (Continued) The device has two mask options associated with the HALT mode The first mask option enables the HALT mode fea- ture while the second mask option disables the HALT mode With the HALT mode enable mask ...
Page 16
Multi-Input Wakeup (Continued) The Multi-Input Wakeup feature utilizes the L Port The user selects which particular L port bit (or combination of L Port bits) will cause the device to exit the HALT or IDLE modes The selection is done ...
Page 17
UART The device contains a full-duplex software programmable UART The UART (Figure 12) consists of a transmit shift register a receive shift register and seven addressable reg- isters as follows a transmit buffer register (TBUF) a receiv- er buffer register ...
Page 18
UART (Continued) UART CONTROL AND STATUS REGISTERS The operation of the UART is programmed through three registers ENU ENUR and ENUI The function of the individ- ual bits in these registers is as follows ENU-UART Control and Status Register (Address ...
Page 19
UART (Continued) ETDX TDX (UART Transmit Pin) is the alternate function assigned to Port L pin selected by setting ETDX bit To simulate line break generation software should reset ETDX bit and output logic zero to TDX ...
Page 20
UART Operation (Continued) UART INTERRUPTS The UART is capable of generating interrupts Interrupts are generated on Receive Buffer Full and Transmit Buffer Emp- ty Both interrupts have individual interrupt vectors Two bytes of program memory space are reserved for each ...
Page 21
Baud Clock Generation (Continued) FIGURE 14 UART BAUD Clock Generation FIGURE 15 UART BAUD Clock Divisor Registers 12532 – 12532 – 20 http www national com ...
Page 22
Baud Clock Generation TABLE IV Baud Rate Divisors (1 8432 MHz Prescaler Output) Baud Baud Rate Rate Divisor b 110 (110 03) 1046 134 5 (134 58) 855 150 767 300 383 600 191 1200 95 1800 63 2400 47 ...
Page 23
Baud Clock Generation (Continued) Where BR is the Baud Rate Fc is the CKI frequency N is the Baud Rate Divisor (Table IV the Prescaler Divide Factor selected by the value in the Prescaler Select Register (Table V) ...
Page 24
Comparators (Continued) CMPSL REGISTER (ADDRESS X’00B7) The CMPSL register contains the following bits CMP1EN Enable comparator 1 CMP1RD Comparator 1 result (this is a read only bit which will read the comparator is not enabled) CMP10E Selects ...
Page 25
Interrupts (Continued) At this time since GIE 0 other maskable interrupts are e disabled The user is now free to do whatever context switching is required by saving the context of the machine in the stack with PUSH instructions The ...
Page 26
Interrupts (Continued) When an ST occurs the user can re-initialize the stack pointer and do a recovery procedure (similar to reset but not necessarily containing all of the same initialization pro- cedures) before restarting The occurrence ...
Page 27
WATCHDOG Operation (Continued) 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 WATCHDOG and CLOCK MONI- ...
Page 28
... MICROWIRE PLUS MICROWIRE PLUS is a serial synchronous communica- tions interface The MICROWIRE PLUS capability enables the device to interface with any of National Semiconductor’s MICROWIRE peripherals ( converters display driv- 2 ers E PROMs etc ) and with other microcontrollers which ...
Page 29
MICROWIRE PLUS (Continued) MICROWIRE PLUS OPERATION Setting the BUSY bit in the PSW register causes the MI- CROWIRE PLUS to start shifting the data It gets reset when eight data bits have been shifted The user may reset the BUSY ...
Page 30
Memory Map All RAM ports and registers (except A and PC) are mapped into data memory address space Address Contents S ADD REG 0000 to 006F On-Chip RAM bytes (112 bytes) 0070 to 007F Unused RAM Address Space (Reads As ...
Page 31
Addressing Modes There are ten addressing modes six for operand address- ing and four for transfer of control OPERAND ADDRESSING MODES Register Indirect This is the ‘‘normal’’ addressing mode The operand is the data memory addressed by the B pointer ...
Page 32
Instruction Set (Continued) INSTRUCTION SET 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 ...
Page 33
Instruction Execution Time Most instructions are single byte (with immediate addressing mode instructions taking two bytes) Most single byte instructions take one cycle time to execute Skipped instructions require x number of cycles to be skipped where x equals the ...
Page 34
http www national com 34 ...
Page 35
Development Support SUMMARY iceMASTER TM IM-COP8 400 Full feature in-circuit em- ulation for all COP8 products A full set of COP8 Basic and Feature Family device and package specific probes are available COP8 Debug Module Moderate cost in-circuit emulation and ...
Page 36
Development Support (Continued) iceMASTER DEBUG MODULE (DM) The iceMASTER Debug Module based combination in-circuit emulation tool and COP8 based OTP EPROM pro- gramming tool developed and marketed by MetaLink Corpo- ration to support the whole COP8 family ...
Page 37
EVALUATION PROGRAMMING UNIT (EPU) The iceMASTER EPU-COP888GG based in-circuit simulation tool to support the feature family COP8 products See Figure 21 for configuration The simulation capability is a very low cost means of evalu- ating the ...
Page 38
... Development Support (Continued) COP8 ASSEMBLER LINKER SOFTWARE DEVELOPMENT TOOL KIT National Semiconductor offers a relocateable COP8 macro cross assembler linker librarian and utility software devel- opment tool kit Features are summarized as follows Basic and Feature Family instruction set by ‘‘device’’ ...
Page 39
... DIAL-A-HELPER via a WorldWide Web Browser COP888HG ftp nscmicro nsc com COP888GG COP888HG National Semiconductor on the WorldWide Web See us on the WorldWide Web at http CUSTOMER RESPONSE CENTER Complete product information and technical support is avail- able from National’s customer response centers CANADA U S ...
Page 40
http www national com 40 ...
Page 41
Physical Dimensions inches (millimeters) unless otherwise noted Molded Dual-In-Line Package (N) Order Number COP87L88GGN-XE NS Package Number N40A 41 http www national com ...
Page 42
... Floor Straight Block a Ocean Centre 5 Canton Rd 49 (0) 180-530 85 85 Tsimshatsui Kowloon a Tel 49 (0) 180-532 78 32 Hong Kong a 49 (0) 180-532 93 58 Tel (852) 2737-1600 a Tel 49 (0) 180-534 16 80 Fax (852) 2736-9960 a National Semiconductor Japan Ltd Tel 81-043-299-2308 Fax 81-043-299-2408 ...