attiny261a-xu ATMEL Corporation, attiny261a-xu Datasheet - Page 52

no-image

attiny261a-xu

Manufacturer Part Number
attiny261a-xu
Description
8-bit Avr Microcontroller With 2/4/8k Bytes In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
attiny261a-xuR
Manufacturer:
Atmel
Quantity:
5 990
9.3.4
9.3.5
52
ATtiny261A/461A/861A
PCMSK0 – Pin Change Mask Register A
PCMSK1 – Pin Change Mask Register B
When a logic change on any PCINT15 pin triggers an interrupt request, PCIF becomes set
(one). If the I-bit in SREG and the PCIE bit in GIMSK are set (one), the MCU will jump to the cor-
responding Interrupt Vector. The flag is cleared when the interrupt routine is executed.
Alternatively, the flag can be cleared by writing a logical one to it.
• Bits 4:0 – Res: Reserved Bits
These bits are reserved and will always read as zero.
• Bits 7:0 – PCINT7:0: Pin Change Enable Mask 7:0
Each PCINT7:0 bit selects whether pin change interrupt is enabled on the corresponding I/O pin.
If PCINT7:0 is set and the PCIE1 bit in GIMSK is set, pin change interrupt is enabled on the cor-
responding I/O pin. If PCINT7:0 is cleared, pin change interrupt on the corresponding I/O pin is
disabled.
• Bits 7:0 – PCINT15:8: Pin Change Enable Mask 15:8
Each PCINT15:8 bit selects whether pin change interrupt is enabled on the corresponding I/O
pin. If PCINT11:8 is set and the PCIE0 bit in GIMSK is set, pin change interrupt is enabled on
the corresponding I/O pin, and if PCINT15:12 is set and the PCIE1 bit in GIMSK is set, pin
change interrupt is enabled on the corresponding I/O pin. If PCINT15:8 is cleared, pin change
interrupt on the corresponding I/O pin is disabled.
Bit
0x23 (0x43)
Read/Write
Initial Value
Bit
0x22 (0x42)
Read/Write
Initial Value
7
PCINT7
R/W
1
7
PCINT15
R/W
1
6
PCINT6
R/W
1
6
PCINT14
R/W
1
5
PCINT5
R/W
0
5
PCINT13
R/W
1
4
PCINT4
R/w
0
4
PCINT12
R/w
1
3
PCINT3
R/W
1
3
PCINT11
R/W
1
2
R/W
0
2
PCINT10
R/W
1
PCINT2
1
PCINT1
R/W
0
1
PCINT9
R/W
1
0
PCINT0
R/W
0
0
PCINT8
R/W
1
8197B–AVR–01/10
PCMSK0
PCMSK1

Related parts for attiny261a-xu