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