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

Status
Not open for further replies.

alec82

Advanced Member level 4
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:


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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…