P87LPC761BN NXP Semiconductors, P87LPC761BN Datasheet - Page 14

no-image

P87LPC761BN

Manufacturer Part Number
P87LPC761BN
Description
IC, MCU 8BIT 80C51 2K OTP, DIP16
Manufacturer
NXP Semiconductors
Datasheet

Specifications of P87LPC761BN

Controller Family/series
(8051) 8052
Core Size
8bit
No. Of I/o's
14
Program Memory Size
2KB
Ram Memory Size
128Byte
Cpu Speed
20MHz
Oscillator Type
External, Internal
No. Of Timers
2
Digital
RoHS Compliant
Package
16PDIP
Device Core
80C51
Family Name
87LP
Maximum Speed
20 MHz
Ram Size
128 Byte
Operating Supply Voltage
5 V
Data Bus Width
8 Bit
Program Memory Type
EPROM
Number Of Programmable I/os
14
Interface Type
I2C/UART
Operating Temperature
0 to 70 °C
Number Of Timers
2

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P87LPC761BN
Manufacturer:
TI
Quantity:
6
Philips Semiconductors
Internal Reference Voltage
An internal reference voltage generator may supply a default
reference when a single comparator input pin is used. The value of
the internal reference voltage, referred to as V
Comparator Interrupt
Each comparator has an interrupt flag CMFn contained in its
configuration register. This flag is set whenever the comparator
output changes state. The flag may be polled by software or may be
used to generate an interrupt. The interrupt will be generated when
the corresponding enable bit ECn in the IEN1 register is set and the
interrupt system is enabled via the EA bit in the IEN0 register.
Comparators and Power Reduction Modes
Either or both comparators may remain enabled when Power Down
or Idle mode is activated. The comparators will continue to function
in the power reduction mode. If a comparator interrupt is enabled, a
change of the comparator output state will generate an interrupt and
2002 Mar 07
Low power, low price, low pin count (16 pin)
microcontroller with 2 kbyte OTP
CmpInit:
mov
anl
orl
mov
call
anl
setb
setb
ret
PT0AD,#30h
P0M2,#0cfh
P0M1,#30h
CMP1,#24h
delay10us
CMP1,#0feh
EC1
EA
ref
, is 1.23 V 10%.
; Disable digital inputs on pins that are used
;
; Disable digital outputs on pins that are used
;
; Turn on comparator 1 and set up for:
;
;
;
; The comparator has to start up for at
;
; Clear comparator 1 interrupt flag.
; Enable the comparator 1 interrupt. The
;
; Enable the interrupt system (if needed).
; Return to caller.
for analog functions: CIN1A, CMPREF.
for analog functions: CIN1A, CMPREF.
– Positive input on CIN1A.
– Negative input from CMPREF pin.
– Output to CMP1 pin enabled.
least 10 microseconds before use.
priority is left at the current value.
Figure 5.
11
wake up the processor. If the comparator output to a pin is enabled,
the pin should be configured in the push-pull mode in order to obtain
fast switching times while in power down mode. The reason is that
with the oscillator stopped, the temporary strong pull-up that
normally occurs during switching on a quasi-bidirectional port pin
does not take place.
Comparators consume power in Power Down and Idle modes, as
well as in the normal operating mode. This fact should be taken into
account when system power consumption is an issue.
Comparator Configuration Example
The code shown in Figure 5 is an example of initializing one
comparator. Comparator 1 is configured to use the CIN1A and
CMPREF inputs, outputs the comparator result to the CMP1 pin,
and generates an interrupt when the comparator output changes.
The interrupt routine used for the comparator must clear the
interrupt flag (CMF1 in this case) before returning.
SU01189
P87LPC761
Preliminary data

Related parts for P87LPC761BN