Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[MOVED]Serial to parallel printer interface

Status
Not open for further replies.

new_emerald

Junior Member level 1
Joined
Feb 24, 2012
Messages
19
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Location
india
Activity points
1,379
Hi Everyone,

we have to connect i/p -> any uc -> o/p device as a printer.

IF we want to connect printer it required printer drivers.But Dot matrix printer can control by the MS-DOS.

Now The question is : Can any one suggest the uc/any intrefaceing ic which having compatibility to connect the printer.

Thanking you in advance.

yugandhara
 

Re: Serial to parallel printer interface

Use a digital I/O port on the micro and emulate the printer commands
 

Re: Serial to parallel printer interface

Can you explain it?
 

Re: Serial to parallel printer interface

Use digital I/O port pins for Strobe, d0-d7,Ack,Select,Linefeed and connect the grounds
 

Re: Serial to parallel printer interface

and then how to emulate this.
 

Re: Serial to parallel printer interface

You can probably get away with just using the databus, strobe and busy lines (and ground of course). I would highly recommend buffering the interface to protect the PIC.

Simply:

  • Make STROBE high - this indicates that the MCU wants to send data
  • Wait for BUSY to go low - the printer is then ready to receive data
  • Put ASCII code on the databus
  • Make STROBE low - tells the printer to load the new data
  • Wait for BUSY to go high - the printer has then taken the data and is working on it
  • Repeat from start until all data sent

Also, see some useful info here:

**broken link removed**
 

Now we are using your high print 4915 pass book printer for our applications.

Now we have a specific requirement as follows.
I want to give print command to this printer via RS-232 port through a microcontroller or say a board but not PC.
Can I give commands directly to the printer via my own hardware without the PC.

---------- Post added at 13:09 ---------- Previous post was at 13:04 ----------

Any printer can ok for communication but it should send data through serial communication
 

I'm just writing the SW for emulating the parallel printer interface, have to exchange one parallel printer with serial one. It's pretty trivial, as FoxyRick wrote. besides data, only two handshake lines BUSY and STROBE.

It goes like this:
1) upon receiving valid data from the system that wants to print, on asserted STROBE signal, assert BUSY to the printing system
2) send received data serially to the printer
3) after data is sent deassert BUSY signal
4) GoTo 1) :-D
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top