TextLCD_20X4

This is my first project on the mbed.

This is a modified version of TextLCD on the Cookbook for 20X4 LCD specific. This does not control RW line, so we can reduce the number of pin usage on the mbed.

Published Program

Reference

Modification

  • The locate() routine of TextLCD on the Cookbook does not work correctly on the 20X4 LCD, so I modified it to set the proper DD_RAM address on the LCD.
  • The original TextLCD program assigns the RW control line, but it defined as "_rw = 0" and never been changed. Therefore, I remove the RW control line on the mbed, and the RW line on the LCD is connected to GND.

 

      01234567890123456789
     +--------------------+
   0 |80    TextLCD     93| (0,0) .. (19,0)
   1 |C0                D3| (0,1) .. (19,1)
   2 |94      20X4      A7| (0,2) .. (19,2)
   3 |D4                E7| (0,3) .. (19,3)
     +--------------------+

 


0 comments

You need to log in to post a comment