CE Home
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Electrical & Electronics Engineering
Notices


Advertisements
Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)
Old 27th April 2007, 12:58 PM
CE - Newbie
 
Join Date: 27th April 2007
I'm a Crazy Electronic etc Engineer
Posts: 3
Default Extend Parallel pins

Hi all,

With parallel port I could have only 8 parallel output (D0-D7). Is there any way so that, from this I could have about more than a hundred parallel output?

Or do you know any circuit allow this task? In condition, control from PC.
I gues some logic combination could allow me to do this.

Many thanks !!
nobtiba is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)
Old 27th April 2007, 07:38 PM
CE - Newbie
 
Join Date: 18th March 2007
I'm a Crazy Electrical Engineer
Posts: 5
Default Re: Extend Parallel pins

i am not very much aware of the practicality of the solution which i am proposing here but the following ll work with few comb~ ckts

the soultion is , control the 8 parallel o/p using a decoder (8 to 256) so u get 256 o/p of which u can make use of the 100 o/p of ur need....
wilsonbat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)
Old 28th April 2007, 06:23 AM
CE - Newbie
 
RachaelP's Avatar
 
Join Date: 19th March 2007
I'm a Crazy Electronic Engineer
Posts: 9
Default Re: Extend Parallel pins

Another solution would be to use an IO port expander such as the MAX7301 from Maxim. This has a simple 4-wire SPI interface which you can control from the parallel port. The MAX7301 gives 28 IO pins but as its standard SPI they can be daisy chained (the DO of the first device in the chain to the DI of the next device and so on) to give the required number of IO.

Rach
RachaelP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)
Old 30th April 2007, 08:30 AM
CE - Newbie
 
Join Date: 27th April 2007
I'm a Crazy Electronic etc Engineer
Posts: 3
Default Re: Extend Parallel pins

Thank you for the suggestions. The decoder could be great, I am not sure could I use Max7301 since I need about more than a hundred output pins but it gives less.
Then I may have to use about 8 of "4 to 16 line" decoders like HC4514. It will make the circuit become quite dense. Can you recommend any 7 to 128 or 8 to 256 decoder?

Thanks alot !
nobtiba is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)
Old 1st May 2007, 12:08 AM
CE - Newbie
 
RachaelP's Avatar
 
Join Date: 19th March 2007
I'm a Crazy Electronic Engineer
Posts: 9
Default Re: Extend Parallel pins

Hi,

You wouldn't need 8 of the "4 to 16 line" decoders. You can do what you require with just 4 of the MAX7301 devices. The interface is SPI and can be daisychained to give you control of multiple devices in the chain.

So if you have 4 of the MAX7301 you could connect them as follows:

Parallel pin D0 connects to the SCLK pin of all 4 MAX7301 devices
Parallel pin D1 connects to the nCS pin of all 4 MAX7301 devices
Parallel pin D2 connects to DIN of the first MAX7301
Parallel pin D3 connects to DOUT of the last MAX7301

DOUT of the first MAX7301 connects to DIN of the second MAX7301
DOUT of the second MAX7301 connects to DIN of the third MAX7301
DOUT of the third MAX7301 connects to DIN of the fourth MAX7301

You can then communicate with all 4 of the MAX7301 devices over the daisychianed SPI interface. This will give you a total of 112 possible I/O's.

The only thing you might need to do in addition is insert a tri-state buffer between the final DOUT and parallel pin D3 as the MAX7301 is a little bit naughty and doesn't tri-state its DOUT pin. This buffer would then need to be enabled when the read strobe from the parallel port was active.

Let me know if you need any more info on how to drive the MAX7301.

Rach

Last edited by RachaelP; 1st May 2007 at 02:39 AM.
RachaelP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)
Old 2nd May 2007, 08:14 AM
CE - Newbie
 
Join Date: 27th April 2007
I'm a Crazy Electronic etc Engineer
Posts: 3
Default Re: Extend Parallel pins

Hi Rach,

- Then I need to output clock signal from D0 to all MAX7301 ?
- I am not very sure how could I control 4 of them, for example, if I want 112 output logic level 1 then 0; or if I want some pins of the first, second and fourth MAX7301 ouput logic level 1 and the other pins ouput logic level 0 at the same time ?
- Compare to the "decoder solution", using MAX7301 could make "simpler circuit" but is this more expensive and what is the other benefits?

