Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

interface 8051 with thermal printer

Status
Not open for further replies.

shoaib khan lodhi

Newbie level 3
Joined
Sep 7, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
islamabad
Activity points
1,325
i have problem interfacing parallel db25 thermal printer with 8051 plz guide me with code and circuit diagram. i am using compatibility mode for parallel communication
 

thx for reply but mostly the links are using serial communication i want to communicate on parallel port need help regarding device driver of thermal printer cbm-1000 how it works and which signals need to operate printer
 

for parallel interface you will need the following signals:

8 - data lines
3 - control lines(strobe, busy, init)

Printer can be initilized by making init low

Here is the code for printing
void print(unsigned char c)
{
while(busy);
strobe=0;
_nop_();
_nop_();
_nop_();
datap=c;
_nop_();
_nop_();
_nop_();
strobe=1;
}

where datap is the data port where the data lines are connected
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top