Rainbow-electronics ATtiny15L Manual de usuario Pagina 20

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 83
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 19
20
ATtiny15L
1187EAVR06/02
The corresponding interrupt of External Interrupt Request 0 is executed from Program
memory address $001. See also External Interrupts.
Bit5–PCIE:PinChangeInterruptEnable
When the PCIE bit is set (one) and the I-bit in the Status Register (SREG) is set (one),
the interrupt on pin change is enabled. Any change on any input or I/O pin will cause an
interrupt. The corresponding interrupt of Pin Change Interrupt Request is executed from
Program memory address $002. See also Pin Change Interrupt.
Bits 4..0 – Res: Reserved Bits
These bits are reserved bits in the ATtiny15L and always read as zero.
The General Interrupt Flag
Register – GIFR
Bit 7 – Res: Reserved Bit
This bit is a reserved bit in the ATtiny15L and always reads as zero.
Bit 6 – INTF0: External Interrupt Flag0
When an edge or logic change on the INT0 pin triggers an interrupt request, INTF0
becomes set (one). If the I-bit in SREG and the INT0 bit in GIMSK are set (one), the
MCU will jump to the Interrupt Vector at address $001. The flag is cleared when the
interrupt routine is executed. Alternatively, the flag can be cleared by writing a logical 1
to it. The flag is always cleared when INT0 is configured as level interrupt.
Bit 5 – PCIF: Pin Change Interrupt Flag
When an event on any input or I/O 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 Interrupt Vector at address $002. The flag is cleared when the interrupt routine is
executed. Alternatively, the flag can be cleared by writing a logical 1to it.
Bits 4..0 – Res: Reserved Bits
These bits are reserved bits in the ATtiny15L and always read as zero.
The Timer/Counter Interrupt
Mask Register TIMSK
Bit 7 – Res: Reserved Bit
This bit is a reserved bit in the ATtiny15L and always reads as zero.
Bit 6 – OCIE1A: Timer/Counter1 Output Compare Interrupt Enable
When the OCIE1A bit is set (one) and the I-bit in the Status Register is set (one), the
Timer/Counter1 Compare Match, interrupt is enabled. The corresponding interrupt (at
Bit 76543210
$3A INTF0PCIF––––GIFR
Read/Write R R/W R/W RRRRR
InitialValue00000000
Bit 7 6 5 4 3 2 1 0
$39 OCIE1A TOIE1 TOIE0 TIMSK
Read/Write R R/W R R R R/W R/W R
Initial Value 0 0 0 0 0 0 0 0
Vista de pagina 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 82 83

Comentarios a estos manuales

Sin comentarios