I just wanted to share my frustrations and the smacking myself in the head moment.
i have just spent the last three hours trying to get a Displaytech 162b LCD going, 16x2, in 8 bit mode. Yeah i know, not a terribly hard task but this is my first experience programming with an LCD. So I used the example in David Lincolns book, which by the way i have found very useful so far, being the newbie I am. Anyway, I am using the 28x1 starter kit, checked the board by simply flashing an LED and all is good. Loaded the code with no problems (had to re-name the "Loop" label in David's code), but alas nothing on the display. Checked the code. Ran the simulator, everything was fine. Fired up the cro, all control and data signals were fine, adjusted and re-adjusted the contrast.... Hmmmmmm, time for a coffee, still not working, bugger. Music calms the savage beast so Pink Floyds Wish You Were Here is fired up..ahhh thats better. Powered up the LCD with just V+, 0v and contrast..black squares, very good, contrast is adjustable. connected LCD to the board and nothing....checked the contrast again and measured the voltage this time and found that the pot I was using is crook and my contrast voltage was too high. New pot and how about that, characters as expected on the display.
Moral to the story is check the hardware and double check and then check it properly,Cheers
i have just spent the last three hours trying to get a Displaytech 162b LCD going, 16x2, in 8 bit mode. Yeah i know, not a terribly hard task but this is my first experience programming with an LCD. So I used the example in David Lincolns book, which by the way i have found very useful so far, being the newbie I am. Anyway, I am using the 28x1 starter kit, checked the board by simply flashing an LED and all is good. Loaded the code with no problems (had to re-name the "Loop" label in David's code), but alas nothing on the display. Checked the code. Ran the simulator, everything was fine. Fired up the cro, all control and data signals were fine, adjusted and re-adjusted the contrast.... Hmmmmmm, time for a coffee, still not working, bugger. Music calms the savage beast so Pink Floyds Wish You Were Here is fired up..ahhh thats better. Powered up the LCD with just V+, 0v and contrast..black squares, very good, contrast is adjustable. connected LCD to the board and nothing....checked the contrast again and measured the voltage this time and found that the pot I was using is crook and my contrast voltage was too high. New pot and how about that, characters as expected on the display.
Moral to the story is check the hardware and double check and then check it properly,Cheers