Flowcharts shown in FIG. 5 and FIG. 6 are an example in which reading and writing data are carried out byte by byte by the above-mentioned operation of accessing the ports that data is written into the data register and the control register of the personal computer and data is read from the status register.