Page 1 of 1

A simple keyreader, that doesnt read

Posted: Sun Jan 19, 2014 11:12 pm
by E*2Engineer
Hello all,
I am doing this keyboard reading example in "intro to micros".
My program is running as a simulation, but not on my QL200 development board.
I have been able to run all examples in the course so far, with a few modifications to the coding of ports.
This one however is not running on the board, so attached is the QL200 schematic, and my .FCF
I can see (via the data line LED'S) the micro is managing to scan the keys to a point, but then C0,C1, & C2 stop toggling, and nothing ever displays on the LCD at all.
I have used Port C for the keyboard, as that is how the DEV board is wired.
Any help wold be appreciated.
Thank you,
Jeff

Addendum:
I am using a PIC16F877A PROCESSOR!

Re: A simple keyreader, that doesnt read

Posted: Sun Jan 19, 2014 11:15 pm
by kersing
Please do not use all capital subjects.

Re: A SIMPLE KEYREADER, THAT DOESNT READ

Posted: Mon Jan 20, 2014 2:38 am
by Kenrix2
Try turning off the watch dog timer and low voltage programming in chip configure and set the clock speed in project options to whatever the actual speed is and see how it runs.

Re: A SIMPLE KEYREADER, THAT DOESNT READ

Posted: Mon Jan 20, 2014 7:44 am
by E*2Engineer
I found that I was seeing no display without putting in a delay after the print command, as the display is so slow to react.
Also, i found the port lines were not being pulled up hard enough, despite the on board 10K Ohm pullup SIP for port C.
This was giving me erratic results after I put the print delay in. I put another set of pullup resistors in parallel, and the numbers became consistent.

So thanks for your suggestions!