Propeller To Printer Interfacing
idbruce
Posts: 6,197
I was wondering if anyone has attempted to control a printer or print data from the Propeller chip. If so, where can I find the information. Links please.
Bruce
Bruce
Comments
-Phil
A couple of questions:
1) USB, serial or parallel printer interface?
OK. That was only one question.
I think someone has interfaced a thermal printer - here are links a thread and a link to a .pdf about a BS2 interface.
And this thread on a parallel interface.
These should get you started.
Bruce
EDIT: Or any other uC capable of serial communication for that matter.
EDIT: In reality, the possibilties are practically endless, for instance, being able to write bitmaps, format drives, send email, serious computations, etc...
EDIT: Oh here is one for you, how about an entire hard drive for Propeller memory storage, or access to values and parameters.
There I go, just rambling again
It's great when one idea leads to a whole heap of others.
-Phil
For parallel should be simple set data strobe, delay. Rinse, repeat. Yikes, shades of cp/m days.......
Okay, okay, you got me there. Sure Eight Is Enough for me, and I think Dick Van Patten might also agree.
I know there's a thread about using this printer with a BS2 (I think I also posted some Prop code to the thread). I'm sure I could find the thread if anyone's interested.
Depending upon the application, I am sure one of those thermal printers would be quite nice. What is the maximum text length for that printer?
@prof_braino
Sounds very cool. What kind of programming language and application are you using on the PC side? Let me guess... PropForth?
@kwinn
When I initially started this thread, I was thinking of an old dot matrix line printer.
The thermal and dot matrix printers generally have an internal ASCII font with a few extra spaces or a special mode to allow for custom items such as company logos.
I cannot seem to find a way to use ASCII with my Fuji-Xerox DocuPrint 203A. It will initialize to other set ups and has both USB and parallel ports. It seems I can also have the Baud rate at 9600.
Seeing as the Propeller now supports GCC, it might be possible to overlay the Linux CUPS driver system to fully support a whole bunch of printers.
If you wanted to print a PDF or HTM you would likely need a formal driver setup.
http://en.wikipedia.org/wiki/IEEE_1284
This is the parallel port on the PC you are referring to? It did go through several permutations, starting as a Centronics printer port and ending up as a general purpose parallel I/O port. Most printers (all that I have encountered) had a Centronics compatible input port, and every one of them would print standard ascii characters as the default. You needed to send escape sequences to access special fonts or dot graphics.
Well, at least in theory my Fuji-Xerox DocuPrint 203 will print ASCII if I hook up to the Centronix port on it. I just cannot find anything in the documents to tell me so.
I guess you are saying that while the PC parallex port evolved, the ones on printers remained faithful to the original standard. I found some info that claims my printer uses the IEEE 1284 ports (maybe all of them).
Nothing in the Fuji-Xerox info about ESC sequences and ASCII fonts.
It would be interesting to enable the Propeller to print out Unicode and all 7000 Chinese characters, or Arabic, or Hindi.
It seems to me that only some modern printers have an ASCII or EBDIC mode - you have to be sure to buy the right one. Otherwise, the computer actually converts ASCII to appropriate code within the printer driver software.
This is certainly true for all of the dot matrix printers and most of the ink jet printers I have encountered. Once they switched over to USB though I think that changed. Low end printers used the processing power of the PC to simplify the printer electronics as much as possible.
The manuals that come with printers now do not have much information on the internal workings of the printer. It is pretty much assumed that they will be used with a PC and the provided print driver. I suppose the propeller could be programmed to control a printer to produce all those character sets, but it would not be simple, and would require external storage for the characters.
I have always used Okidata printers for this sort of requirement, and they still make good quality relatively inexpensive impact printers with both IEEE and USB interfaces. Optional RS232 and network adapters are also available.