×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Parallel port to SPI?

Parallel port to SPI?

Parallel port to SPI?

(OP)
I want to be able to use PC's parallel port to communicate with SPI interface of microcontrollers. I searched the web and could not find a very good solution. It could be a off-the-shelf small board with software.

Anyone can help me on this?

Thanks in advance.

RE: Parallel port to SPI?

(OP)
From my understanding, this board you mentioned is a ISA board providing parallel port. What I need is a small board connected to my PC's parallel port providing SPI interface.

RE: Parallel port to SPI?

try www.google.com and do a search for 'spi interface'.  I found a couple that have some source code and or schematics.  Most I've seen are serial port driven.

RE: Parallel port to SPI?

i have done 1 project using parallel port to mcu spi line...

i use visual basic....but other also can...

what you have ti do is..

1. assign the parallel port with spi specs..eg:
    pin 2(D0) = reset
    pin 3(D1) = mosi
    pin 4 (D2)= sck
    pin x (s0)= miso -->cannot remamber the status port:parallel port input by defaut.

then..

2.write a program to send and receive from spi line...bit by bit.

eg:  
 
    for i=0 to 32
        outport (data,binary:00000010);sck = 0
        outport (data,binary:00000010);sck = 1
         
        miso =inport (status)and binary:00000001
    next i

but before you can transmit....must have a function to convert data you have into 8 bit parallel port,bit by bit...

RE: Parallel port to SPI?

you could just use a paralell to serial converter such as what you can get from tandy few dollars and you can use the 5v power rail in your computer for the supply, reduces curcuitry, you say serial input in the question so i presume you only want to go from the computer to your m/c if you want bi-directional communication this complicates things lots, it would be eisier to go and buy a serial card for your pc, you can get pci cards for about AU$60

RE: Parallel port to SPI?

I have just designed an SPI to Parallel interface board which i am about to make up in volume. Did you get anywhere finding anything suitable?

Richard

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources