论文部分内容阅读
在使用TRS-80机研制专用仪器中,可采用BASIC Ⅱ语言对外设直接作数据输入,供要求输入数据速度不太高的场合采用,这样可以充分利用TRS-80微型机已经固化的BASIC语言,将使程序简化并缩短研制周期。这种方法是采用INP(n)作为直接输入语句,当TRS-80运行INP(n)语句时,将在地址总线上输出一个外设地址码,通过译码电路得到一个选片讯号。同时TRS-80又输出一个讯号,并作为另一个选片讯号。将此两个选片讯号接到所用外设上,即可以将该外设的一个字节数据送入TRS-80机内。
In the use of TRS-80 machine for the development of special equipment, the use of BASIC Ⅱ language peripherals for direct data input for the requirements of input data speed is not too high occasions, so you can take full advantage of the TRS-80 microcomputer has cured BASIC language, Will simplify the process and shorten the development cycle. This method uses INP (n) as the direct input statement. When TRS-80 runs INP (n), a peripheral address code is output on the address bus and a selection signal is obtained by the decoding circuit. At the same time TRS-80 and output a signal, and as another selection signal. By connecting the two patch signals to the peripherals used, the one-byte data of the peripheral can be sent to the TRS-80.