Re: AVR ATMEGA88 PCINT PROBLEM
- From: "Arlet" <usenet+5@xxxxxxxxxx>
- Date: 26 Feb 2007 05:52:10 -0800
On Feb 26, 1:45 pm, "Rohan" <rohans...@xxxxxxxxx> wrote:
Hi,
I am trying to use the PCINT0 interrupt on the Atmega88 chip but an
unable to get it working.
i want it to work for pin number 12, 13 and 14 ie PCINT0, PCINT1 and
PCINT2 respectively.
i am initializing it as
main(){
PCIFR = 0X01;
PCMSK0 = 0X07;
Sei();
}
AND
ISR(PCINT0_vect){
send_byte(1);
}
The ISR is not getting fired using only this code. Am i missing out on
some initialization. Kindly help me out.
Thanks,
Rohan.
You need to set the interrupt enable bit in the PCICR register, not
the PCIFR register.
.
- Follow-Ups:
- Re: AVR ATMEGA88 PCINT PROBLEM
- From: Rohan
- Re: AVR ATMEGA88 PCINT PROBLEM
- References:
- AVR ATMEGA88 PCINT PROBLEM
- From: Rohan
- AVR ATMEGA88 PCINT PROBLEM
- Prev by Date: Re: questions about motorola microcontrollers and MCUs in general
- Next by Date: Re: AVR ATMEGA88 PCINT PROBLEM
- Previous by thread: AVR ATMEGA88 PCINT PROBLEM
- Next by thread: Re: AVR ATMEGA88 PCINT PROBLEM
- Index(es):