Skip to content
0:00 / 0:00

#arduino#avr#registermanipulation

Faster Digital Writes with Arduino Tutorial! - Direct Port & Register Manipulation

Kevin Darrah

106K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Kevin Darrah

Intermediate. Assumes working knowledge.

48K views10 years ago1 recommendation

Systems programmingHardwareEmbedded systemsPerformance and optimization

Kevin Darrah demonstrates how to speed up Arduino digital writes using direct port and register manipulation instead of digitalWrite.

In this video I'll show you how flipping bits in ports and registers work. I was doing a lot of this in the Low Power Series videos. But remember that I did the same kind of thing in my LED Cube project, but that was to speed up the turn ON and OFF of digital pins. I never got into how much faster it was, so in this video we'll measure it! Here's the link to the cheater board I designed - I've been sending these out as a thank-you to the Patrons of this channel: kevindarrah.com/wiki/index.php?title=Cheater_Board Check out my Tindie store (trigBoard is available) tindie.com/stores/kdcircuits/ Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen! patreon.com/kdarrah Twitter: twitter.com/KDcircuits For inquiries or design services: kdcircuits.com

Why it's here

1 person recommends this

What people say. Recommended as a practical demonstration of the performance difference between Arduino's digitalWrite and direct register manipulation.

u/BEN_FINIOin r/programming • Recommends

On “Arduino libraries vs. directly writing to registers (debate/details in comments)”

…ed programming think. Thanks! Edit: update from a cross-post in r/ECE and thanks to u/MikeLifeCrisis for posting this - cool video from a guy who built an 8x8x8 LED cube and looks at the differences between digitalWrite and direct register manipulation on an oscilloscope - a few microseconds difference, but in his application that time mattered: [video…