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.

help!connect mcu to printer and print data on it directly

Status
Not open for further replies.

alec82

Advanced Member level 4
Full Member level 1
Joined
Oct 25, 2006
Messages
118
Helped
12
Reputation
24
Reaction score
4
Trophy points
1,298
Activity points
1,874
mcu with printer

hi friends
i want to connect mcu to printer and print data on it directly.
anybody can help me on this prototocol? how i can print text or print graphic into the printer via parallel port?
best regards.
 

Re: help!connect mcu to printer and print data on it directl

8051 MCU - Centronic Parallel Printer thru PC Parallel Port Cable connection:
2_1166816059.gif


Driver sub-routine:
Code:
ACK    bit P3.2
BUSY   bit P3.3
STROBE bit P3.4
Data   EQU P1
;
OutPrinter:
     MOV  Data,A ; place data
     JB   BUSY,$ ; waiting until not BUSY
     CLR  STROBE ; '0' a moment to create '0' pulse
     SETB STROBE ; back to '1'
     RET
 

    alec82

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top