Page 1 of 1

The Line Eater Keypad - 16F88

Posted: Sun May 12, 2013 12:40 am
by Karbulla
This little project almost succeeds. A medium size 16F88 with practical input (EB014 Keypad) and a very convenient output (EB005 LCD Display). The software itself, very simple, is just a way of testing the real hardware.
The EB006 Multiprogrammer is working with internal oscillator at 4MHz and has it´s Jumper J18/J19 at A6&7 position, releasing OSC1 and OSC2 pins to behave as extra I/O´s.
The simulation is OK, but the real hardware "eats" the second line keys: 4,5,and 6. I know that with the same fluxogram these
2 EBlocks work very well with 28 and 40 pins PIC´s, but I don´t want to use them for a reason - I already got several 88.

Having trouble to understand Matrix EB014 documentation (I think there are mistakes there), I decided to test the real correspondences between EB014 output DB9 pins X 16F88 pins inside EB006 X ROWS & COLLUMS and the result is this:

Code: Select all

DB9 connector	       16F88 Port A pins	                       Keypad Rows & Col.
1	                       17      (RA0)	                           COLUMN 1
2	                       18      (RA1)	                           COLUMN 2
3	                       1       (RA2)	                           COLUMN 3
4	                       2       (RA3)	                            -o-
5	                       3       (RA4)	                           LINE 1
6	                       NOT CONNECTED       	                    LINE 2
7	                       15      (RA6)	                           LINE 3
8	                       16      (RA7)	                           LINE 4
9	                       5       (GND)	
We see that nothing is linking Keypad´s LINE 2 to the PIC. That´s the reason of the original problem. I tried to connect LINE 2 to RA3, but EB014 Component Macro didn´t detect it. The new issue is now: how modify the EB014 Component Macro routine to fit LINE 2 to something ? I´ve read it but I didn´t see a direct way to change things. Could someone give me a clue about all that ? Thanks.

Re: The Line Eater Keypad - 16F88

Posted: Sun May 12, 2013 6:15 pm
by kersing
What version of Flowcode are you using?

Re: The Line Eater Keypad - 16F88

Posted: Mon May 13, 2013 1:49 am
by Karbulla
It´s a Student 4.5.18.74

Re: The Line Eater Keypad - 16F88

Posted: Mon May 13, 2013 8:09 pm
by Enamul
Can you please post the program you have tried so that we can see what's going wrong?

Re: The Line Eater Keypad - 16F88

Posted: Mon May 13, 2013 9:21 pm
by kersing
I second the request for your flowchart. I created an example flowchart with line 2 connected to A3 and the generated C code looks like it should work. Don't have a spare 16f88 available for testing so I can't test actual hardware.

Re: The Line Eater Keypad - 16F88

Posted: Tue May 14, 2013 11:45 pm
by Karbulla
Sorry for the delay. It´s all yours, and here it go. Good luck.

Re: The Line Eater Keypad - 16F88

Posted: Wed May 15, 2013 10:46 pm
by kersing
Ok, I found your issue. It is not software/component based but it is a hardware issue.
You are able to remap RA3 in the component properties however, this does not change the hardware. So the DB9 connector pin 6 (row 2) is still not connected to any PIC port. To use RA3 you need to somehow connect DB9 pin 4 to DB9 pin 6 (and change the mapping in the component properties)