Converting serial to parallel?
Vaati
Posts: 712
To convert serial to parallel (i.e.; DB9 to DB25) will a shift register do the job?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
·
I want to be able to connect a parallel device, such as a parallel programmer, to my USB to serial cable that I use to program the BS2 and my PropStick Kit. Will a shift register do the job for that, or will I need something else?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
For the application that I have in mind, I will end up having to write the software.
However, I would like this to be a generic serial to parallel converter, and I have some software that I could test it with properly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
If I did it I would just use something like a PIC chip because they run at 5V and usually have a UART for the serial connection, in fact some of them will connect directly to USB as a serial device. But use resistors on all the I/O pins as these could be connected anywhere, I would use any value between 100R and 1K (or more) depending upon what it is you are actually connecting to. If you want to be able to do synchronous reads and writes across all the pins then usually a 32-bit CPU can at least read and write simultaneously read or write 32-bits simultaneously. An 8-bit CPU would ripple through the 8-bit ports one at a time which may causes problems with the target device. Using latched shift registers for inputs and outputs will get around this problem but then the pins aren't programmable as input or output.
Bear in mind, that the software for a serial to parallel converter is a bit like a blinking led demo, there's nothing to it really so it's not really going to need test software. Serial in, parallel out, Parallel in, serial out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
Post Edited (Peter Jakacki) : 3/18/2010 11:49:17 PM GMT
I still haven't learned assembly, or C++. With pre-calculus homework all the time, all my projects will probably have to wait until summer...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
(no longer new) SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
I've gone the other way around, converting Parallel to Serial via discrete components, but not from Serial to Parallel.
Attached is a schematic of Parallel to Serial, perhaps that will provide an insight to the direction you need.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.