Hello, I have interfaced a centronics dot matrix printer with the 8051 controller. I am able to print the text on it. Now I have a application in which I have to print a graph using its graphics mode on to it. How can we print a graph using the dot matrix printer through a microcontroller. Also, what is the ASCII code for the form feed (FF) character? Regards, Mohit
Printing graphics is matter of the printer. Usually a printer has some sort of ESC sequences that will be used to send commands to that printer, like switching between text and graphics mode. You should refer to the software manual of the printer.
Hi, By ESC sequences, what exactly is meant? suppose the manual says that to reset the printer, the sequence is ESC @ then which codes are to be sent. What is the ascii code for ESC that is to be sent? Mohit
ESC is an ASCII character. The code for it is 27(decimal) or 1B(hex). @ is also an ASCII character. The code for it is 64(decimal) or 40(hex). Jon
View all questions in Keil forum