欢迎访问ic37.com |
会员登录 免费注册
发布采购

COP8FG 参数 Datasheet PDF下载

COP8FG图片预览
型号: COP8FG
PDF下载: 下载PDF文件 查看货源
内容描述: 8位CMOS基于ROM和OTP微控制器具有8K到32K的内存,两个比较器和USART [8-Bit CMOS ROM Based and OTP Microcontrollers with 8k to 32k Memory, Two Comparators and USART]
分类和应用: 比较器微控制器
文件页数/大小: 59 页 / 803 K
品牌: NSC [ National Semiconductor ]
 浏览型号COP8FG的Datasheet PDF文件第27页浏览型号COP8FG的Datasheet PDF文件第28页浏览型号COP8FG的Datasheet PDF文件第29页浏览型号COP8FG的Datasheet PDF文件第30页浏览型号COP8FG的Datasheet PDF文件第32页浏览型号COP8FG的Datasheet PDF文件第33页浏览型号COP8FG的Datasheet PDF文件第34页浏览型号COP8FG的Datasheet PDF文件第35页  
A Comparator Select Register (CMPSL) is used to enable  
the comparators, read the outputs of the comparators inter-  
nally, and enable the outputs of the comparators to the pins.  
Two control bits (enable and output enable) and one result  
bit are associated with each comparator. The comparator re-  
sult bits (CMP1RD and CMP2RD) are read only bits which  
will read as zero if the associated comparator is not enabled.  
The Comparator Select Register is cleared with reset, result-  
ing in the comparators being disabled. The comparators  
should also be disabled before entering either the HALT or  
IDLE modes in order to save power. The configuration of the  
CMPSL register is as follows:  
9.0 Comparators  
The device contains two differential comparators, each with  
a pair of inputs (positive and negative) and an output. Ports  
F1–F3 and F4–F6 are used for the comparators. The follow-  
ing is the Port F assignment:  
F6 Comparator2 output  
F5 Comparator2 positive input  
F4 Comparator2 negative input  
F3 Comparator1 output  
F2 Comparator1 positive input  
F1 Comparator1 negative input  
CMPSL REGISTER (ADDRESS X’00B7)  
Reserved  
Bit 7  
CMP20E  
CMP2RD  
CMP2EN  
CMP10E  
CMP1RD  
CMP1EN  
Reserved  
Bit 0  
The CMPSL register contains the following bits:  
10.0 Interrupts  
Reserved These bits are reserved and must be zero  
10.1 INTRODUCTION  
CMP20E Selects pin I6 as comparator 2 output provided  
that CMP2EN is set to enable the comparator  
Each device supports thirteen vectored interrupts. Interrupt  
sources include Timer 0, Timer 1, Timer 2, Timer 3, Port L  
Wakeup, Software Trap, MICROWIRE/PLUS, and External  
Input.  
CMP2RD Comparator 2 result (this is a read only bit, which  
will read as 0 if the comparator is not enabled)  
CMP2EN Enable comparator 2  
All interrupts force a branch to location 00FF Hex in program  
memory. The VIS instruction may be used to vector to the  
appropriate service routine from location 00FF Hex.  
CMP10E Selects pin I3 as comparator 1 output provided  
that CMPIEN is set to enable the comparator  
CMP1RD Comparator 1 result (this is a read only bit, which  
will read as 0 if the comparator is not enabled)  
The Software trap has the highest priority while the default  
VIS has the lowest priority.  
CMP1EN Enable comparator 1  
Each of the 13 maskable inputs has a fixed arbitration rank-  
ing and vector.  
Note that the two unused bits of CMPSL may be used as  
software flags.  
Note: For compatibility with existing code and with existing Mask ROMMed  
devices the bits of the CMPSL register will take precedence over the  
associated Port F configuration and data output bits.  
Figure 26 shows the Interrupt Block Diagram.  
DS101116-28  
FIGURE 26. Interrupt Block Diagram  
31  
www.national.com  
 复制成功!