Pages: [1]   Go Down
Author Topic: learning interrupt  (Read 381 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Shannon Member
****
Karma: 117
Posts: 10106
:(){:|:&};: TOX id: fcb8e918bef08581e23f6ddf9d4dba77697c25b217bf372736ed959a95fde36df5b8c5b90fbb
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi,
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?
Logged

my Arduino code: https://github.com/lestofante/arduinoSketch
sei nuovo? non sai da dove partire? leggi qui: http://playground.arduino.cc/Italiano/Newbie

Pages: [1]   Go Up
Jump to: