??? 02/02/07 09:35 Read: times Msg Score: +2 +2 Good Answer/Helpful |
#131921 - debugging Responding to: ???'s previous message |
Gagandeep Singh said:
i have made this code have tested
you copy past in simulator simulate the code create hex file send it to controller IF then its not working then it is sure hardware prob or simulating prob I think this is not going to get anywhere. What works for you, does not necessarily work for the OP. The OP should get back to the basics: 1) verify your circuit. Is the circuit design OK? 2) is the circuit implemented as designed? (ie are there no errors in the actual PCB/wire connections 3) do some debugging, use a development system that allows you to single-step through your program. See if the program flow is correct 4) connect not an LCD but LED's (by means of appropriate drivers) to the port and single step through your program. Verify that port pins are being driven in the correct state, at the right time. Use the datasheet of your LCD to verify 5) write a SMALL, SIMPLE test program (ie initialise display, put one character on display. If it does not work, single step / debug as in in 3 and 4 6) if it works write a larger program. Take one step at a time, and remember, if it does not work something is wrong somewhere. Up to you to find it. Do not assume something is working "because it has always done so". Verify it. As long as you have not located the problem, it could be anywhere. From a software bug to hardware issue. Happy bug hunting Patrick |