Hello :)
Problem solved
> ISR(PCINT1_vect)
> {
> unsigned char x = PORTB;
Should be
unsigned char x = PINB;
> {
> ...
> }
> if ((x & Bit(1)) == 1)
> {
> //it handle high level
> ...
> }
> if ((x & Bit(2)) == 1)
> {
> //it handle high level
> ...
> }
> if ((x & Bit(3)) == 0)
> {
> //it handle low level
> ...
> }
> }
--
Best regards,
Roman Antoshchenkov
mailto:djantoxa@rambler.ruMessage
Re: [AVR-Chat] How to handle PCINT8-11 on ATMEGA644P
2010-04-10 by Антощенков Роман Викторович