AVR and printf

Getting printf to work on an AVR can be confusing. We’ll show you exactly how to do it. STK500 Setup You should leave your STK500 setup exactly the same as it was setup for a previous guide, AVR USART Serial Communications. Required Functions You should keep all of the functions that you need from the previous guide: usart_init() usart_getchar() usart_purchar()…

Read more

AVR Port Input Logic

This guide teaches you how to make decisions based on port input conditions. STK500 Setup If you’ve been following along in these guides, then your STK500 should be setup like this. The important things to setup based on the picture above are: ISP6PIN connects to SPROG3 if you are using an ATmega32 PORTA connects to LEDS PORTB connects to SWITCHES…

Read more

AVR Menu Over Serial

Have you ever wanted to have a “menu” in your AVR that you can interact with over a serial connection? This guide show you exactly how to do it. STK500 Setup You should leave your STK500 setup exactly the same as it was setup for the previous guide, AVR USART Serial Communications. Required Functions You should already have all of…

Read more
1 2 3