# Arduino: faster alternatives to digitalread() and digitalwrite()?

What are the fastest alternatives to calling the Arduino functions digitalread() and digitalwrite()? AVR-specific or chip-specific solutions are acceptable.

-
Reading this and your last question, it seems like you want to do something pretty quickly. I think giving details on what it is and how fast might be useful. –  Oli Glaser Nov 22 '11 at 1:16
@Oli, good idea, thanks. Current project is a tuning system for RC transmitters. It works well, but I would like to make the RC PWM signal decoding efficient so that I can use the same framework for other projects. Here's a writeup on what I have so far: eastbay-rc.blogspot.com/2011/11/… –  Mark Harrison Nov 27 '11 at 2:17

## migrated from stackoverflow.comNov 21 '11 at 23:42

This question came from our site for professional and enthusiast programmers.

Access the digital ports directly!

-

This library is a good alternative: http://code.google.com/p/digitalwritefast/

-