C18 Code to interface a 4x3 keypad to LCD using PIC18F4321

Status
Not open for further replies.

nathan20

Newbie level 1
Joined
Aug 25, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
10
Hi all,

I'm new to writing code

I am trying to interface a 4 row by 3 column keypad to display which buttons are being pressed on the LCD and its being used in a security/password scenario. the LCD is a hitachi HD44780U

I am using the C18 compiler on MPLAB and the microcontroller that has been assigned to me is the PIC18F4321

I was considering using a 74C922 keypad encoder but at the moment I am just trying to write the source file but am in urgent need of help

I have attached a schematic of the PIC and a close up of the central unit
I have also uploaded all my header files and my source file containing the scanning process but am unsure where do go from here
(files have been uploaded in notepad since header and source files are unrecognized by the uploader)
 

Attachments

  • DSC_0003.jpg
    937 KB · Views: 125
  • DSC_0004.jpg
    1.3 MB · Views: 123
  • delays.txt
    1.4 KB · Views: 98
  • keypad.txt
    257 bytes · Views: 108
  • LCD.txt
    6.5 KB · Views: 87
  • p18f4321.txt
    24.3 KB · Views: 92
  • keypad source file.txt
    1.9 KB · Views: 122

you can build and test your code on proteus. Its a very good simulator to test before developing the physical board. I'm sure it will come handy for you for testing.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…