LCD displays blocks only

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

I'm trying to configure a Atmega32 to drive a LCD in 4-bit mode. I took code that was working on my Atmega8 and changed the LCD_hw_h file that defines the pinouts.

The contrast pot and backlight seem to be working but all that displays on a 16x2 is one line of blocks. On a 40x4 display, lines one and three are blocks indicating that only line one is activiated. I know that clock divide by 8 is selected on Avr Studio4 so the only thing that comes to mind as I type would be clock between the two chips. The Atmega32 should be running at 8mhz/8.

On the STK500, if I use a delay of 1 sec between loops, I can see the LED for D14 flashing so quickly it is almost steady. D13 is dim and D12&11 are off. I'm guessing the voltages are not a good indicator of the output.

Before I post a lot of code, any obvious checks? I checked the connections and pin assignments. I suspect it is a software error.

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

Turn off jtag.... its hogging middle 4 bits in portc.

Imagecraft compiler user

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

I'll give it a shot. I did switch from PortB to PortC.

UPDATE: It works!!!! Thanks

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

The Dark Boxes came and went, well done :)

The Dark Boxes are coming.