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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…