Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] How to handle PCINT8-11 on ATMEGA644P

2010-04-10 by Антощенков Роман Викторович

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.ru

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.