參數(shù)資料
型號: COP800
英文描述: COP800 Based Automated Security/Monitoring System(137.88 k)
中文描述: 基于自動安全/監(jiān)測系統(tǒng)(137.88畝COP800)
文件頁數(shù): 6/8頁
文件大?。?/td> 137K
代理商: COP800
TLDD10607 – 5
FIGURE 5 Multi-Input WakeupInterrupt Service Routines
Initialization Routine
The Initialization Routine loads the Data Memory locations
being used in the program with default values and initializes
the various control and configuration registers It also brings
up the display on the Terminal Unit and the LED Display
Unit
Time Keeping Routine
The Time Keeping Routine is the most important routine
and is executed irrespective of the other modules being ex-
ecuted The program uses the IDLE Timer T0 for this pur-
pose The IDLE Timer is a 16-bit timer and runs continuous-
ly at a fixed rate of the instruction cycle clock The IDLE
Timer counter is not memory mapped and consequently the
user cannot read or write to it The toggling of the twelfth bit
of the IDLE counter can be programmed to generate an
interrupt This interrupt is generated every 4 ms at the maxi-
mum instruction cycle clock rate of 1 MHz The software
uses this interrupt to update counters in Data Memory for
time keeping The Time Keeping routine then sets a flag to
update the display which is then used by the main program
LED Display Routine
The COP888CG uses the MICROWIREPLUS to interface
with NSM4000 LED Display with Driver The time and date
information is displayed on the 4-digit LED display The user
is provided with a toggle switch connected to MIWUInter-
rupt feature of the COP888CG to toggle the display be-
tween Hours-Minutes and Seconds-180th of Seconds The
toggle switch is connected to L port pin 5 Upon receipt of
the MIWUInterrupt of L port pin 5 this routine toggles the
display This routine upon receipt of the date display request
through the Keypad Unit responds by switching the LED
Display to show the date The toggle switch could be used
to change the display back to time However the display
changes to time after a minute by default
Keypad Scan Routine
This module scans the4x4 matrix keyboard connected to
Port D (D1 – D4) as rows and to Port I (I0 – I3) as columns
Thus each key in the matrix is associated with one Port D
line and one Port I line Each row in the matrix is addressed
in sequence and the key closure is sensed by testing the
Port I lines The moment one key closure is detected the
program jumps to load the debounce counter The keypad
scan is stopped at that particular row and the program re-
turns to its main flow The keypad is again scanned and
when the debounce counter is decremented When the de-
bounce counter is zero the key pressed is accepted and
decoded The versatility of the COP888 family of instruc-
tions set allows decoding the key pressed with one instruc-
tion The Port D (lines D1 – D4) and Port I (lines I0 – I3) in
conjunction form an eight bit number that is unique to each
key The JID (Jump Indirect) instruction uses the contents of
the accumulator to point to the indirect vector table of pro-
gram address The accumulator contents are transferred to
the program counter (lower 8 bits) The data accessed from
the program memory location addressed by program coun-
ter is transferred to the program counter (lower 8 bits) The
JID instruction is a single-byte three cycle instruction and
provides an efficient way to decode and branch to service
the appropriate routine based upon the key pressed
The Keypad is used to set the time and data information
after power up and can also be used to program the phone
number to be dialed by the Auto-Dialing Unit
Non-Volatile Data Storage Routine
The COP888CG interfaces with NM93C06A in the ASM
System to store the real time data of the events monitored
and also the telephone number to be dialed by the Auto-
Dialer Unit This routine is executed whenever the Receiver
Unit detects a signal and the ASM System is not disarmed
within 10 seconds of detection of the signal or when the
6
相關(guān)PDF資料
PDF描述
COP820C_840C
COP820CJMHD-2 8-BIT MICROCONTROLLER
COP822CJMHD-2 8-BIT MICROCONTROLLER
COP842CMHD-1 8-BIT MICROCONTROLLER
COP842CMHD-2 8-BIT MICROCONTROLLER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
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