??? 04/28/08 19:14 Read: times |
#154122 - Multiple Problems Responding to: ???'s previous message |
The code you posted has multiple problems.
First it makes no sense to make it more complicated with this timer interrupt thing until you can get the LCD working. Second - The code posted never ever has a chance to get to the point of trying to do the LCD initialize functions. Third - At the end of the WAIT_LCD routine you are reading the BUSY bit from the port after you have lowered the E signal which shuts off the bus from the LDC controller. Instead read the P0 into the A register, lower the E and then test the bit in the ACC.7 bit instead. Fourth - At the beginning of the WAIT_LCD routine you are only making the BUSY bit an input. Are you absolutely sure that your LCD controller chip is not trying to drive bits out of itself on other pins of PO. Why not set all of P0 to 0xFF? Fifth - You are calling a routine CLEAR_LCD that you do not appear to have code for. Sixth - You do not appear to be initializing the MCOUNT variable to a valid value before the TEST: loop. Michael Karas |
Topic | Author | Date |
Damaged LCD? | 01/01/70 00:00 | |
Some code comments first. | 01/01/70 00:00 | |
Thanks... | 01/01/70 00:00 | |
Well if you need it later... | 01/01/70 00:00 | |
Hmmpf. | 01/01/70 00:00 | |
Multiple Problems | 01/01/70 00:00 | |
My Bad!!! | 01/01/70 00:00 | |
:) some improvement | 01/01/70 00:00 | |
try to initialise at startup | 01/01/70 00:00 | |
Wahey...... O not quite | 01/01/70 00:00 | |
Hex value | 01/01/70 00:00 | |
Check your soldering. | 01/01/70 00:00 | |
Oops | 01/01/70 00:00 | |
Wahey..... o not AGain | 01/01/70 00:00 | |
Leading 0 | 01/01/70 00:00 | |
Leading zero | 01/01/70 00:00 | |
Some help | 01/01/70 00:00 | |
Cheers guys, all working now | 01/01/70 00:00 | |
Why You Were Content Dependant![]() | 01/01/70 00:00 | |
The filled in blocks indicate.. | 01/01/70 00:00 | |
No hardware but software problem | 01/01/70 00:00 |