Ok, so here goes, this is what an AVR ATMega32 looks like:
I have this one and I will be using this in most of the things I am gonna do and put up here.
This particular packaging is called DIP(Dual In-line Package), this one has 40 pins and the numbering starts from the arrow at the top left and ends to the right of the arrow, now I am gonna copy some characteristics off of its datasheet, which you can download from the Atmel site.
Oh! and here comes the PINS:
Now lets just take a look at the above;
- Port A/B/C and D
These are the 4 I/O ports on this uC, all are 8-bit, each pin representing one bit and hence one port makes a complete byte, all 8 pins of any port can be used for input or output in any combination you like, all these pins have alternate functions as well. Right now, just remember that these are the pins which we will be using to provide inputs and get outputs from the uC.
Port A: Pins 33 to 40
Port B: Pins 1 to 8
Port C: Pins 22 to 29
Port D: Pins 14 to 21
- Reset (Pin 9)
This is the pin which when grounded causes the uC to RESET (or RESTART), it can be used whenever necessary.
- VCC (Pin 10)
This is the one pin, which makes all the magic happen, it is the input voltage pin of the AVR, for the case of ATmega32, it should be connected to a regulated+filtered supply of 4.5 to 5.5 volts
- GND (Pin 11)
For the ground connection, that’s enough here
- XTAL2& XTAL1 (Pins 12 and 13)
It might be a little difficult to understand for now, if you have just begun uCs, but this is the most crucial thing for any uC, it can be considered as the HEART BEAT of the uC, the uC works on every beat from these two pins, so we attach these to an oscillator/crystal which provides us with the beats of the desired timing. will go in detail later on.
- AVCC (Pin 30), GND (Pin 31) and AREF (Pin 32)
These are the power, ground and reference pins for the ADC(Analog to Digital Conversion) module of the ATmega32, as we won’t be going into ADC for a very long time and hence we will not be using these for now, so no use of going into detail for now.
This might enough for now, we will see the internals next time…
Leave a Reply