CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Partly off topic : 4x4 keypad and Explorer16 demo board

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
MicFreak
Guest







Partly off topic : 4x4 keypad and Explorer16 demo board
PostPosted: Sun Aug 02, 2009 4:33 am     Reply with quote

Can some one please help me how to HW wire this keypad:
http://tinypic.com/view.php?pic=9jen2o&s=3

This is the schematic and this is how my HW keypad looks like.
I have to connect this to my Explorer16 db.

5V goes directly to 5V but what about rows and columns?
Can I connect them directly to pin of the chip ( the pins on the J5 explorer board )?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Aug 02, 2009 2:46 pm     Reply with quote

Study the Explorer16 Development Board User's Guide:
http://ww1.microchip.com/downloads/en/DeviceDoc/Explorer%2016%20User%20Guide%2051589a.pdf
Locate 7 pins that are free for use. Most of the pins seem to be already
connected to some external device (LCD, CAN bus, LEDs, switches, etc).
Try to find some free pins.
MicFreak
Guest







PostPosted: Mon Aug 03, 2009 11:13 am     Reply with quote

I have free pins on demo board but my problem is wiring keypad to demo board. Can I connect my keypad on the way that is presented on the schematics ? 5V to 5V and other keypad pins directly to chip pins ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Aug 03, 2009 11:15 am     Reply with quote

Post a list of your proposed connections between the keypad pins and
the PIC pins.
Guest








PostPosted: Tue Aug 04, 2009 4:07 am     Reply with quote

On my prototype I will have whole PORTG and PORTC "free".
Regarding the explorer demo board I would like to use the same ports ( G and C ). RC12 - 15 and G 1 - 4.

Can I solder it on this way ?
MicFreak
Guest







PostPosted: Sat Sep 12, 2009 1:34 pm     Reply with quote

Hi guys !

I finally get the working keypad and I connected it to demo board.
What I want to learn is how to use ICD2 debugger to see if the keypads are registered. This is just for me to learn...

I know I have to set breakpoints but I don't know how to "watch" if the key was pressed or not.

I just want to understand how to use debugger for such cases.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Sep 12, 2009 3:10 pm     Reply with quote

Here is how to use a Watch Window with the ICD2 debugger in MPLAB:
http://www.ccsinfo.com/forum/viewtopic.php?t=23151&start=9
MicFreak
Guest







PostPosted: Sun Sep 13, 2009 5:02 am     Reply with quote

Than you for your answer ! This is what i need.

I removed the resistors from the keypad and connected the keypad pins directly to picmicro. Because i use pic24fjxxx i need to know how what drop down values should i set for "watching".

I cant use CCP_1.
Guest








PostPosted: Sun Sep 13, 2009 5:07 am     Reply with quote

Ups sorry, i was thinking on the left top drop down menu...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group