Have 5V supply to ATmega32 but no voltage across pin 1??

Thread Starter

kris_maher

Joined Apr 24, 2009
90
Hi guys,

I'm working on a project which is based around ultrasonic transducers.

I have a 9V battery which I was able to get down to 5V thanks to a voltage regulator whose wire is connected to the VCC pin (10) on my chip.

All the GND are grounded on the breadboard, pins 11 and 31 are connected firmly to ground

I checked with Multimeter and there's 5V across VCC as expected, and there's 5V across the RESET pin (pin 9) as expected and 2.5V each for XTAL2/XTAL1 (pins 12 and 13. These are related to the connection of external inverting amp etc).

I'm using an internal timer. My dilemma is that I've created a timer signal that oscillates at 100Hz sent to PORTB bit 0 (Pin 1). I have a buzzer connected to it along with the other wire of it to GND.

The buzzer beeps as expected on the development board but when I put the chip over to the breadboard when I check the voltages there's no voltage signal at all on pin 1 - it's only at 250mv and I need 3.3V min across pin 1 to drive the buzzer. When the ATmega32 chip is on the development board, there is a constant 3-4V across pin 1.

Even something as simple as an LED does not flash when the chip is on the breadboard and wires all connected, even though it does on the development board when connected to pin 1 and the other leg to ground.

Any ideas on why there's no voltage reaching pin 1 guys?

Please help, Thanks

PS: All wires are firmly connected and I checked several times against the datasheet's pin configuration diagram.
 

hgmjr

Joined Jan 28, 2005
9,027
Can you take a clear photo of your bread board and post it here so that we may see your connections? A schematice would be helpful also.

hgmjr
 

Thread Starter

kris_maher

Joined Apr 24, 2009
90
Ahh thanks everyone!

Actually the problem all along was I didn't set the clock fuses. Setting it to 8MHz made the thing work just right ;)

Yes I'm somewhat of a newbie at AVR (just started this semester for a uni project). It's nice to learn new things along the way!
 

hgmjr

Joined Jan 28, 2005
9,027
I have been playing with AVR 8-bit micros for a number of years and have really had a lot of fun with the devices.

Let us know if you have any hardware or software issues that are giving you problems. Hopefully we can assist you in resolving them.

hgmjr
 

SgtWookie

Joined Jul 17, 2007
22,230
A side note;
If you're trying to use a crystal as a clock source with your uC, a breadboard will likely cause you much grief due to the high parasitic capacitance. Breadboards are great for low-speed analog and digital, but can cause a good deal of trouble when you get up into the MHz ranges.
 
Top