I've made up a board with an ATmega328P-AU (TQFP package). It has one analog in and one PWM out (yes waste of a chip and yes arduino based).
Problem is that the MCU is getting VERY hot and drawing about 290 mA and the 5V has dropped to 3.3Vish because i have a series resistor on the regulator to help limit current like this. There are no shorts of any of the I/O's used and i've not been able to program it (via AVRISP from the arduino IDE), it comes out with:
avrdude: verification error, first mismatch at byte 0x0000
0x0c != 0xff
avrdude: verification error; content mismatch
Any idea's ?should I try the excruciating experience of removing the MCU ?
That you cannot ISP program it suggests that one of those lines is shorted to ground or Vcc. I'd inspect the soldering carefully.
Is it an AVR chip for sure (genuine)?
Alexander.
yep, bought from RS, turned up on a massive tray for 5 chips
Some I/O pins must be sourcing or sinking a lot of current (the limit is 40mA per pin). By default the I/O pins should be in HighZ mode, so there's something very wrong.
quite, I have 200 ohms on the 5V line which is a bit odd but them with no power the chip will give different readings. 200 ohms is 25mA so not sure where the attempt to draw over 300mA comes from
As I saw the pin out for the TQFP is GND-VCC-GND-VCC. Could be a short circuit among those.
Alexander.
nope, that would not make the MCU overheat just the regulator. the resistance from GND to VCC is 210 ohms
No, it would not. So... Try another chip.
Could the chip got damaged during soldering?
Alexander.
Maybe an inappropriate question :-), but do you got the chip orientation right?
Maybe an inappropriate question :-), but do you got the chip orientation right?
A very valid one for a square package. Yes it is on there right
Pull-up resistor for the reset pin?
I have one.
i attach the schematic for everyones amusement
Could it be as obvious as just incorrect pinout (schematic symbol or PCB footprint error)? Worth to check actual board VCC and GND pins against datasheet.
Regards,
Janne
I have one.
i attach the schematic for everyones amusement
Seems to be fine. The only thing I saw is that AVcc isn't connected to Vcc. It should be connected even if the ADC isn't used.
ok, could it cause a problem like this ?
Did you take ESD precautions?
Try another chip.
I've seen ATMega's get hot when they have been damaged.
I once put 12V onto VCC when some wires rubbed together for a split sec. After that the current jumped up by a massive amount and it never worked again.
I highly suspect your mcu is dead.
Well i took it off and found the (SOIC) regulator supplying 6.8V ! so i replaced the reg and still supplying 6.8V! replaced with a standard through hole 78L05 and now outputs 5.25V, Someone at Farnell is in for a bollocking !
Reversed pinout? Do they make helpful LM78L05R parts?
well I followed the datasheet pinout. Not my problem.
right, put another atmega on there and still overheats and now my reg is at 7V again! this is the TO-92 version, how on earth can an ATmega cause a reg to up it's voltage ?