参数资料
型号: COP800
英文描述: COP800 Based Automated Security/Monitoring System(137.88 k)
中文描述: 基于自动安全/监测系统(137.88亩COP800)
文件页数: 4/8页
文件大小: 137K
代理商: COP800
tral Controlling Unit does not update the display when it is
servicing the Receiver Unit The APS System has a toggle
switch that enables toggling the display between Hours-Min-
utes to Seconds-180th of Seconds The Keypad Unit is
used to toggle the display between time and date
Central Controlling Unit
This is the main unit in the application and is responsible for
the efficient operation of the various units in the ASM Sys-
tem The unit consists of COP888CG and the application
software The next section describes the application soft-
ware in detail The COP888CG interfaces with the various
units described in the previous sections
(Figure 2 )
The application is a real time system and is totally interrupt
driven with some of the tasks being executed in the back-
ground The various units that interface with the COP888CG
can be considered as tasks and the Central Controlling Unit
executes these tasks based on their priority and the se-
quence of occurrence The real time clock counter is given
the highest priority The Receiver Unit uses the Multi-Input
WakeupInterrupt feature of the COP888CG to wakeup the
microcontroller and service the Alarm routine The Display
Unit has a display toggle switch which also uses the Multi-
Input WakeupInterrupt to toggle the display between
Hours-Minutes and Seconds-180th of Seconds
The COP888CG communicates with the Terminal Unit
through the on-board full duplex double buffered UART
The terminal keyboard can be used to interrupt the
COP888CG to program the phone number to dial in case of
an emergency The COP888CG uses the MICROWIRE
PLUSTM serial communication protocol to display the time
and date information on the LED display and also to store
real time information of events in the non-volatile data stor-
age unit Thus the MICROWIREPLUS protocol is time
shared between the Display Unit and Data Storage Unit
The Keypad Unit isa4x4 array of keys and the COP888CG
periodically polls the keypad The inputoutput ports of the
COP888CG is used to read the key pressed and is decoded
by the software The Auto-Dialer Unit is driven by the input
output lines and the interface between COP888CG This
unit is activated by the COP888CG 10 seconds after the
Receiver Unit interrupts the microcontroller This delay is
used to disarm the Alarm routine
SOFTWARE DESCRIPTION
The instruction set of the COP800 family of microcontrollers
provide easy optimization of program size and throughput
efficiency Most of the instructions of the COP800 family are
single-byte single-cycle instructions (approximately 60%)
The COP800 family of microcontrollers has three memory
mapped registers (B X and SP) The B and X registers can
be used as data store memory pointers for register indirect
addressing with optional auto post incrementing or decre-
menting of the associated pointer This allows greater effi-
ciency in cycle time and program code The COP800 family
allows true bit-manipulation ie
the ability to set reset or
test any individual bit in data memory including the memory
mapped IO ports
The architecture of COP800 family is based on a modified
Harvard type architecture where the Control Store Program
(in ROM) is separated from the Data Store Memory (in
RAM) Both types of memory have their own separate ad-
dressing space and separate address busses This architec-
ture allows the overlap of ROM and RAM memory accesses
which is not possible with single-address bus Von Neu-
mann-style architecture The modified Harvard architecture
allows access to ROM data tables which is not possible with
the classical Harvard architecture
The COP888 sub-family of microcontrollers support a total
of sixteen vectored interrupts of which fourteen are maska-
ble interrupts and two high-priority non-maskable interrupts
A 2-byte interrupt vector is reserved for each of these six-
teen interrupts and they are stored in a user-defined 32-byte
program memory (ROM) table Please refer to the COP888
users manual or the Microcontrollers Databook for more de-
tailed information on interrupts
The MIWU feature which utilizes the Port L of the COP888
sub-family can be used to wakeup the microcontroller from
the two power saving modes ie
HALT or IDLE modes
Alternately the MIWUInterrupt allows the user to generate
eight additional edge selectable external interrupts Three
8-bit memory mapped registers (WKEDG
WKEN and
WKPND) are used to implement the MIWUInterrupt The
three control registers each contain an associated pin for
each L port pin The WKEN register is used to select which
particular Port L inputs will be used The user can select
whether the trigger condition on a selected L port pin is to
be a positive edge (low to high transition) or a negative edge
(high to low transition) This selection is made through the
WKEDG register The occurrence of the selected trigger
condition for MIWUInterrupt is latched into the associated
bit of the Wakeup Pending Register (WKPND)
The COP800 family has the ability to detect various illegal
conditions resulting from coding errors transient noise
power supply voltage drops runaway programs etc Read-
ing an undefined ROM location gets zeroes which results in
a non-maskable software interrupt thus signalling an illegal
condition has occurred In addition to this the COP888 sub-
family supports both WATCHDOGTM and Clock Monitor
The WATCHDOGTM is used to monitor the number of in-
struction cycles between WATCHDOGTM services in order
to avoid runaway programs or infinite loops The Clock Mon-
itor is used to detect the absence of a clock or a very slow
clock below a specified rate These features of the COP800
family provide easy implementation of real time applications
where the proper execution of the software plays a crucial
role
The major features of the software written for the ASM Sys-
tem implementation are described on the flow chart
Figure
3 The main program flow is to detect the flags set service
the flags and scan the Keypad The rest of the software is
interrupt driven The program is real time and the interrupts
are serviced as and when they occur Some of the routines
are running in the background all the time such as Time
Keeping Routine and Keypad Scan Routine
Figures 4 and 5
gives the flow of the various interrupt service routines The
following sub-sections briefly describe each module of soft-
ware connected to the units described earlier
4
相关PDF资料
PDF描述
COP820C_840C
COP820CJMHD-2 8-BIT MICROCONTROLLER
COP822CJMHD-2 8-BIT MICROCONTROLLER
COP842CMHD-1 8-BIT MICROCONTROLLER
COP842CMHD-2 8-BIT MICROCONTROLLER
相关代理商/技术参数
参数描述
COP820 制造商:NSC 制造商全称:National Semiconductor 功能描述:8-Bit CMOS ROM Based Microcontrollers with 1k or 2k Memory, Comparator and Brown Out Detector
COP820C 制造商:NSC 制造商全称:National Semiconductor 功能描述:8-Bit CMOS ROM Based Microcontrollers with 1k or 2k
COP820C_840C 制造商:未知厂家 制造商全称:未知厂家 功能描述:
COP820CJ 制造商:NSC 制造商全称:National Semiconductor 功能描述:8-Bit Microcontroller with Multi-Input Wake Up and Brown Out Detector
COP820CJMHD-2 制造商:未知厂家 制造商全称:未知厂家 功能描述:8-Bit Microcontroller