Go Down

Topic: an orphan Reference page? (Read 1 time) previous topic - next topic

s3jn

I accidentally came across the page [http://www.arduino.cc/en/Reference/PortManipulation] and I don't see how it links-back to [http://arduino.cc/en/Reference/HomePage].

Has anyone else found command descriptions not linked on the main Reference page?  It can save a LOT of programming for those not intimately familiar with the command names...

CrossRoads

The Bitwise Operators also discuss port manipulation.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

retrolefty

Quote
It can save a LOT of programming for those not intimately familiar with the command names...

Direct port manipulation can be very useful and can certainly speed up a sketch compared to digitalRead() and digitalWrite() commands. However keep in mind the main trade-off involved, loss of portability of the code between the various AVR processor chips that the Arduino supports. That is the main reason arduino came up with the digitalRead() function, to abstract the pin number assignments. Arduino pin 13 uses a different port name on a 328 chip comparied to a 1280 or 2560 chip.

Lefty


lesto

is also useful with multiple interrupt on non standard pin ( for standard pin i mean provided by attach interrupt )
sei nuovo? non sai da dove partire? leggi qui: http://playground.arduino.cc/Italiano/Newbie

Go Up