A simple keyreader, that doesnt read

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
E*2Engineer
Posts: 35
Joined: Wed Dec 25, 2013 6:54 pm
Has thanked: 12 times
Been thanked: 6 times
Contact:

A simple keyreader, that doesnt read

Post 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!
Attachments
LCD CORRECT CONFIGURATION.jpg
LCD CORRECT CONFIGURATION.jpg (34.05 KiB) Viewed 4943 times
QL200_SCH.pdf
I have S4 for the extra column of keys turned off (disconnected), so it would be the same as the E-Blocks version of the example, under Strings and Memory/ Exploring the keys, in the "intro to Micros" example.
(95.17 KiB) Downloaded 362 times
KEPAD SENSE AND READ 1 19 14 1245.fcf
Very simple, same as in intro to micros course.
(8 KiB) Downloaded 343 times
Last edited by E*2Engineer on Sun Jan 19, 2014 11:54 pm, edited 1 time in total.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: A simple keyreader, that doesnt read

Post by kersing »

Please do not use all capital subjects.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Re: A SIMPLE KEYREADER, THAT DOESNT READ

Post 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.

User avatar
E*2Engineer
Posts: 35
Joined: Wed Dec 25, 2013 6:54 pm
Has thanked: 12 times
Been thanked: 6 times
Contact:

Re: A SIMPLE KEYREADER, THAT DOESNT READ

Post 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!

Post Reply