Thank you Rach !
nobtiba is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)
Old 3rd May 2007, 02:11 AM
CE - Editor
 
xheavenlyx's Avatar
 
Join Date: 2nd October 2006
Location: Dubai, UAE
I'm a Crazy Electronics Hacker & Engineer
Posts: 572
Default Re: Extend Parallel pins

RachaelP You seem very familier with PP intefacing. I am working on some related projects at themoment. I am interested on what all you have done till now. It would be nice if you can give a lil article on your experience and the difficulties that has come. Since as it is with any other field, practicle is very different from theory. For example we almost always forget the power requirements and surge protection etc (There was an high impedance IC just for switching which protects the PC Parallel Port, but cant recall the 74HCxx part!?).

Anyway, as for the post I havent used the MAX IC however it seems to be the bast choice here because its specificly used for Port I/O. And moreover, interfacing MUX/DeMUX can get cumber some!, the timing diagrams are not easy.
xheavenlyx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)
Old 10th May 2007, 05:07 AM
CE - Newbie
 
RachaelP's Avatar
 
Join Date: 19th March 2007
I'm a Crazy Electronic Engineer
Posts: 9
Default Re: Extend Parallel pins

Hi,

Sorry for the delay in responding but it has been a bank holiday weekend over here and I have been away.

Quote:
Originally Posted by nobtiba View Post
Hi Rach,

- Then I need to output clock signal from D0 to all MAX7301 ?
- I am not very sure how could I control 4 of them, for example, if I want 112 output logic level 1 then 0; or if I want some pins of the first, second and fourth MAX7301 ouput logic level 1 and the other pins ouput logic level 0 at the same time ?
- Compare to the "decoder solution", using MAX7301 could make "simpler circuit" but is this more expensive and what is the other benefits?

Thank you Rach !
Yes in the solution above you need to output the clock on D0.

Controlling all 4 of them is relatively easy. The port expanders take 16-bit commands sent to them serially. The commands can be sent to control single IO bits or groups of IO bits in each of the expanders. Null commands can also be sent so expanders can be individually accessed without affecting others in the chain.

The MAX7301 makes a simpler circuit and they are relatively inexpensive. I havent worked out the cost for each solution but I suspect there isnt much difference between the two. The other benefit of the port expander is versatility. Maxim website says: "Each port can be configured either as a push-pull logic output capable of sinking 10mA and sourcing 4.5mA, or a Schmitt logic input with optional internal pullup. Seven ports feature configurable transition detection logic, which generates an interrupt upon change of port logic level."

Quote:
Originally Posted by xheavenlyx View Post
RachaelP You seem very familier with PP intefacing. I am working on some related projects at themoment. I am interested on what all you have done till now. It would be nice if you can give a lil article on your experience and the difficulties that has come. Since as it is with any other field, practicle is very different from theory. For example we almost always forget the power requirements and surge protection etc (There was an high impedance IC just for switching which protects the PC Parallel Port, but cant recall the 74HCxx part!?).

Anyway, as for the post I havent used the MAX IC however it seems to be the bast choice here because its specificly used for Port I/O. And moreover, interfacing MUX/DeMUX can get cumber some!, the timing diagrams are not easy.
I've done a little bit with PP interfacing over the years but nothing recently. My main experiences recently are PowerPC processor board design, high speed busses such as DDR, RapidIO, PCI-X and loads of FPGA design.

You are right, learning theory is one thing but there is no substitute for practical experience. My top tip for getting a design to work is dont neglect the basics: Power supplies/grounding and decoupling, interface levels and drive strengths (both externally and between components), clocks an resets, signal termination.

Rach
RachaelP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)
Old 14th May 2007, 10:32 PM
CE - Editor
 
xheavenlyx's Avatar
 
Join Date: 2nd October 2006
Location: Dubai, UAE
I'm a Crazy Electronics Hacker & Engineer
Posts: 572
Default Re: Extend Parallel pins

Wow, thanks for the intro. Ill get back to you soon after my exams. I am planning to do my thesis on Embeded systems. Mainly Running Open source OS's and then trying to interface fast FPGA's so as to get as close as possible to Real Time!

Regards
xheavenlyx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 07:13 PM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.

Advertisements