Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 1
    I know the AVR stuff is easy, but I couldn't tell you how the ARM stuff works; I have an ARM board but I haven't had a chance to look at it. Commented May 12, 2015 at 17:02
  • Thanks @IgnacioVazquez-Abrams (+1) - I only mentioned ARM because that is what the Arduino Due is using, and I am interested in the Due for its beefier computing power. In any event, am I on track or way off in dodo bird land? Any chance I could see a few lines of C code for reading/writing pins (digital or analog)? Thanks again! Commented May 12, 2015 at 17:05
  • 1
    For the AVR-based Arduinos, a good reading: Port Registers. Commented May 12, 2015 at 17:25
  • Thanks @EdgarBonet (+1) - good find! Any ideas what the Arduino Due (ARM) might be using? Thanks again! Commented May 12, 2015 at 18:15
  • 1
    No, DDRD does not come from the Arduino "language", it's defined by avr-libc. Just #include <avr/io.h> and you get all the I/O registers you see in the MCU datasheet. Commented May 12, 2015 at 19:01