free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Rickey's World :: Discussion Forums :: Discuss and Learn :: E-books and Tutorials :: PIC
 
<< Previous thread | Next thread >>
PIC nid extent port!
Moderators: Ajay Bhargav, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph, ExperimenterUK, DavesGarage
Author Post
jovenlim89
Wed Sep 02 2009, 07:23PM

 User Offline
Registered Member #21860
Joined: Tue Sep 01 2009, 09:53PM

Posts: 11
Thanked 0 times in 0 posts
HI.. I m using PIC16F877A..
But I nid more port for my project..I was suggest that using shift register and latch..But I dunno how to do it? Can any1 send me the circuit pls...:-|



Hope u all can help me~Thx..
Back to top

Chiru
Wed Sep 02 2009, 08:55PM
 User Offline
Registered Member #6023
Joined: Tue Feb 12 2008, 10:15PM

Posts: 56
Thanked 6 times in 6 posts
One way of extending port is by using the 82C55. Download datasheet for detailed information, keep in mind the speed limit. Ofcourse you need to write a code for the interface.:bye
Back to top


This post has been thanked 1 time
jovenlim89
Wed Sep 02 2009, 09:06PM

 User Offline
Registered Member #21860
Joined: Tue Sep 01 2009, 09:53PM

Posts: 11
Thanked 0 times in 0 posts
Thx so much... The code that I need to write is at PIC or the chip u mention js now? Hope can get more tips from u..

Hope u all can help me~Thx..
Back to top

ExperimenterUK
Thu Sep 03 2009, 09:04AM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 1247
Thanked 199 times in 198 posts
Given the cost of chips these days I would consider adding another PIC as a slave.

Use a high speed serial link to read and update the ports on the slave PIC.
How many more ports do you need ?
Back to top


This post has been thanked 1 time
jovenlim89
Sat Sep 05 2009, 02:40AM

 User Offline
Registered Member #21860
Joined: Tue Sep 01 2009, 09:53PM

Posts: 11
Thanked 0 times in 0 posts
lolx..Thanks...I m oso thinking of it... I need about 39 port for my project..Do you think adding another PIC is the best way? And what do u mean by use a high speed serial link?

Hope u all can help me~Thx..
Back to top

Ajay Bhargav
Sat Sep 05 2009, 04:10AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 7484
Thanked 1324 times in 1248 posts
high speed serial link means, serial communication over higher speed/data rate. you ca use either uart on higher baud or SPI at higher data rate.

using extra controller is good, but you should also make sure it matches your project requirement. the shift register latch (CD4094) is commonly used for port expanding coz it need only 3 pins to make an 8 bit port. and no extra pins needed if you want to go further expansion of ports.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


This post has been thanked 1 time
jovenlim89
Sat Sep 05 2009, 06:58AM

 User Offline
Registered Member #21860
Joined: Tue Sep 01 2009, 09:53PM

Posts: 11
Thanked 0 times in 0 posts
Thanks Ajay...If shift register latch just can expand 8 port by usinf 3 port, that mean that my PIC16F877A have 33port and use 3 for shift register latch.After expand, I will get 38 right? But if get 38 port, I still lack of 1 slot... Haha! Anyway..Thank you so much.. If you all got anymore way,please suggest here...Thanks~

Hope u all can help me~Thx..
Back to top

ExperimenterUK
Sat Sep 05 2009, 11:31AM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 1247
Thanked 199 times in 198 posts
By port do you mean 1 pin or 8 pins ?
What do you need the extra pins/ports for ?.
Back to top

jovenlim89
Sat Sep 05 2009, 08:47PM

 User Offline
Registered Member #21860
Joined: Tue Sep 01 2009, 09:53PM

Posts: 11
Thanked 0 times in 0 posts
Omg...I am so sorry...I have wrong typing.. It should be pin...To get extra pin, I should have extra port right? I am planing to use the extra pin to make my lcd display..And also my matrix keypad... Anyhow, thank you so much! I am still new, I will make mistake frequenly.So sorry ExperimenterUK..

Hope u all can help me~Thx..
Back to top

ExperimenterUK
Sun Sep 06 2009, 02:21PM
 User Offline
Registered Member #9602
Joined: Tue Aug 05 2008, 04:15PM

Posts: 1247
Thanked 199 times in 198 posts
jovenlim89 wrote ...

thank you so much! I am still new, I will make mistake frequenly.So sorry ExperimenterUK..

No problem

A port usually has 8 pins, so an extra port will give an extra 8 pins.
A simple shift register is probably be the best option, unless a slave PIC
would be useful to handle other functions of the project.

[ Edited Sun Sep 06 2009, 02:28PM ]
Back to top


This post has been thanked 1 time
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems