AtMega128-16AU vs ATMEGA128A-AU

Is there a discrepancy in the compiler using this microcontroller?

JAG
Benutzer
Avatar
Geschlecht:
Herkunft: Mexico
Alter: 61
Beiträge: 18
Dabei seit: 07 / 2008
Betreff:

AtMega128-16AU vs ATMEGA128A-AU

 · 
Gepostet: 05.05.2023 - 07:18 Uhr  ·  #1
For years, our system has run on a custom PCB based on the ATmega128-16AU. The distributor was out of this component, so we purchased the AtMega128A-AU that was said to be a drop-in replacement. The newly assembled microcontrollers on our PCB runs the display routines but doesn't read the keyboard and has problems with the watchdog routine doing repetitive resets on the first board we tested today. Has anyone experienced the same discrepancy as us with these two microcontrollers?
pvs-deck
PowerUser
Avatar
Geschlecht:
Alter: 54
Beiträge: 1344
Dabei seit: 02 / 2009
Betreff:

Re: AtMega128-16AU vs ATMEGA128A-AU

 · 
Gepostet: 05.05.2023 - 09:13 Uhr  ·  #2
Hallo Jag,

leider benutze ich diese CPU nicht.

Aber kurz einige Fragen, was ist das für eine Tastatur?
Wie ist diese angeschlossen?
Welche Schnittstelle I2C, SPI oder wie auch immer.

Evtl. Kommt Dein Watchdog Problem von einen Hänger mit dem Keyboard.
Aber Du gibst hier etwas wenig infos zum helfen.

Gruß
Thorsten

------------------------
Hello Jag,

sorry i don't use this CPU.

But briefly some questions, what is this keyboard?
How is it connected?
Which interface I2C, SPI or whatever.

Maybe your watchdog problem comes from a hange with the keyboard.
But you give here a little bit less infos to help.

Greetings
Thorsten
Merlin
Administrator
Avatar
Geschlecht:
Alter: 26
Beiträge: 1476
Dabei seit: 03 / 2005
Betreff:

Re: AtMega128-16AU vs ATMEGA128A-AU

 · 
Gepostet: 06.05.2023 - 16:18 Uhr  ·  #3
Also are you recompiling for the new part or simply programming with the old hex file and ignoring the signature error?
JAG
Benutzer
Avatar
Geschlecht:
Herkunft: Mexico
Alter: 61
Beiträge: 18
Dabei seit: 07 / 2008
Betreff:

Re: AtMega128-16AU vs ATMEGA128A-AU

 · 
Gepostet: 12.05.2023 - 19:20 Uhr  ·  #4
I'm using the same hex files for AtMega128-16AU and AtMega128A.

The keyboard that we are currently using is a 4x4 membrane type, and we are reading it through the AVR-co libraries. However, during our testing phase, we observed that all the ports used ( PB0 to PB3 configured as output, and PB4 to PB7 set as input) are unresponsive when the 128A is installed. We have verified this by using a digital probe to check the port and we have found that there are no signals being detected.

I'll try Merlin following your suggestion and see what happens with the new hex file and keep you posted about the findings.

Your feedback is greatly appreciated.
JAG
Benutzer
Avatar
Geschlecht:
Herkunft: Mexico
Alter: 61
Beiträge: 18
Dabei seit: 07 / 2008
Betreff:

Re: AtMega128-16AU vs ATMEGA128A-AU

 · 
Gepostet: 13.05.2023 - 00:45 Uhr  ·  #5
Today, we switched to AtMega128-16AU and reinstalled the original hex file. As a result, the issue with the keyboard malfunctioning and the occurrence of watchdog resets has been resolved. Based on the results, it is possible that the two Atmega devices may not be fully compatible. We have recorded this observation here to assist others who may encounter similar difficulties. Thank you for your attention to this matter.
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 8 · Cache Hits: 14   96   110 · Page-Gen-Time: 0.016451s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI