| ??? 11/19/07 20:15 Modified: 11/19/07 20:17 Read: times |
#147216 - Possible Error Responding to: ???'s previous message |
Jeroen Wilbers said:
hi guys
I've designed some software for a 4 bit HD44870 compatible LCD The pinout is like this: RS: P2.3 EN: P2.0 RW: GND D0-D3: tied to GND via a 10k resistor D4: P2.4 D5: P2.5 D6: P2.6 D7: P2.7 The code is this:
; X-tal @ 12 MHz
#include 8051.H
DATA .equ 0A0H ;P2
RS .equ 0A3H ;P2.3
EN .equ 0A0H ;P2.0
.org 0000H
Looks like DATA and EN are the same? Jon PS Have you tried a simulator? |
| Topic | Author | Date |
| 4 bit LCD trouble | 01/01/70 00:00 | |
| Possible Error | 01/01/70 00:00 | |
| DATA is port EN is pin | 01/01/70 00:00 | |
| Initialization | 01/01/70 00:00 | |
| I think I did initialize correct | 01/01/70 00:00 | |
| Logical operations | 01/01/70 00:00 | |
| Oops, should have been ANL BA | 01/01/70 00:00 | |
| Clobbering your data | 01/01/70 00:00 | |
| topic gone?? | 01/01/70 00:00 | |
| code library | 01/01/70 00:00 | |
| Try LCD Tutorial in tutorials section | 01/01/70 00:00 | |
| Tutorial uses 2 ports | 01/01/70 00:00 | |
| previous comments... | 01/01/70 00:00 | |
| All tested an nailed the problem | 01/01/70 00:00 | |
| yes, timing | 01/01/70 00:00 | |
Some code shortening: | 01/01/70 00:00 |



