Tuesday 5 April 2016

avr - How do I read digital input on ATmega16?



What do I have to do to read a digital input (pushbutton) on ATmega16? Do I have to enable pullup-resistors or can I use a 10 kohm one? What would some simple code be be? Just a simple 'Turn the LED on when it's pressed thing'.


Is there a beginner's tutorial? I have tried googling and AVR Freaks, but everything just evolves into a fight there and I don't get my answer. I really haven't found any tutorials about this stuff. Tons of specific things but nothing simple about my AVR microcontroller...




No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...