Read and write data to the parallel port