The Line Eater Keypad - 16F88

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
User avatar
Karbulla
Posts: 13
Joined: Fri Jan 04, 2013 10:59 pm
Has thanked: 12 times
Contact:

The Line Eater Keypad - 16F88

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

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: The Line Eater Keypad - 16F88

Post by kersing »

What version of Flowcode are you using?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
Karbulla
Posts: 13
Joined: Fri Jan 04, 2013 10:59 pm
Has thanked: 12 times
Contact:

Re: The Line Eater Keypad - 16F88

Post by Karbulla »

It´s a Student 4.5.18.74

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: The Line Eater Keypad - 16F88

Post by Enamul »

Can you please post the program you have tried so that we can see what's going wrong?
Enamul
University of Nottingham
enamul4mm@gmail.com

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: The Line Eater Keypad - 16F88

Post 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.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
Karbulla
Posts: 13
Joined: Fri Jan 04, 2013 10:59 pm
Has thanked: 12 times
Contact:

Re: The Line Eater Keypad - 16F88

Post by Karbulla »

Sorry for the delay. It´s all yours, and here it go. Good luck.
Attachments
Keypad_LCD_16F88_RC.fcf
(9 KiB) Downloaded 386 times

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: The Line Eater Keypad - 16F88

Post 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)
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply