hii all,
I am using tm4c129 controller i want to drive parallel port printer through my controller. Which hardware interfacing or IC should i use in between micro controller and printer.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hii all,
I am using tm4c129 controller i want to drive parallel port printer through my controller. Which hardware interfacing or IC should i use in between micro controller and printer.
sagar salunkhe said:I want to drive parallel port printer through my controller.
Are ALL parallel printer ports (exactly) the same? Some specific details regarding your device would prove useful - would they not?
In general - your dedication of one full (8 bit) parallel MCU port and one half (4 bit) parallel MCU port should prove sufficient.
Unknown is the voltage level which the printer requires - note that your MCU can output (only) up to 3V3. (which I expect to be insufficient) A safe way to manage this is via your use of voltage buffer/translator ICs - which receive the MCU's 3V3 and then "translate up" to a higher voltage. (ideally one which matches the requirement of your printer) This voltage translation is likely required at (both) the printer's data bus AND the control and strobe signals.
Be sure to tie the MCU and printer's "signal" ground together so that such "common frame of reference exists."
Re: "Type of Interface:" Poster DID specify parallel port printer. Normal/customary in such cases would be (additional) strobe & (maybe) control bits - which also must undergo voltage translation to appropriate levels...
Employing MCU's UART (to achieve your proposed serial data) is likely to (still) require voltage translation - this time up-level converting the (now added) "Serial In - Parallel Out" device's levels to those compatible w/the printer. I stand by the use of MCU's parallel port (+ half additional port) - both followed by V translators - as BEST MEANS to achieve poster's objective... (i.e. simpler & more compact)
Where the UART (serial) suggestion (really) breaks down is the (almost certain) requirement for the parallel data port's requiring, "Strobing & Control Signals" - both difficult to "tease out" from a single, 8 bit UART! Q.E.D.
Hi,
Sagar, I do not understand why are you struggling with the parallel interface while your printer has a full speed USB 2.0 interface available and that suppose no special hardware to be added.
Also, what about some software - do you have all details to implement a suitable driver ?
Note also the parallel interface inside the printer is a bi-directional one, meanning you have more problems to solve...
Note also the parallel interface inside the printer is a bi-directional one, meanning you have more problems to solve...
He might be aiming for the simpler "centronics" port, which has just unidirectional data flow, not the EPP and ECP modes of IEEE1284.
And, judging by the size of the USB standard documents, I would avoid USB if not necessary (KISS), or I have a known, stable implementation at hand.
Hello Sagar,
I am pleased that you were able to get to a solution. Hopefully, the inputs of the community members were beneficial. This case is one which helps reinforce the benefit of this community in that those of us at TI are not necessarily experts in all potential use cases of the uC; but, within this community, there most certainly will be someone or even multiple someones that have said experience and can offer some guidance and suggestions.
Cheers to all that pitch in on a daily, weekly, or even occasional help on this forum. It is greatly appreciated!!