Skip to main content
edited tags
Link
user17592
user17592
Source Link
Rick_2047
  • 3.9k
  • 5
  • 48
  • 68

Code runs in simulation but not on chip

I am trying to interface JHD12864E graphic LCD with an ATmega32 controller. I simulated it in proteus using the LGM12641BS1R model. Both are KS0108 compatible so I thought it should work. I have written some code using the procyon avr library. The only change I did was to modify the code for a active high RST signal (in place of an active low signal as on LGM12641). For that I changed the function glcdreset and added a not in the if condition. Also in the proteus model I added a not gate primitive before the RST signal. So now I guess my model and the actual chip are compatible. And it works too, in simulation. But when I burn it on the ATmega32 chip I do not get anything except the LED backlight. I have double checked the wires and they are in order. What else may be the problem?