Hello Irmus,
If you use something like a 16f648a chip, using TRISB
in Psuedo Code, it would be simplified as such:
TRISB=%00000000 (assigns all 8 pins to be output)
OutputVariable var byte
Output=(whatever ASCII character you want)
Portb=Output
Toggle Send/Receive line on your Parallel port.
Output=(Carriage return)
Toggle Send/Receive lin on your parallel Port.
End.
Assign Portb.0 to the Centronics Port 0,
and do this with the rest of the 7 pins.
The Send/Receive line can be something like Porta.0 on your 16f648a.
I still do not know what you are trying to accomplish. If you can send some of your Code, some folks can take a look at it.
If you have never programmed with a PIC, the I would first suggest getting your chip to just blink a LED on and off every second. Then get the chip to "count" in binary on 8 LED's. Then try something a little more...Like the above "Psuedo" code. Then you can add a "Receive" to the project, and "Transmit" that receive out to the Printer.
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks