AVR GCC Compiling

AVR GCC Compiling

First, we did the blinky. Open this code in PN2 and make sure you can compile it. Click on Tools->Make All. The window in the bottom screen should say ‘Process Exit Code: 0′ meaning the compilation was successful. If not, there should be a line number listing of the problem …

Continue reading

UART and Serial Communication

UART and Serial Communication

The ATmega168 has tons of hardware built into it. Let’s unleash the serial communication. Everyone has programmed the ‘Hello World’ program. You’ve got your micro breadboarded and running at 16MHz. You’ve got WinAVR up and running. We’ve already demonstrated LED control. Now it’s time to pass some serial data back …

Continue reading

What is an oscillator?

What is an oscillator?

You’ve got the LED blinking on your ATmega168 – congrats! That’s a huge step. Now it’s time to make it blink faster! You loaded code onto the chip and the ATmega168 is running that code, but how is it running? And how fast? Any micro needs a clock source. Think …

Continue reading

What’s a Microcontroller?

What’s a Microcontroller?

You may know what an OR gate is. An OR gate is a logic gate that takes two inputs and controls an output. You may have played with these types of gates, even possibly a DIP packaged OR gate with 4 OR gates built into it. This DIP package required …

Continue reading

You want to play microcontrollers today?

You want to play microcontrollers today?

To begin with any Microcontroller IC, you need to power the things up first . So gear-up youre mind and  focus on this tutorial. There are two power connections on basic Microcontrollers : VCC and GND. What the heck is VCC? This is the label for the positive voltage. Don’t …

Continue reading