Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/19/00 05:14
Read: times


 
#7409 - RE: LCD datalines
You have to Disable the parallel port first before you can read the 8 data input bits. . The below code will do that.
Regards,
Charles Bannister

outp( pdata, 0xff );
// set LPTx port data high
outp( pctrl, 0x24 );
// disable LPTx port data driver
outp( pctrl, 0x26 );
// enable read data buffer
delay(10) );
// delay 10 mS
tmp = inp( pdata );
// get data
outp( pctrl, 0x04 );
// control signals inactive
outp( pdata, 0 );



List of 4 messages in thread
TopicAuthorDate
LCD datalines            01/01/70 00:00      
RE: LCD datalines            01/01/70 00:00      
RE: LCD datalines            01/01/70 00:00      
RE: LCD datalines            01/01/70 00:00      

Back to Subject List