JPS63156265A - Microcomputer - Google Patents
MicrocomputerInfo
- Publication number
- JPS63156265A JPS63156265A JP30280686A JP30280686A JPS63156265A JP S63156265 A JPS63156265 A JP S63156265A JP 30280686 A JP30280686 A JP 30280686A JP 30280686 A JP30280686 A JP 30280686A JP S63156265 A JPS63156265 A JP S63156265A
- Authority
- JP
- Japan
- Prior art keywords
- input
- output
- port
- signal
- mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はマイクロコンピュータに係り、とくに入出力機
器に対してデータの転送を行う入出力ポートを制御する
入出力手段に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer, and particularly to an input/output means for controlling an input/output port that transfers data to an input/output device.
半導体技術の進墨は電子計算機の軽薄短小化全促進し、
半導体集積回路を中核とするマイクロコンピュータを出
現させ友、マイクロコンピュータは通常他の入出力機器
とともに利用され、情報処理システムや通信システムの
ほか各種制御システムの構築に重要な役割を果している
。マイクロプロセッサと入出力機器を接続するには、デ
ータバスとデバイスとの間に位置してデータの転送を行
う入出力ポートがよく利用されている。そして、従来、
入出力の切換えが可能な入出力ポートを有するマイクロ
コンピュータにおいて、このポートを入力として使用す
る場合、入力信号を発生する回路の接続有無にかかわら
ず、入力モードにしていた。Shinboku, a semiconductor technology company, is promoting the miniaturization of electronic computers.
With the advent of microcomputers, which have semiconductor integrated circuits at their core, microcomputers are usually used in conjunction with other input/output devices and play an important role in the construction of information processing systems, communication systems, and various control systems. To connect a microprocessor and an input/output device, an input/output port that is located between a data bus and a device and transfers data is often used. And conventionally,
In a microcomputer that has an input/output port that can be switched between input and output, when this port is used as an input, it is set to input mode regardless of whether or not a circuit that generates an input signal is connected.
プログラムにより入出力の切換えが可能な従来(7)−
r(クロコンピユータは、入力信号を発生する回路が接
続されるときと接続されないときがある場合、接続され
ていがいとぎでもポートが入力モードになっているので
、とくに入力回路がMO8ICで構成されていると、信
号線にプルアップ抵抗等をつけなければ、入力回路が雑
音等を拾って破壊されるという事故の可能性があつ几。Conventional technology that allows input/output switching by program (7)-
r (For black computers, if the circuit that generates the input signal is sometimes connected and sometimes not, the port is in input mode even if it is connected, so it is especially important if the input circuit is composed of MO8IC. If you do not attach a pull-up resistor to the signal line, there is a high possibility that the input circuit will pick up noise and be destroyed.
プログラムにより入出力の切換えが可能な入出力ポート
に対する入力信号を発生する回路の接続有無を検出する
手段と、該入力信号を発生する回路の接続有無に応じて
該入出力ポートの入出力を切換える手段とを備えtもの
である。Means for detecting whether or not a circuit that generates an input signal is connected to an input/output port whose input/output can be switched by a program, and switching the input/output of the input/output port depending on whether or not the circuit that generates the input signal is connected. It is equipped with means.
入力ポートに対する入力信号を発生する回路が接続され
ていないことを検出すると、該入力ポートを出力モード
に切換える。When detecting that a circuit that generates an input signal for an input port is not connected, the input port is switched to an output mode.
本発明の実施例につき図面を参照して説明する。 Embodiments of the present invention will be described with reference to the drawings.
なお、各図面を通じて同一の要素には同一の符号を付す
。Note that the same elements are given the same reference numerals throughout the drawings.
第1図は本発明の一実施例を示すブロック図である。マ
イクロプロセッサ1#′i、バスにより、プログラムが
記憶されているリードオンリメモリ2やデータを一時的
に格納するランダムアクセスメモリ3が接続されるとと
もに、キーボードインターフェース4を介してキーボー
ド5が接続され、陰極線管表示装置インターフェース6
1に介シテ陰極線管表示装置7が接続され、さらに入出
カポ−4、
ト8お工びコネクタ9通してフロッピーディスクドライ
ブ10が接続されている。第2図はこの一実施例の要部
を説明する詳細ブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention. A read-only memory 2 in which programs are stored and a random access memory 3 in which data is temporarily stored are connected to the microprocessor 1#'i via a bus, and a keyboard 5 is connected via a keyboard interface 4. Cathode ray tube display interface 6
A cathode ray tube display device 7 is connected to the input/output port 1, and a floppy disk drive 10 is further connected to the input/output port 4, the input/output port 8, and the floppy disk drive 10 through the connector 9. FIG. 2 is a detailed block diagram illustrating the main parts of this embodiment.
入出力ポート8には、マイクロプロセッサ1に8ビツト
のデータバスD7〜DO,アドレスバスの下位2ピツ)
AL 、AO、チップ選択信号C8゜読出し信号RDお
Lび書込み信号WRが接続される。入出力ポート8は、
ま几、2組の8ビツトからなる入出力線ポートA、ポー
トBを有している。The input/output port 8 includes an 8-bit data bus D7 to DO and the lower 2 bits of the address bus for the microprocessor 1).
AL, AO, chip selection signal C8, read signal RD, and write signal WR are connected. The input/output port 8 is
It has two sets of 8-bit input/output lines, port A and port B.
そして、アドレス1A1−AO−0とし九とき、ポート
Aに対する入出力が行われ、Al−0,AO−1とし九
とき、ポートBに対する入出力が行われ、ま之、AI−
AO=1とし次とき、ポートA、ポートBをそれぞれ人
力ま几は出力に指定するコマンドが書込まれる。フロッ
ピーディスクドライブ10はコネクタ9tl−介して入
出力ポート8に接続され、ポート人は出力、ポートBf
i入力として用いられる。Then, when address 1A1-AO-0 is set to 9, input/output to port A is performed, and when address 1A1-AO-1 is set to 9, input/output to port B is performed, and then AI-
When AO is set to 1, a command is written to specify port A and port B as output manually. The floppy disk drive 10 is connected to the input/output port 8 through the connector 9tl, and the port is output and the port Bf
Used as i input.
ま几、ポートBの最下位ビットはフロッピーディスクド
ライブ10の内部で接地され、入出力ポート8の側では
電源電圧VCCにプルアップされている。なお、このビ
ットでフロッピーディスクドライブ10の接続有無を検
出する。The least significant bit of port B is grounded inside the floppy disk drive 10 and pulled up to the power supply voltage VCC on the input/output port 8 side. Note that this bit is used to detect whether or not the floppy disk drive 10 is connected.
第3図はこの一実施例の動作を説明するフローチャート
であり、第1図、第2図をも参照して作用を説明する。FIG. 3 is a flowchart illustrating the operation of this embodiment, and the operation will be explained with reference to FIGS. 1 and 2 as well.
リードオンリメモリ2に記憶されているプログラムによ
り各部が制御される。すなわち、ステップ1にてポート
Bを入力モードにセットし、ステップ2にてポートBか
ら入力信号を読込む。ステップ3にてポートBの最下位
ビットが11 ′であると検出されれば、フロッピーデ
ィスクドライブ10が接続されていないと判断し、10
′であると検出されれば接続されていると判断する。し
たがって、フロッピーディクドライブ10が接続されて
いなければ、ポートIl−出力モードに変更し、接続さ
れていれば、そのままの状態にしておく。Each part is controlled by a program stored in the read-only memory 2. That is, in step 1, port B is set to input mode, and in step 2, an input signal is read from port B. If it is detected in step 3 that the least significant bit of port B is 11', it is determined that the floppy disk drive 10 is not connected, and the floppy disk drive 10 is
′, it is determined that the connection is established. Therefore, if the floppy disk drive 10 is not connected, the mode is changed to port Il-output mode, and if it is connected, the mode is left unchanged.
本発明は、入出力ポートに対する入出力信号を発生する
回路の接続有無を検出する手段により、この接続有無に
応じて入出力ポートの入出力を切換えるようにし九ので
、信号碌に接続しなければならなかつ几プルアップ抵抗
等を省略することができるという効果がある。According to the present invention, the input/output of the input/output port is switched depending on the presence/absence of the connection by means of detecting the presence/absence of connection of a circuit that generates an input/output signal to the input/output port. This has the advantage that pull-up resistors and the like can be omitted.
第1図は本発明の一実施例を示すブロック図、第2図は
この一実施例の要部を説明する詳細ブロック図、第3図
はこの一実施例の動作を説明するフローチャートである
。
1・・・・マイクロプロセッサ、2・・・・リードオン
リメモリ、3・・・・ランダムアクセスメモリ、4・・
・自キーボードインターフェース、5・・・・キーボー
ド、6・・・・陰極線管表示装置インターフェース、T
・・・・陰極線管表示装置、8・・・・入出力ポート、
9・・・・コネクタ、10・・・・フロッピーディスク
ドライブ。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a detailed block diagram explaining the essential parts of this embodiment, and FIG. 3 is a flowchart explaining the operation of this embodiment. 1...Microprocessor, 2...Read-only memory, 3...Random access memory, 4...
・Self-keyboard interface, 5...Keyboard, 6...Cathode ray tube display device interface, T
... Cathode ray tube display device, 8 ... Input/output port,
9... Connector, 10... Floppy disk drive.
Claims (1)
設けられ、プログラムにより入出力の切換えが可能なマ
イクロコンピュータにおいて、該入出力ポートに対する
入力信号を発生する回路の接続有無を検出する手段と、 該入力信号を発生する回路の接続有無に応じて該入出力
ポートの入出力を切換える手段とを備えたことを特徴と
するマイクロコンピュータ。[Claims] In a microcomputer that is provided with an input/output port for transferring data to an input/output device and can be switched between input and output by a program, connection of a circuit that generates an input signal to the input/output port. A microcomputer comprising: means for detecting the presence or absence of the input signal; and means for switching the input/output of the input/output port depending on whether a circuit that generates the input signal is connected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP30280686A JPS63156265A (en) | 1986-12-20 | 1986-12-20 | Microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP30280686A JPS63156265A (en) | 1986-12-20 | 1986-12-20 | Microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63156265A true JPS63156265A (en) | 1988-06-29 |
Family
ID=17913330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP30280686A Pending JPS63156265A (en) | 1986-12-20 | 1986-12-20 | Microcomputer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63156265A (en) |
-
1986
- 1986-12-20 JP JP30280686A patent/JPS63156265A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6279060B1 (en) | Universal serial bus peripheral bridge simulates a device disconnect condition to a host when the device is in a not-ready condition to avoid wasting bus resources | |
US4497021A (en) | Microcomputer system operating in multiple modes | |
US6922194B2 (en) | Method and apparatus for maintaining load balance on a graphics bus when an upgrade device is installed | |
US5477172A (en) | Configurable input buffer dependent on supply voltage | |
JPS63156265A (en) | Microcomputer | |
JPS581451B2 (en) | Data transfer method | |
JP3483594B2 (en) | Semiconductor device | |
US6115773A (en) | Circuit for detecting improper bus termination on a SCSI bus | |
US6026469A (en) | Connected module type distinguishing apparatus and method | |
JPH0365745A (en) | Ic card | |
KR960001096B1 (en) | Booting drive system | |
JP3082367B2 (en) | Termination resistor circuit of transmission system of small computer system interface | |
KR950007107B1 (en) | Computer w/additional microprocessor | |
KR960009050Y1 (en) | Circuit for selecting floppy disk driver of computer | |
JP2555455B2 (en) | Digital information transmission device and information transmission bus system driving method | |
JP4904178B2 (en) | CF card interface circuit | |
JPH03216891A (en) | Semiconductor storage device | |
JP2000090043A (en) | Peripheral equipment detecting method of computer | |
JP2725680B2 (en) | Bus error detection circuit | |
JPS599306Y2 (en) | data processing equipment | |
JPH06167362A (en) | Master-slave switching type measuring instrument | |
JPS63140361A (en) | Data processor | |
KR20010063912A (en) | Apparatus for converting master and slave mode | |
JPS61231640A (en) | Memory controller | |
JPH0322126A (en) | Magnetic disk device |