Hi all folks. This my first post in a Internet Forum (!!), and I´m proud to participate in this one with all of you. Sorry my English.
I´m dealing with a PIC16F877A and Flowcode 4.3.7 Student (ChipSettings: XTAL/HS and all the rest OFF and/or
DISABLED). I´m trying to do a first test with the KEYPAD and a LCD, just typing numbers. So I connected:
MultiProgrammer EB006-7 (settings: XTAL/FAST/PSU=13,5V/USB/OSC/IO PORT)
LCD EB005-3 (defaul setting) at PORT A (bits 0-5)
Keypad EB014-1 at PORT D (bits 0-6)
BUT when I type...
...1,2,3 I got 4,5,6
...4,5,6 I got 7,8,9
...7,8,9 I got *,0,# (* and # not displayed)
...*,0,# I got nothing
I tested all keypad´s row/columns combinations and I concluded that the keypad outpus were OK.
I changed it to PORTs B and C, and even the PIC for another one, and the fact persists.
The logic flow is the same of one Matrix examples ("String and Memory").
Any clue how can I get around this ? Thanks.
The Row Jumper Keypad
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: The Row Jumper Keypad
Hi Karbulla,
Welcome to Matrix Multimedia forums.
If you go to
http://www.matrixmultimedia.com/flowcode.php
Then enter your last two sets of your personal key (including the dash) within the window, then the latest version will be downloaded to your PC.
I have posted a test flowchart and hex file.
The hex fire is just to prove if its your version of Flowcode that's causing the issue or not.
So if you compile attached flowchart to chip, then if that does not work, load attached hex file will PPP then send to target.
If that does not work then you have a hardware issue.
Note: LCD = Port B & Keypad = Port C
Works with my hardware.
Martin
Welcome to Matrix Multimedia forums.
First of all V4.5.18.74 is the latested V4 Flowcode.Karbulla wrote: I´m dealing with a PIC16F877A and Flowcode 4.3.7 Student
If you go to
http://www.matrixmultimedia.com/flowcode.php
Then enter your last two sets of your personal key (including the dash) within the window, then the latest version will be downloaded to your PC.
I have posted a test flowchart and hex file.
The hex fire is just to prove if its your version of Flowcode that's causing the issue or not.
So if you compile attached flowchart to chip, then if that does not work, load attached hex file will PPP then send to target.
If that does not work then you have a hardware issue.
Note: LCD = Port B & Keypad = Port C
Works with my hardware.
Martin
- Attachments
-
- Keypad1.hex
- (4.52 KiB) Downloaded 325 times
-
- Keypad 16F877A V1.fcf
- (9 KiB) Downloaded 335 times
Martin
Re: The Row Jumper Keypad v.2
Hi folks. (sorry about my English – I know it sounds sometimes a little out of tune).
In fact the “Keypad 16F877A V1.fcf” (Martin´s <medelec35> attachment) worked fine with my hardware, even changing 16F877A ports.
This proved that neither the Flowcode version nor my keypad were causing the strange “row jump effect”.
But this clearly denotes that my flowchart/logic is somewhat crazy. I copied it from a PDF Matrix document although I (confess) had to invent some parameters that I couldn´t see inside the explanations boxes.
I have included 2 attachments : the above mentioned flowchart and my present and still alive version of the “row jumper kpd”.fcf.
Could someone test it and give me a hint what is going wrong with it ? Thanks in advance.
In fact the “Keypad 16F877A V1.fcf” (Martin´s <medelec35> attachment) worked fine with my hardware, even changing 16F877A ports.
This proved that neither the Flowcode version nor my keypad were causing the strange “row jump effect”.
But this clearly denotes that my flowchart/logic is somewhat crazy. I copied it from a PDF Matrix document although I (confess) had to invent some parameters that I couldn´t see inside the explanations boxes.
I have included 2 attachments : the above mentioned flowchart and my present and still alive version of the “row jumper kpd”.fcf.
Could someone test it and give me a hint what is going wrong with it ? Thanks in advance.
- Attachments
-
- matrix flowchart example.JPG
- (45.33 KiB) Downloaded 1844 times
-
- Row_Jumper_Keypad_16F877A.fcf
- (11.5 KiB) Downloaded 328 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: The Row Jumper Keypad
Hi Karbulla,
The issue with your flowchart are with keypad connections.
When you choose the connections just select the port (not the bits) for Column (columns 2 & 3 + bits 0,1 & 2 )will be automatically selected for you).
Then just select required port for Row A and rest of the connection will be automatically selected.
Back to your Flowchart. you have got: It should be: Martin
The issue with your flowchart are with keypad connections.
When you choose the connections just select the port (not the bits) for Column (columns 2 & 3 + bits 0,1 & 2 )will be automatically selected for you).
Then just select required port for Row A and rest of the connection will be automatically selected.
Back to your Flowchart. you have got: It should be: Martin
Martin