AT89LP216-20PI ATMEL [ATMEL Corporation], AT89LP216-20PI Datasheet - Page 36
AT89LP216-20PI
Manufacturer Part Number
AT89LP216-20PI
Description
Microcontroller with 2K Bytes Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
1.AT89LP216-20PI.pdf
(90 pages)
- Current page: 36 of 90
- Download datasheet (2Mb)
15. External Interrupts
16. General-purpose Interrupts
.
Table 16-1.
36
GPMOD = 9AH
Not Bit Addressable
Bit
AT89LP216 [Preliminary]
GPMOD.x
GPMOD7
GPMOD
7
– General-purpose Interrupt Mode Register
When the AT89LP216 is configured to use the internal RC Oscillator, XTAL1 and XTAL2 may be
used as the INT0 and INT1 external interrupt sources. The external interrupts can be pro-
grammed to be level-activated or transition-activated by setting or clearing bit IT1 or IT0 in
Register TCON. If ITx = 0, external interrupt x is triggered by a detected low at the INTx pin. If
ITx = 1, external interrupt x is edge-triggered. In this mode if successive samples of the INTx pin
show a high in one cycle and a low in the next cycle, interrupt request flag IEx in TCON is set.
Flag bit IEx then requests the interrupt. Since the external interrupt pins are sampled once each
clock cycle, an input high or low should hold for at least 2 oscillator periods to ensure sampling.
If the external interrupt is transition-activated, the external source has to hold the request pin
high for at least two clock cycles, and then hold it low for at least two clock cycles to ensure that
the transition is seen so that interrupt request flag IEx will be set. IEx will be automatically
cleared by the CPU when the service routine is called if generated in edge-triggered mode. If the
external interrupt is level-activated, the external source has to hold the request active until the
requested interrupt is actually generated. Then the external source must deactivate the request
before the interrupt service routine is completed, or else another interrupt will be generated.
The General-purpose Interrupt (GPI) function provides 8 configurable external interrupts on
Port 1. Each port pin can detect high/low levels or positive/negative edges. The GPIEN register
select which bits of Port 1 are enabled to generate an interrupt. The GPMOD and GPLS regis-
ters determine the mode for each individual pin. GPMOD selects between level-sensitive and
edge-triggered mode. GPLS selects between high/low in level mode and positive/negative in
edge mode. The pins of Port 1 are sampled every clock cycle. In level-sensitive mode, a valid
level must appear in two successive samples before generating the interrupt. In edge-triggered
mode, a transition will be detected if the value changes from one sample to the next. When an
interrupt condition on a pin is detected, and that pin is enabled, the appropriate flag in the GPIF
register is set. The flags in GPIF must be cleared by software.
0 = level-sensitive interrupt for P1.x
1 = edge-triggered interrupt for P1.x
GPMOD6
6
GPMOD5
5
GPMOD4
4
GPMOD3
3
GPMOD2
2
Reset Value = 0000 0000B
GPMOD1
1
GPMOD0
3621A–MICRO–6/06
0
Related parts for AT89LP216-20PI
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
Part Number:
Description:
At89lp216 8-bit Microcontroller With 2k Bytes Flash
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Atmel CryptoMemory
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
Atmel CryptoMemory
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
Atmel CryptoMemory, 16Kbit
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
8-bit Atmel Microcontrollers
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
8-bit Atmel Microcontroller with 64K/128K/256K Bytes In-System Programmable Flash
Manufacturer:
ATMEL [ATMEL Corporation]
Datasheet:
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet: