Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

nathan20

Newbie level 1
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
    DSC_0003.jpg
    937 KB · Views: 124
  • DSC_0004.jpg
    DSC_0004.jpg
    1.3 MB · Views: 122
  • delays.txt
    1.4 KB · Views: 98
  • keypad.txt
    257 bytes · Views: 108
  • LCD.txt
    6.5 KB · Views: 86
  • 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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top