Parallel port: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Kenny (talk | contribs)
mNo edit summary
m fail.. hit enter instead of backspace :|
Line 63:
In Standard (or Compatibility) mode, data is sent to the connected device by writing the byte to the data port, then pulsing the STROBE signal. This pulse informs the device that data is ready to be read. The device will respond by raising its BUSY signal and then reading the data and performing some processing on it. Once this processing is complete, the device will lower the Busy signal and may raise a brief ACK signal to indicate that it has finished.
 
<source lang="c">
 
// Sends a byte to the printer
void Parallel_SendByte( unsigned char pData )
Line 91:
}
}
</source>
 
Timer_Delay() pauses processing for the specified number of milliseconds.
<tt>Timer_Delay()</tt> pauses processing for the specified number of milliseconds. <tt>Ports_In8()</tt> and <tt>Ports_Out8()</tt> read and write a byte of data to/from the IO port.
 
[[Category:Common Devices]]