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

Keypad miniBoard

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



Joined: 24 Apr 2010
Posts: 75
Location: Islamabad

View user's profile Send private message Send e-mail

Keypad miniBoard
PostPosted: Wed Jun 30, 2010 10:20 am     Reply with quote

hi I am new in CCS forum and with PIC controllers and am making a PIC16F877A Board.
I have connect 2x16 LCD, Temp scn, External EEPROM, 3310 Graphic LCD, 3 Buttons, and 5 LEDs.
Now I want to connect 4x4 Keypad with it, but available Pins are not enough.
So I have decided to connect a separate PIC16F876A and connect keypad with it. This secondary controller will send an ASCII code to PIC16F877A so only one PIN of my primary controller will be utilized. But I don't know how it will receives ASCII and how 16F876A will transmit.
I will be thankful if any one will help me with this.
_________________
...
Bilal



Joined: 24 Apr 2010
Posts: 75
Location: Islamabad

View user's profile Send private message Send e-mail

...
PostPosted: Wed Jun 30, 2010 10:26 am     Reply with quote

im using CCS_PCWHD_v.4.093
_________________
...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 30, 2010 2:25 pm     Reply with quote

Use the hardware UART on the 16F876A to send the ASCII bytes to
the hardware UART on the 16F877A. See the #use rs232() statement
in the CCS compiler manual, and look at examples in this forum.
Bilal



Joined: 24 Apr 2010
Posts: 75
Location: Islamabad

View user's profile Send private message Send e-mail

...
PostPosted: Thu Jul 01, 2010 2:26 am     Reply with quote

will it be the same how my EEPROM works or it is different protocol???
_________________
...
Bilal



Joined: 24 Apr 2010
Posts: 75
Location: Islamabad

View user's profile Send private message Send e-mail

..
PostPosted: Thu Jul 01, 2010 2:30 am     Reply with quote

My RC6/Tx and RC7/Rx of PIC16f877A are already be used with other devices.
Maybe it will not work.
_________________
...
Bilal



Joined: 24 Apr 2010
Posts: 75
Location: Islamabad

View user's profile Send private message Send e-mail

...
PostPosted: Fri Jul 02, 2010 8:37 am     Reply with quote

Is there any other solution??
I will be very thankful
_________________
...
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Jul 02, 2010 9:10 am     Reply with quote

If your PIC16f877A is only handling a keyboard maybe you can use a software UART on it? That can be done on any pins you choose.
_________________
The search for better is endless. Instead simply find very good and get the job done.
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Tue Jul 06, 2010 3:52 pm     Reply with quote

One way to save pins is to use 74HC595 serial to parallel converter chips for outgoing data, and 74HC165 parallel to serial chips for inputs. You can connect them to the SPI port and have as many interface lines as you want, with only 4 processor pins needed.
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