Anybody can provide pointers and guidelines on how to go about
interfacing Pics to serial / parallel port printers. Any application
note or site with notes, code etc. Sure its been done a million times
Thanks very much
Biswanath Dutta wrote:
> Hi Piclisters,
> Anybody can provide pointers and guidelines on how to go about
> interfacing Pics to serial / parallel port printers. Any application
> note or site with notes, code etc. Sure its been done a million times
Search altavista for 'The Hardware Book' ! Look at Connector
(Whow: Amstrad CPC6128 Tape Connector... ;-)
Unfortunately they don't have the pinout for the Sony MZ-R50 MD-Walkman
remote - I have a spare one here I could perhaps use to control some PIC
application. comes even with display... did anyone of you hack it?
Please look at page no. 73 of uPIC book ( App idea no. 16 ). This shows
the minimum hardware interface required. For printing, dump ASCII
characters into the data lines and strobe it. Any printer manual will
give you the command and timing details.
Biswanath Dutta wrote:
For Embedded Controls Solutions and Custom Designs
CHIP TECHNOLOGIES - Member, Microchip Consultant Program
Email : vsnl.comchiptech
Webpage : http://business.vsnl.com/chiptech ( updated 16th Feb 1999 )
Dr. Imre Bartfai
the problem is a bit more complicated.
1. Before sending data ensure the printer is ready. In my application I
use a separate PIC which reads all status lines and evaluates them into a
single -READY signal. (This PIC also drives a 7-segment display to show
what is going on.) May be, the not ready status is transient so some
limited waiting is required before giving alarm.
2. I write the code to data lines and make a strobe pulse as Pailoor
3. Now I wait for the ACK pulse. Here is also some waiting loop. However,
here is a problem. An ACK pulse maybe incredible short (< 1 usec). There
are more solutions:
- use as interrupt (maybe it won't work)
- drive the TMR0 with it
- use external hardware
I cheese the latter method: I use a flip-flop which is cleared before
Now the whole stuff works.
The not-ready state may be as long as some hundred msec I found ( :-( )
I hope this helps.
On Mon, 22 Mar 1999, Ravi Pailoor wrote:
Thanks to evryone who responded.
Dr. Imre Bartfai wrote:
More... (looser matching)
- Last day of these posts
- In 1999
, 2000 only
- New search...