Shinnster
Member level 4
- Joined
- Sep 15, 2009
- Messages
- 70
- Helped
- 1
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Malaysia
- Activity points
- 1,800
So, I'm guessing the flow of the program would be something like
1. Declare variables
2. startup for LCD
3. Toggle 'E' twice?
4. Scan keypad
5. Put the data on the bus
6. raise and lower the 'E' signal
7. change the pin connected to D7 to be an input
8. read D7
9. if it is '1', go back to step 4
10. change the pin to be an output again.
Am I missing something else ? O.O
I also have to write in the program for each time to write character R/W = 0 and RS = 1?
What would happen if I ground R/W? Would toggle 'E' still work?
1. Declare variables
2. startup for LCD
3. Toggle 'E' twice?
4. Scan keypad
5. Put the data on the bus
6. raise and lower the 'E' signal
7. change the pin connected to D7 to be an input
8. read D7
9. if it is '1', go back to step 4
10. change the pin to be an output again.
Am I missing something else ? O.O
I also have to write in the program for each time to write character R/W = 0 and RS = 1?
What would happen if I ground R/W? Would toggle 'E' still work?