I have what I think is a LCD-T4 component tester that I managed to damage the inputs to the micro on with a charged capacitor. I have a replacement Atmega 328p chip but have been unable to get the unit to display anything besides a blank or screen with a constant shade of grey. I am using the code from here:
https://github.com/Mikrocontroller-net/transistortester/tree/master/Software/trunk/mega328_T3_T4_st7565 I have also tried this code as well:
https://github.com/Mikrocontroller-net/transistortester/tree/master/Software/trunk/mega328_T4_v2_st7565. Not really sure that I am flashing it correctly, as all I have for a programmer is a Arduino UNO set up as a ISP programmer and have tried flashing just the hex file and the the hex file + the epp file and no change. Not sure if I need to set the fuse bits or not. I am currently testing this on the partially broken micro that came with the tester just to see if I can get it working before swapping the good chip onto the board. I have also tried setting the fuse bits to this: lfuse:w:0xff:m -U hfuse:w:0xdb:m -U efuse:w:0xfd:m from this project:
https://github.com/wagiminator/ATmega-Transistor-Tester and no change to the operation. It did give me an error about the efuse bit though: avrdude.exe: WARNING: invalid value for unused bits in fuse "efuse", should be set to 1 according to datasheet
This behaviour is deprecated and will result in an error in future version
You probably want to use 0x05 instead of 0xfd (double check with your datasheet first).
avrdude.exe: 1 bytes of efuse verified
The original fuse bits were: (E:01, H:D7, L:FF) and after changing them they are this: (E:FD, H:DB, L:FF). It does mention that these are safemode fuses so they may not be the correct fuse's that I am needing to change.
Not really sure what I am doing wrong here as I am a hardware person not a software person.