參數(shù)資料
型號: COP688CL
廠商: National Semiconductor Corporation
元件分類: 8位微控制器
英文描述: 8-Bit Microcontroller(8位微控制器)
中文描述: 8位微控制器(8位微控制器)
文件頁數(shù): 24/41頁
文件大小: 565K
代理商: COP688CL
Interrupts
(Continued)
SOFTWARE TRAP
The Software Trap (ST) is a special kind of non-maskable
interrupt which occurs when the INTR instruction (used to
acknowledge interrupts) is fetched from ROM and placed
inside the instruction register. This may happen when the PC
is pointing beyond the available ROM address space or
when the stack is over-popped.
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 proce-
dures) before restarting.
The occurrence of an ST is latched into the ST pending bit.
The GIE bit is not affected and the ST pending bit
(not
accessible by the user)
is used to inhibit other interrupts
and to direct the program to the ST service routine with the
VIS instruction. The RPND instruction is used to clear the
software interrupt pending bit. This pending bit is also
cleared on reset.
The ST has the highest rank among all interrupts.
Nothing (except another ST) can interrupt an ST being
serviced.
WATCHDOG
The device contains a WATCHDOG and clock monitor. The
WATCHDOG is designed to detect the user program getting
stuck in infinite loops resulting in loss of program control or
“runaway” programs. The Clock Monitor is used to detect the
absence of a clock or a very slow clock below a specified
rate on the CKI pin.
The WATCHDOG consists of two independent logic blocks:
WD UPPER and WD LOWER. WD UPPER establishes the
upper limit on the service window and WD LOWER defines
the lower limit of the service window.
Servicing the WATCHDOG consists of writing a specific
value to a WATCHDOG Service Register named WDSVR
which is memory mapped in the RAM. This value is com-
posed of three fields, consisting of a 2-bit Window Select, a
5-bit Key Data field, and the 1-bit Clock Monitor Select field.
Table 3 shows the WDSVR register.
The lower limit of the service window is fixed at 2048 instruc-
tion cycles. Bits 7 and 6 of the WDSVR register allow the
user to pick an upper limit of the service window.
Table 4 shows the four possible combinations of lower and
upper limits for the WATCHDOG service window. This flex-
ibility in choosing the WATCHDOG service window prevents
any undue burden on the user software.
Bits 5, 4, 3, 2 and 1 of the WDSVR register represent the
5-bit Key Data field. The key data is fixed at 01100. Bit 0 of
the WDSVR Register is the Clock Monitor Select bit.
TABLE 3. WATCHDOG Service Register (WDSVR)
Window
Select
X
7
Key Data
Clock
Monitor
Y
0
X
6
0
5
1
4
1
3
0
2
0
1
TABLE 4. WATCHDOG Service Window Select
WDSVR
Bit 7
0
0
1
1
WDSVR
Bit 6
0
1
0
1
Service Window
(Lower-Upper Limits)
2k-8k t
c
Cycles
2k-16k t
c
Cycles
2k-32k t
c
Cycles
2k-64k t
c
Cycles
Clock Monitor
The Clock Monitor aboard the device can be selected or
deselected under program control. The Clock Monitor is
guaranteed not to reject the clock if the instruction cycle
clock (1/t
) is greater or equal to 10 kHz. This equates to a
clock input rate on CKI of greater or equal to 100 kHz.
WATCHDOG Operation
The WATCHDOG and Clock Monitor are disabled during
reset. The device comes out of reset with the WATCHDOG
armed, the WATCHDOG Window Select bits (bits 6, 7 of the
WDSVR Register) set, and the Clock Monitor bit (bit 0 of the
DS009766-18
FIGURE 12. Interrupt Block Diagram
C
www.national.com
24
相關PDF資料
PDF描述
COP888CL 8-Bit Microcontroller(8位微控制器)
COP988CL 8-Bit Microcontroller(8位微控制器)
COP684CL 8-Bit Microcontroller(8位微控制器)
COP884CL 8-Bit Microcontroller(8位微控制器)
COP984CL 8-Bit Microcontroller(8位微控制器)
相關代理商/技術參數(shù)
參數(shù)描述
COP688CL-XXX/N 制造商:NSC 制造商全稱:National Semiconductor 功能描述:General Description
COP688CL-XXX/V 制造商:NSC 制造商全稱:National Semiconductor 功能描述:General Description
COP688CS 制造商:NSC 制造商全稱:National Semiconductor 功能描述:8-Bit CMOS ROM Based Microcontrollers with 4k to 24k Memory, Comparators and USART
COP688CS-XXX/V 制造商:未知廠家 制造商全稱:未知廠家 功能描述:MICROCONTROLLER|8-BIT|COP800 CPU|CMOS|LDCC|44PIN|PLASTIC
COP688EB 制造商:NSC 制造商全稱:National Semiconductor 功能描述:8-Bit CMOS ROM Based Microcontrollers with 8k Memory, CAN Interface, 8-Bit A/D, and USART