Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 27th March 2004, 07:50 PM   (permalink)
Default correct keypad interfacing...

i found this source:
http://www.piclist.com/techref/micro...4bLCD-Lock.htm

in keypad i put 4k7 pull-up resistors where row0-3 of keypad are pinned to rb0-rb3 respectively...and col0-2 are directly pinned to ra0-ra2 respectively...

the lcd works nicely but the pic only accept input from button 1 and 4 only...

can anyone correct my mistake with the keypad interfacing. thanks in advance...
nenayd is offline  
Old 28th March 2004, 10:44 AM   (permalink)
Default Re: correct keypad interfacing...

You could have a look at my PIC tutorials, where I show how to use a hex keypad, complete with circuits and veroboard layouts.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 28th March 2004, 09:06 PM   (permalink)
Default P16F628 not available...

thanks a lot for the tutorial...but in our country only pic16f84a are available in market...can you tell the modification needed in your codelock source code and schematic suitable for pic16f84a.
nenayd is offline  
Old 29th March 2004, 08:35 AM   (permalink)
Default Re: P16F628 not available...

Quote:
Originally Posted by nenayd
thanks a lot for the tutorial...but in our country only pic16f84a are available in market...can you tell the modification needed in your codelock source code and schematic suitable for pic16f84a.
The 628 is basically the replacement for the 84A, which is effectively obselete. All you need to do is remove the write to CMCON (which the 84A doesn't have) and alter the config fuse settings, also be aware of the 84A's port limitations, you will be able to use the keypad on portb, but not porta (too few I/O lines). You should also check the start address of available registers, I'm not sure they are the same without checking.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 29th March 2004, 01:10 PM   (permalink)
Default here's my circuit...

planning to pinned the row1-4 in rb0-rb3 respectively and col1-col3 in ra0-ra2 respectively...and put a 4094 8-stage shift-and-store bus register...so rb4 to CP, rb5 to D, rb6 to E and rb7 to RS...i save two pins ra3 and ra4...this two can now use for output.


sir, will this configuration work to your codelock?
nenayd is offline  
Old 29th March 2004, 01:31 PM   (permalink)
Default Re: here's my circuit...

Quote:
Originally Posted by nenayd
planning to pinned the row1-4 in rb0-rb3 respectively and col1-col3 in ra0-ra2 respectively...and put a 4094 8-stage shift-and-store bus register...so rb4 to CP, rb5 to D, rb6 to E and rb7 to RS...i save two pins ra3 and ra4...this two can now use for output.


sir, will this configuration work to your codelock?
It won't work with my existing code, which is written to have the keypad on a single port, but you could modify it.

BTW, don't forget, RA4 is an open collector output pin, it can only sink current not source it.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 05:41 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker