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