Improve your Arduino programming skills - Using the ATmega328P registers.
Joop Brokking Joop Brokking
78.4K subscribers
206,751 views
0

 Published On Aug 15, 2016

Other “Improve your Arduino programming skills” videos:
   • Improve your Arduino programming skills  

In this video I explain what a register is and how you can use it to further optimize your Arduino code.

When using Serial.begin() for example the registers are set automatically and there is a lot of code generated to get the serial port to work. A lot of code that you probably don’t need for every project. Watch what happens if you set the registers manually and thereby exclude the unwanted code.

In a few simple steps a 2632 bytes Arduino example program is reduced in size to 682 bytes. By using Atmel Studio the same functionality can be achieved with only 194 bytes.

Download the datasheet of the ATmega328P here:
http://www.brokking.net/YMFC-3D/YMFC-...

Video about uploading the program via the bootloader:
   • Atmel Studio 7 - Programming the Ardu...  

show more

Share/Embed