You are on page 1of 1

// PROGRAMA 24

// TRANSMISION DE DATOS POR PUERTO SERIE

#include <conio.h>
#include <stdio.h>
#include <dos.h>
unsigned char k;
void main()
{
clrscr();
do {
k=getche();
printf ("%c",k);
outport(0x2f8,k);
delay(1);
outport(0x2f8,127);
}
while (k!=255);
}

You might also like