Go Down

Topic: learning interrupt (Read 678 times) previous topic - next topic


I'm trying to learn the Interrupt.
I've almost rewritten http://www.arduino.cc/playground/Main/PcInt without using pins_arduino.h libraries, just Regiter manipulation and ISR() routine.
But one function seems hard to replace: curr = *portInputRegister(port+2);
Seems what this function return the pins that has changed. I can simulate its work simply looking at PORTD ecc and saving the old state... but PORTX or PINX is always  0...
who can help me?
Guida per principianti http://playground.arduino.cc/Italiano/newbie
Unoffical Telegram group https://telegram.me/joinchat/ALRu8ACkdTdXyz-2P7v13A

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131