contact2adronics / adronics-tiger

Automatically exported from code.google.com/p/adronics-tiger
0 stars 0 forks source link

LCD not working #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
On TiGER board LCD is connected on PORTA and configured in 4-bit mode. When 
configured using CodeVisionAVR LCD library it does not display. Back light and 
contrast can be adjusted.

Original issue reported on code.google.com by contact2...@gmail.com on 26 Apr 2011 at 7:37

GoogleCodeExporter commented 9 years ago
For codevisionAVR LCD library LCD pins must be connected to pins as mentioned 
below

PORT bit 0 - RS(LCD PIN 4)
PORT bit 1 - RD(LCD PIN 5)
PORT bit 2 - EN(LCD PIN 6)
PORT bit 3 - NC
PORT bit 4 - DB4(LCD PIN 11)
PORT bit 5 - DB5(LCD PIN 12)
PORT bit 6 - DB6(LCD PIN 13)
PORT bit 7 - DB7(LCD PIN 14)

On board 4-data bits were connected to DB0-DB3 instead of DB4-DB7.
Workaround is connected/short below pins
DB0 (LCD pin 7) and DB4 (LCD pin 11)
DB1 (LCD pin 8) and DB5 (LCD pin 12) 
DB2 (LCD pin 9) and DB6 (LCD pin 13)
DB3 (LCD pin 10) and DB7 (LCD pin 14)

Original comment by contact2...@gmail.com on 27 Apr 2011 at 12:12