Atmega16, how to verify if its dead...

Go To Last Post
13 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys.

 

For a year ago I disambeled this pcb from a home product to reengineer the the IO ports on the UC. I then meantime i did a temporarily PCB with a Arduino nano. My plan was to write a new firmware on the original.

 

But time went and I didn't finalize the project... But now it should be, so started up again and have now clarified all the pins in this Atmega16. The problem is that I cannot get any communication to work. I cant even manage to get a device ID from it. I have tried with a USBASP and my Atmel ICE, nothing works.  only get avrdue command:

 

 

As you can see there's a 10 pin ISP programming port which is the only one i have used. 

 

Is there anything I should try before having someone to replace this Atmage16 from the board? a new control board is 150Euro.. 

 

the onboard krystal is a 8mhz and the Atmega is of type Atmega16 16AU, 0612J

 

Thanks,

 

 

Attachment(s): 

Kasper Vissing

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

KKV79 wrote:
Is there anything I should try before having someone to replace this Atmage16 from the board?
Yes

[TUT][SOFT] Recovering from a "locked out" AVR | AVR Freaks

Pololu - 5.10. Using the clock output to revive AVRs

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does your board have power?---needed to program

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes,

 

It's supplied with 5V from the USBASP. And when I used my ATMEL-ICE I did supply from external. 

:/

 

Kasper Vissing

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

This dead ATmega16 title reminds me of the "funniest joke in the world".

Two hunters are out in the woods when one of them suddenly collapses. He doesn't seem to be breathing and his eyes are still and glazed over.

The other guy whips out his phone and calls for an ambulance. He screams "My friend is dead! What can I do?"

The operator says, "Calm down. I can help. First though, we must be sure he's really dead"

There is a brief silence; then a gun shot is heard.

Back on the phone, the guy says, "OK - now what?"

 

Last Edited: Sun. Jan 16, 2022 - 09:40 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Programming cable on backwards?  Double check, it is easy to mess up.  

Set programming speed to lowest possible

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I wish it was that. I did check the pin 1 Mark and traces it to MISO and the same in the other end. :/ 

 

Kasper Vissing

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


First verify voltage and signals at the pins of the ATmega16 IC itself.

Get a sewing needle and clamp it into the alligator clip or scope probe. 

A good wrap-around-the-forehead "hands-free" magnifier is also a good tool to use.

 

Now you can touch the tip of the sewing needle onto the actual pin tab of the Mega16 that you want to test.  Check for Vcc on all the Vcc pins.   Test the reset pin.  Does it go to logic high on PowerUP?

 

  Next test the MOSI, MISO, and SCK pins by repeatedly running AVRdude.   Also use the AVRdude code for Mega16: which is "m16" instead of "m8".  The scope should show activity on these pins each time that AVRdude tries to access the AVR.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

R1 value, which goes from Reset to Vcc (pin4 to pin5) is unclear to me, can you read it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

R1 seems to be 4K7 (472) which is what I used for the past 20 years.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Are you really trying to set SCK to 1,500,00 Hz? (1.5MHz?)

Ross McKenzie, Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ive tried all frequency's in the list, so yes I've also tried 1.k MHz 

Kasper Vissing

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, I will try that! (btw, I also realized the m8, and also tried with m16)

Kasper Vissing