??? 01/12/06 17:55 Read: times |
#107180 - LCD problems Responding to: ???'s previous message |
At the moment when I turn my circuit on, it displays 'RPM: 00000_'. I'm not sure why the underscore is there. That's probably the LCD's cursor. If necessary, it can be disabled by sending a different initiation sequence to the LCD at start-up. Instead of sending the LCD the 0Eh command, send it 0Ch. This will initialize the LCD with the cursor turned off. When I cause a 1-0 transition on P3.4, nothing happens. I have simulated the code on Pinnacle 52 without any of the LCD code included and it seems to be doing what I want, so I have a feeling it has something to do with writing the RPM to the LCD. Try this: If you have a LED on your circuit, have the microcontroller turn the LED on when the interrupt is triggered. This will allow you to verify that the interrupt is functioning as expected. If it isn't, you know you need to focus on the interrupt. If it's functioning ok, you need to focus on writing to the LCD. Regards, Craig Steiner |