摘要 |
PURPOSE:To miniaturize a device such as MODEM and to make it inexpensive by attaining asynchronizing/synchronizing data conversion by interruption and including the said function to an MPU for modulation such as MODEM. CONSTITUTION:The asynchronizing data, i.e., start-stop synchronizing data is formed by a terminal device 1 as shown in a start-stop synchronizing data train 2 and outputted in time series. This data train 2 is connected to an external interruption B of the MPU 3 so as to detect a start bit. Then, a time of 1-bit length is set to a timer 4 and the data is sampled similarly and stored in a buffer register 5. This operation is repeated and when the data is sampled until a stop bit, this data is transferred in an output register 6 in parallel. Further, the external interruption B is enabled so as to detect the start bit. The start-stop synchronizing data is outputted from the output register 6 sequentially by an external interruption A. Logical value ''1'' is written in an idle bit of the output register 6 produced as each shift as shown in Figs. (b)-(g) at this output. |