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

P87LPC764BN 参数 Datasheet PDF下载

P87LPC764BN图片预览
型号: P87LPC764BN
PDF下载: 下载PDF文件 查看货源
内容描述: 低功耗,低价格,低引脚数20引脚微控制器与4K字节的OTP [Low power, low price, low pin count 20 pin microcontroller with 4 kbyte OTP]
分类和应用: 微控制器和处理器外围集成电路光电二极管可编程只读存储器时钟
文件页数/大小: 56 页 / 306 K
品牌: NXP [ NXP ]
 浏览型号P87LPC764BN的Datasheet PDF文件第7页浏览型号P87LPC764BN的Datasheet PDF文件第8页浏览型号P87LPC764BN的Datasheet PDF文件第9页浏览型号P87LPC764BN的Datasheet PDF文件第10页浏览型号P87LPC764BN的Datasheet PDF文件第12页浏览型号P87LPC764BN的Datasheet PDF文件第13页浏览型号P87LPC764BN的Datasheet PDF文件第14页浏览型号P87LPC764BN的Datasheet PDF文件第15页  
Philips Semiconductors  
Preliminary data  
Low power, low price, low pin count (20 pin)  
microcontroller with 4 kbyte OTP  
87LPC764  
Port 0. Setting the corresponding bit in PT0AD disables that pin’s  
digital input. Port bits that have their digital inputs disabled will be  
read as 0 by any instruction that accesses the port.  
FUNCTIONAL DESCRIPTION  
Details of 87LPC764 functions will be described in the following  
sections.  
Analog Comparators  
Enhanced CPU  
Two analog comparators are provided on the 87LPC764. Input and  
output options allow use of the comparators in a number of different  
configurations. Comparator operation is such that the output is a  
logical one (which may be read in a register and/or routed to a pin)  
when the positive input (one of two selectable pins) is greater than  
the negative input (selectable from a pin or an internal reference  
voltage). Otherwise the output is a zero. Each comparator may be  
configured to cause an interrupt when the output value changes.  
The 87LPC764 uses an enhanced 80C51 CPU which runs at twice the  
speed of standard 80C51 devices. This means that the performance of  
the 87LPC764 running at 5 MHz is exactly the same as that of a  
standard 80C51 running at 10 MHz. A machine cycle consists of 6  
oscillator cycles, and most instructions execute in 6 or 12 clocks. A  
user configurable option allows restoring standard 80C51 execution  
timing. In that case, a machine cycle becomes 12 oscillator cycles.  
In the following sections, the term “CPU clock” is used to refer to the  
clock that controls internal instruction execution. This may  
sometimes be different from the externally applied clock, as in the  
case where the part is configured for standard 80C51 timing by  
means of the CLKR configuration bit or in the case where the clock  
is divided down via the setting of the DIVM register. These features  
are described in the Oscillator section.  
Comparator Configuration  
Each comparator has a control register, CMP1 for comparator 1 and  
CMP2 for comparator 2. The control registers are identical and are  
shown in Figure 2.  
The overall connections to both comparators are shown in Figure 3.  
There are eight possible configurations for each comparator, as  
determined by the control bits in the corresponding CMPn register:  
CPn, CNn, and OEn. These configurations are shown in Figure 4.  
Analog Functions  
The 87LPC764 incorporates two Analog Comparators. In order to  
give the best analog function performance and to minimize power  
consumption, pins that are actually being used for analog functions  
must have the digital outputs and the digital inputs disabled.  
The comparators function down to a V of 3.0V.  
DD  
When each comparator is first enabled, the comparator output and  
interrupt flag are not guaranteed to be stable for 10 microseconds.  
The corresponding comparator interrupt should not be enabled  
during that time, and the comparator interrupt flag must be cleared  
before the interrupt is enabled in order to prevent an immediate  
interrupt service.  
Digital outputs are disabled by putting the port output into the Input  
Only (high impedance) mode as described in the I/O Ports section  
(see page 17).  
Digital inputs on port 0 may be disabled through the use of the  
PT0AD register. Each bit in this register corresponds to one pin of  
CMPn  
Address: ACh for CMP1, ADh for CMP2  
Not Bit Addressable  
Reset Value: 00h  
7
6
5
4
3
2
1
0
CEn  
CPn  
CNn  
OEn  
COn  
CMFn  
BIT  
SYMBOL  
FUNCTION  
Reserved for future use. Should not be set to 1 by user programs.  
CMPn.7, 6  
CMPn.5  
CEn  
Comparator enable. When set by software, the corresponding comparator function is enabled.  
Comparator output is stable 10 microseconds after CEn is first set.  
CMPn.4  
CMPn.3  
CPn  
CNn  
Comparator positive input select. When 0, CINnA is selected as the positive comparator input. When  
1, CINnB is selected as the positive comparator input.  
Comparator negative input select. When 0, the comparator reference pin CMPREF is selected as  
the negative comparator input. When 1, the internal comparator reference V is selected as the  
ref  
negative comparator input.  
CMPn.2  
CMPn.1  
CMPn.0  
OEn  
COn  
Output enable. When 1, the comparator output is connected to the CMPn pin if the comparator is  
enabled (CEn = 1). This output is asynchronous to the CPU clock.  
Comparator output, synchronized to the CPU clock to allow reading by software. Cleared when the  
comparator is disabled (CEn = 0).  
CMFn  
Comparator interrupt flag. This bit is set by hardware whenever the comparator output COn changes  
state. This bit will cause a hardware interrupt if enabled and of sufficient priority. Cleared by  
software and when the comparator is disabled (CEn = 0).  
SU01152  
Figure 2. Comparator Control Registers (CMP1 and CMP2)  
8
2001 Oct 26  
 复制成功!