With Avrs, We Read a Pin Using It’s Pinx Register and We Write to a Pin Using It’s Portx Register. We Need to Write to the Button Register to Enable the Pull-Ups. for the Led We Only Need to Use the Port Register to Write To, However, We Also Need the Data Direction Register ( Ddr) as the I/O Pins Are Setup as Inputs by Default.
What Do You Need to Know About Avr Microcontroller?
•
•
3 min read
★ Key Takeaways
With Avrs, We Read a Pin Using It’s Pinx Register and We Write to a Pin Using It’s Portx Register. We Need to Write to the Button Register to Enable the Pull-Ups. for the Led We Only Need to Use the Port Register to Write To, However, We Also Need the Data Direction Register ( Ddr) as the I/O Pins Are Setup as Inputs by Default.
Direct Answer • Key Takeaway