PIC18F4520 & MikroC & Keypad 4x4

General discussion on mikroC.
Post Reply
Author
Message
linspire
Posts: 20
Joined: 03 Sep 2011 08:31

PIC18F4520 & MikroC & Keypad 4x4

#1 Post by linspire » 27 Sep 2011 11:31

Hi guys,
I have tested successfully for Keypad 4x4 by referring the MikroC user manual keypad library coding.
I did test on 7Hz only which trigger interrupt and fed into CLKIN as clock signal.
However, I found out when I use HS mode, 20Mhz external crystal oscillator to run testing, it seem the output result doesn't working as expected.
Does anyone here can suggest idea how to solve this ?


Regards
Linspire

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: PIC18F4520 & MikroC & Keypad 4x4

#2 Post by filip » 28 Sep 2011 10:26

Hi,

I successfully tested Keypad 4x4 on EasyPIC, using 18F4520 and 20 MHz crystal.
In the attachment I'm sending you the project that demonstrates this.

The keypad is connected to the PORTC, so you should pull-down PORTC lines.

Regards,
Filip.
Attachments
Keypad 4x4.rar
(18.89 KiB) Downloaded 318 times

linspire
Posts: 20
Joined: 03 Sep 2011 08:31

Re: PIC18F4520 & MikroC & Keypad 4x4

#3 Post by linspire » 09 Oct 2011 16:37

Guys,
I'm stuck on writing on for the keypad code.
How am I supposed to write the logic which work like this:

1. Firstly get user input for storing the data file name. (I done this )
Eg: My keypad allow user key in alpha/numeric to make data file name said: 123abc.txt

2. After storing the data name(123abc.txt), I want to let user to select option from keypad which are
i. Get user to key in the data into the data file
Eg: User key in 1234567, the data will be stored into text file

ii. Or let user pass data directly from hardware interface

second steps (2.) process will be keep repeating.
This is what I'm trying to achieve now.

My PIC18F4520 will be interfaced together with LCD 16x2, SD Card, KEYPAD 4x4, RFID reader for purpose storing data from user or from RFID reader.
I'm confused right now.



Regards
Linspire

linspire
Posts: 20
Joined: 03 Sep 2011 08:31

Re: PIC18F4520 & MikroC & Keypad 4x4

#4 Post by linspire » 12 Oct 2011 13:57

Does anyone can suggest opinions how to solve it ?
I'm still stuck around.


Linspire

Post Reply

Return to “mikroC General”