The following program is used to write data to a printer using the SPP protocol showed below void PutChar (unsigned cha...
The following program is used to write data to a printer using
the SPP protocol showed below.
void PutChar(unsigned char c)
{
while ((PTJ & 0x02) !=0 );
PTH = c;
PTJ = PTJ & ~0x01;
NOP;
//....
NOP;
PTJ = PTJ | 0x01;
}
How many NOP statements must be used to insure the
STRB# line is low for the minimum amount of time
if n = 0.5
?s and the processor takes
5clock tick(s) per instruction with a...