Timer problem with 16F877
Posted: Wed Oct 27, 2010 1:36 am
Hi
Im having a bit of a problem with the timer on the 16f877.
i have an old project i built with using the 16f877 and used the timer for a built in clock function. I used a 4x20 display. This worked perfectly.
This time round im using a ks0108 type LCD, and i cant get the timer to work correctly (if at all)
Basically whats happening is when the timer should start to count it scrambles the LCD display, it looks like the text has been typed over and over(text overlapping and random pixelation) then the program appears to stop and is unresponsive to any buttons or sensors.
This happens without the timer actually doing anything, just trying to activate it causes this problem, without the timer the program runs flawlessly.
I am wondering if any external pin connections can cause a problem??
If not is there anything else i can try because i could really do with the timer being active in my project.
Any help is appreciated.
Im having a bit of a problem with the timer on the 16f877.
i have an old project i built with using the 16f877 and used the timer for a built in clock function. I used a 4x20 display. This worked perfectly.
This time round im using a ks0108 type LCD, and i cant get the timer to work correctly (if at all)
Basically whats happening is when the timer should start to count it scrambles the LCD display, it looks like the text has been typed over and over(text overlapping and random pixelation) then the program appears to stop and is unresponsive to any buttons or sensors.
This happens without the timer actually doing anything, just trying to activate it causes this problem, without the timer the program runs flawlessly.
I am wondering if any external pin connections can cause a problem??
If not is there anything else i can try because i could really do with the timer being active in my project.
Any help is appreciated.