how to use parallel port for serial communication

10 pts.
Tags:
Linux
Networking
Parallel port
Serial ports
i want to use parallel port for spi. i dont know how to set phase and polarity for sclk.how to send and recieve data. do i need to shift data synchronized with the clock or the parallel port will do it automatically?

Software/Hardware used:
linux
ASKED: May 12, 2010  11:52 AM
UPDATED: May 13, 2010  10:41 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

EDITED VERSION: I missed the discussion point below at first, apologies Carlosdl.

You need additional hardware to do this. You cannot just configure a serial port for parallel communication or vice versa. AFAIK!!

If you buy a converter (search for one on google) then you can use a parallel printer on a serial port or vice versa, using printers as an example of course.

I could just be oversimplifying this though.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    I don't think that's something that could be answered in a couple of lines. You say that you don't know how to set phase and polarity for sclk. That sounds like if you already had a program to implement the complete SPI bus, and you just need to know how to configure the parameters for the clock signal, but I don't think that's the case (of course, I might be wrong). If you want to code the complete protocol, keep in mind that it is not going to be easy, and you are not easily going to find direct answers for such broad questions in forums or sites like this, unless you show some code and post specific questions about that code. Good luck.
    65,110 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following