Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
but i am using serial interface of 89c51...baghery said:hi,
u must used the TWO PORT of 89c52 :
- Data port for transmit data to printer
- status port for checkback signal (printer status)
with data port send data (characters) to printer by ASCII format.for send command (example :return to next line , ...) used ASCII code (/r=13).
NOTE: befor send data by status port check printer status.
u must used DB25 Connector.
thankuIanP said:This will be a good starting point:
"Serial Interface Module For EPSON Mini-Printers"
**broken link removed**
I don't know what printer are you going to interface to, but without its detailed manual you will face major problems in writing "driver" for that printer ..
Maybe you should use standard set of ASCII characters, connect your printer to a PC via serial port and in the Hyperterminal mode test how that printer "reacts" to certain ASCII characters , what it sends as handshakes and so on ..
Regards,
IanP
Maybe you should use standard set of ASCII characters, connect your printer to a PC via serial port and in the Hyperterminal mode test how that printer "reacts" to certain ASCII characters ..
...budhy said:Can you mention type and manufacture of your serial printer ypu plan to use?
ts Epson LX 300+ a dotmatrix printer that support parrallel and serial interface...budhy said:Can you mention type and manufacture of your serial printer ypu plan to use?
ts Epson LX 300+ a dotmatrix printer that support parrallel and serial interface...
SerialOut:
JNB TI,SerialOut
CLR TI
MOV SBUF,A // Acc hold character to print
RET
void putchar(char A)
{
while (!T1);
T1 = 0;
SBUF = A;
}
Thank ubudhy said:Signal Ground is pin 7 on LX300+ Serial Connector
IanP said:That what I suggested in my previous post ..
Maybe you should use standard set of ASCII characters, connect your printer to a PC via serial port and in the Hyperterminal mode test how that printer "reacts" to certain ASCII characters ..
Connect that printer to your PC and open Hyperterminal ..
Type "a" .. check if printer prints "a" ..
Test all other ASCII characters and controls and in the same time record what printer sends back ..
As far as ASCII controls are concerned you will send them by pressing CRT+letter ..
Here are the codes:
**broken link removed**
Regards,
IanP
is any body have new idea pls post..steveo said:Make a handshacking like the one attached. Best on the conector side. You might only need to connect the micro to the "Rx" pin to the printer.