JP2682838B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JP2682838B2
JP2682838B2 JP63109962A JP10996288A JP2682838B2 JP 2682838 B2 JP2682838 B2 JP 2682838B2 JP 63109962 A JP63109962 A JP 63109962A JP 10996288 A JP10996288 A JP 10996288A JP 2682838 B2 JP2682838 B2 JP 2682838B2
Authority
JP
Japan
Prior art keywords
transmission
procedure
processing circuit
reception
data
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.)
Expired - Fee Related
Application number
JP63109962A
Other languages
Japanese (ja)
Other versions
JPH01279656A (en
Inventor
久郎 佐々木
健司 宮崎
志朗 馬場
邦彦 中田
泰 赤尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63109962A priority Critical patent/JP2682838B2/en
Priority to KR1019890005905A priority patent/KR0148568B1/en
Publication of JPH01279656A publication Critical patent/JPH01279656A/en
Priority to US07/850,856 priority patent/US5226173A/en
Priority to US08/049,347 priority patent/US5361374A/en
Application granted granted Critical
Publication of JP2682838B2 publication Critical patent/JP2682838B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ処理さらにはシリアルコミュニケーシ
ョンの技術分野に関し、例えば、シリアルコミュニケー
ションインタフェースを備えたマイクロコンピュータに
適用して有効な技術に関するものである。
The present invention relates to the technical field of data processing and further to serial communication, for example, a technology effectively applied to a microcomputer equipped with a serial communication interface.

〔従来技術〕(Prior art)

マイクロコンピュータはソフトウェアによるプログラ
ミングで所望のシーケンシャル論理を構成することがで
きるため、広範な応用分野において高度の処理を可能と
し、さらには、データプロセッシングターミナルやモデ
ムなど外部との間でデータをビットシリアルにやりとり
可能とするシリアル入出力回路を備えるものがある。
Microcomputers can be programmed by software to form desired sequential logic, which enables high-level processing in a wide range of application fields. Furthermore, data can be bit serialized with external devices such as data processing terminals and modems. Some have a serial input / output circuit that enables communication.

ビットシリアルにデータをやりとりするためのデータ
伝送制御手順としては、ハイレベルデータリンク制御
(HDLC)手得順やバイナリシンクロナスコミュニケーシ
ョン(BSCもしくはBI−SYNC)方式、さらには調歩同期
手順などの各種伝送制御手順があるが、従来のマイクロ
コンピュータなどに搭載されているシリアル入出力回路
は前記データ伝送制御手順のうちの1つをサポートする
だけであり、例えば1984年インテル社発行のDistribute
d Control Modules Data Book」に記載されたi8044は、
HDLC手順をサポートするだけであった。
As data transmission control procedures for exchanging data in bit serial, high-level data link control (HDLC) convenience order, binary synchronous communication (BSC or BI-SYNC) method, and various transmission such as start-stop synchronization procedure Although there is a control procedure, a serial input / output circuit mounted on a conventional microcomputer or the like only supports one of the data transmission control procedures.
i8044 described in "d Control Modules Data Book"
It only supported the HDLC procedure.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

ところで、マイクロコンピュータのような論理LSIの
低価格化が進むにつれて、これらデバイスは多機能化さ
れる傾向にあり、特にシリアルインタフェース機能に着
目すると、前記3種類のデータ伝送制御手順が夫々の利
点に応じた広範な応用分野を持つ関係上、マイクロコン
ピュータなどのデータ処理用LSIに内蔵されるシリアル
入出力回路に対しても複数のデータ伝送制御手順をサポ
ートできるようにして、要求通りの多機能なシリアルコ
ミュニケーションを達成可能とする必要性を本発明者は
見出した。
By the way, as the price of logic LSI such as a microcomputer is reduced, these devices tend to be multi-functional. Especially, focusing on the serial interface function, the above-mentioned three types of data transmission control procedures have respective advantages. Since it has a wide range of application fields, it is possible to support multiple data transmission control procedures even for serial input / output circuits built into data processing LSIs such as microcomputers, and to achieve the required multifunctional functions. The present inventor has found the need for making serial communication achievable.

更にこの場合、製造上並びにび経済性の観点からLSI
チップは無制限に大きくすることができないため、複数
のデータ伝送制御手順をサポートする場合にはその論理
規模を最小限にすることができるという条件を満足させ
るという点についても考慮しなければならない。
Furthermore, in this case, from the viewpoint of manufacturing and economical efficiency, the LSI
Since the chip cannot be made unlimitedly large, it is necessary to consider that the condition that the logical scale can be minimized is satisfied when supporting multiple data transmission control procedures.

本発明の目的は、シリアルデータ伝送の要求に対して
多機能なシリアルコミュニケーションを行うことができ
るデータ処理装置を提供することにある。さらに本発明
の別の目的は、そのような要求を最小限の論理規模で実
現可能にしようとするものである。
An object of the present invention is to provide a data processing device capable of performing multifunctional serial communication in response to a request for serial data transmission. Yet another object of the present invention is to make such a requirement feasible with a minimum logical scale.

本発明の前記並びにそのほかの目的と新規な特徴は、
本明細書の記述及び添付図面から明らかになるであろ
う。
The above and other objects and novel features of the present invention are as follows.
It will be apparent from the description of this specification and the accompanying drawings.

〔課題を解決するための手段〕[Means for solving the problem]

本願において開示される発明のうち代表的なものの概
要を簡単に説明すれば下記の通りである。
The outline of a representative invention among the inventions disclosed in the present application will be briefly described as follows.

すなわち、シリアル入力回線から供給されるデータを
内部バスに与える為の受信手段と、内部バスから供給さ
れるデータをシリアル出力回線に与えるための送信手段
は、データをやりとりするための制御手順として、HDLC
手順、BI−SYNC手順、及び調歩同期手順の内の少なくと
も2種類の制御手順を保有し、それらが保有する制御手
順をプロセッサの指示に基づいて択一的に選択可能とす
るものである。この選択指示は、プロセッサによってコ
ントロールレジスタに設定される動作モード信号に基づ
いて行うことができる。また、前記受信手段に含まれる
受信バッファ及び受信シフトレジスタと、送信手段に含
まれる送信バッファ及び送信シフトレジスタは、選択さ
れるデータ伝送制御手順の如何に拘らずそのハードウェ
アを共通化することができる。
That is, the receiving means for giving the data supplied from the serial input line to the internal bus and the transmitting means for giving the data supplied from the internal bus to the serial output line are the control procedures for exchanging data. HDLC
At least two types of control procedures among the procedures, the BI-SYNC procedure, and the start-stop synchronization procedure are retained, and the control procedures retained by these are selectively selectable based on the instruction of the processor. This selection instruction can be issued based on the operation mode signal set in the control register by the processor. Further, the hardware of the reception buffer and the reception shift register included in the reception means and the hardware of the transmission buffer and the transmission shift register included in the transmission means can be made common regardless of the selected data transmission control procedure. it can.

〔作 用〕(Operation)

前記した手段によれば、選択的に複数種類のデータ通
信制御手順に対応可能になり、これにより、シリアルデ
ータ伝送の要求に対して多機能なシリアルコミュニケー
ションを行うことができるデータ処理装置を達成するも
のである。さらに一部のハードウェアをデータ伝送制御
手順の如何に拘らず共通化することにより、最小限の論
理規模で上記シリアルコミュニケーションの多機能化を
実現するものである。
According to the above-mentioned means, it becomes possible to selectively support a plurality of types of data communication control procedures, thereby achieving a data processing device capable of performing multifunctional serial communication in response to a request for serial data transmission. It is a thing. Furthermore, by making a part of the hardware common regardless of the data transmission control procedure, it is possible to realize the multi-functionalization of the serial communication with a minimum logical scale.

〔実 施 例〕〔Example〕

第2図には本発明の一実施例であるマイクロコンピュ
ータの概略が示される。同図に示されるマイクロコンピ
ュータは、公知の半導体集積回路製造技術によってシリ
コン基板のような1個の半導体基板に形成される。
FIG. 2 shows an outline of a microcomputer which is an embodiment of the present invention. The microcomputer shown in the figure is formed on one semiconductor substrate such as a silicon substrate by a known semiconductor integrated circuit manufacturing technique.

第2図に示されるマイクロコンピュータは、特に制限
されないが、セントラルプロセッサ(CPU)1、タイマ
回路2、ダイレクト・メモリ・アクセス・コントローラ
(DMAC)3、送信回線Tx及び受信回線Rxを介して外部と
シリアルコミュニケーションインタフェースを行うシリ
アルI/Oポート4、パラレルI/Oポート5、ランダム・ア
クセス・メモリ(RAM)6、及びリード・オンリ・メモ
リ(ROM)7などを含み、夫々内部バス8に結合され
る。
The microcomputer shown in FIG. 2 is not particularly limited, but is externally connected via a central processor (CPU) 1, a timer circuit 2, a direct memory access controller (DMAC) 3, a transmission line Tx and a reception line Rx. A serial I / O port 4 for performing a serial communication interface, a parallel I / O port 5, a random access memory (RAM) 6, a read only memory (ROM) 7, etc. are included, and each is coupled to an internal bus 8. It

上記シリアルI/Oポート4は、外部との間でデータを
ビットシリアルにやりとりするための制御手順もしくは
コミュニケーションロジックとして、HDLC手順、BI−SY
NC手順、及び調歩同期手順を保有し、それらが保有する
制御手順は前記CPU1の指示に基づいて択一的に選択可能
にされて成る。
The serial I / O port 4 uses the HDLC procedure, BI-SY, as a control procedure or communication logic for exchanging data in a bit-serial manner with the outside.
The NC procedure and the start-stop synchronization procedure are held, and the control procedure held by them is selectively made selectable based on the instruction of the CPU 1.

ここで、HDLC手順によるフレーム構成は、例えば第3
図に示されるようにフレームの開始を示すフラグF、自
局又は相手局を示すアドレスフィールドAF、フレームの
種類を示す制御フィールドCF、整数バイト構成のデータ
フィールドDF、伝送誤り検査用のフレームチェックシー
ケンスFCS、フレームの終わりを示すフラグFによって
構成される。
Here, the frame configuration according to the HDLC procedure is, for example, the third
As shown in the figure, a flag F indicating the start of a frame, an address field AF indicating the own station or a partner station, a control field CF indicating the type of frame, a data field DF having an integer byte structure, and a frame check sequence for transmission error check It is composed of FCS and a flag F indicating the end of the frame.

BI−SYNC手順によるフレーム構成は、例えば第4図に
示されるように、フレームの開始を指示するための1個
以上挿入されるキャラクタ同期符号SYNC、その後に続く
データフィールドDF、及び伝送誤り検出符号CRCによっ
て構成される。
The frame structure according to the BI-SYNC procedure is, for example, as shown in FIG. 4, one or more character synchronization codes SYNC inserted to indicate the start of a frame, a data field DF that follows, and a transmission error detection code. Composed of CRC.

調歩同期手順によるデータフォーマットは、例えば第
5図に示されるように、キャラクタ単位とされ、1キャ
ラクタは、スタートビットSB、データビットDB、パリテ
ィービットPB、及びエンドビットもしくはストップビッ
トEBから構成される。
The data format according to the start-stop synchronization procedure is, for example, as shown in FIG. 5, in character units, and one character is composed of a start bit SB, a data bit DB, a parity bit PB, and an end bit or stop bit EB. .

第1図にはシリアルI/Oポート4の詳細な一例ブロッ
ク図が示される。
A detailed example block diagram of the serial I / O port 4 is shown in FIG.

このシリアルI/Oポート4は、受信回線Rxから供給さ
れるデータを内部バス8に与える為の受信ユニット10
と、内部バス8から供給されるデータを送信回線Txに与
えるための送信ユニット20と、各種制御情報やステータ
ス情報が保持されるステータス・コントロールレジスタ
ユニット30に大別される。
This serial I / O port 4 is a receiving unit 10 for giving the data supplied from the receiving line Rx to the internal bus 8.
, A transmission unit 20 for giving data supplied from the internal bus 8 to the transmission line Tx, and a status / control register unit 30 for holding various control information and status information.

受信ユニット10は、受信回線Rxから供給される情報
を、クロックCLKrに同期してベースバッド方式における
NRZ(ノン・リターン・トゥー・ゼロ)フォーマットや
バイフェーズフォーマットなどの所定フォーマットに復
号化するデコーダ11、このデコーダ11によって復号化さ
れた情報を受けてそれを処理する第1受信処理回路12及
び第2受信処理回路13、シリアルI/Oポート4の動作上
選択的に採用されるデータ伝送制御手順に応じて択一的
に動作選択される上記第1受信処理回路12又は第2受信
処理回路13から出力される情報を直列から並列に変換す
る受信シフトレジスタ14、この受信シフトレジスタ14か
ら供給される並列データを蓄えて内部バス8に供給する
受信バッファレジスタ15、及びシリアルI/Oポート4の
動作上選択的に採用されるデータ伝送制御手順に応じて
上記各機能ブロックの制御を司る受信コントローラ16に
よって構成される。
The receiving unit 10 synchronizes the information supplied from the receiving line Rx with the base bad system in synchronization with the clock CLKr.
A decoder 11 for decoding into a predetermined format such as an NRZ (non-return to zero) format or a bi-phase format, a first reception processing circuit 12 for receiving the information decoded by this decoder 11 and processing it The second reception processing circuit 13 and the first reception processing circuit 12 or the second reception processing circuit 13 which is selectively operated according to the data transmission control procedure that is selectively adopted in the operation of the serial I / O port 4. Of the serial I / O port 4 and the receiving shift register 14 for converting the information output from the serial to parallel, the receiving buffer register 15 for storing the parallel data supplied from the receiving shift register 14 and supplying it to the internal bus 8. The reception controller 16 controls each of the above functional blocks according to a data transmission control procedure that is selectively used in operation.

送信ユニット20は、内部バス8から送信すべきデータ
を受け取って蓄える送信バッファレジスタ21、この送信
バッファレジスタ21から与えられる並列データを直列に
変換する送信シフトレジスタ22、この送信シフトレジス
タ22から与えられる直列データを受けてこれを処理する
第1送信処理回路23及び第2送信処理回路24、シリアル
I/Oポート4の動作上選択的に採用されるデータ伝送制
御手順に応じて択一的に動作選択される第1送信処理回
路23又は第2送信処理回路24から出力される情報を、ク
ロックCLKtに同期してベースバンド方式におけるNRZフ
ォーマットやバイフェーズフォーマットなどの所定フォ
ーマットから符号化するエンコーダ25、及びシリアルI/
Oポート4の動作上選択的に採用されるデータ伝送制御
手順に応じて上記各機能ブロックの制御を司る送信コン
トローラ26によって構成される。
The transmission unit 20 is provided with a transmission buffer register 21 for receiving and storing data to be transmitted from the internal bus 8, a transmission shift register 22 for converting the parallel data given from the transmission buffer register 21 into a serial data, and a transmission shift register 22. A first transmission processing circuit 23 and a second transmission processing circuit 24 for receiving serial data and processing the serial data, serial
The information output from the first transmission processing circuit 23 or the second transmission processing circuit 24, which is selectively operated according to the data transmission control procedure that is selectively used in the operation of the I / O port 4, is clocked. Encoder 25 that encodes from a predetermined format such as NRZ format or biphase format in the baseband system in synchronization with CLKt, and serial I / O
It is configured by a transmission controller 26 that controls each of the above functional blocks according to a data transmission control procedure that is selectively adopted in the operation of the O port 4.

上記ステータス・コントロールレジスタユニット30
は、受信ユニット10や送信ユニット20さらにはシリアル
I/Oポート4に接続されるモデムの状態などを示すため
の各種ステータレジスタもしくはフラグレジスタと、シ
リアルI/Oポート4の動作モードを決定するための各種
コントロールレジスタを含んで成る。
Status control register unit 30 above
Is a receiving unit 10, a transmitting unit 20 or even a serial
It includes various status registers or flag registers for indicating the status of the modem connected to the I / O port 4, and various control registers for determining the operation mode of the serial I / O port 4.

例えば各種ステータレジスタもしくはフラグレジスタ
としては、夫々図示はしないが、第1受信処理回路12で
検出されるパリティーエラーの有無や第2受信処理回路
13で検出されるデータ伝送誤りの有無を示すための伝送
誤りステータス、第2受信処理回路13で検出されるフレ
ームエラーの有無を示すためのフレームエラーステータ
ス、モデムが受信ユニット10に対してその動作をリセッ
ト指示しているか否かを示す為のデータキャリアディテ
クトステータス、受信バッファレジスタ15の空きを示す
ためのフル/エンプティステータス、送信バッファレジ
スタ21の空きを示すためのフル/エンプティステータス
などがある。
For example, as various status registers or flag registers, although not shown respectively, presence or absence of a parity error detected by the first reception processing circuit 12 and the second reception processing circuit
A transmission error status for indicating the presence or absence of a data transmission error detected by 13, a frame error status for indicating the presence or absence of a frame error detected by the second reception processing circuit 13, and the operation of the modem for the receiving unit 10. There is a data carrier detect status for indicating whether or not a reset instruction has been issued, a full / empty status for indicating the vacancy of the reception buffer register 15, and a full / empty status for indicating the vacancy of the transmission buffer register 21.

コントロールレジスタとしては、送信コントローラ26
及び受信コントローラ16に、調歩同期手順、HDLC手順、
又はBI−SYNC手順の何れの制御論理を選択させるかを指
示するための3個の伝送手順モードレジスタMR1〜MR3を
備え、そのほかに、夫々図示はしないが、受信ユニット
10による受信動作の可否を決定するためのレシーブイネ
ーブル、送信ユニット20に送信動作の可否を決定するた
めのトランスミットイネーブル、モデムなどに対して送
信開始を要求するためのリクエスト・トゥー・センドな
どがある。
As the control register, the transmission controller 26
And the receiving controller 16, start-stop synchronization procedure, HDLC procedure,
Alternatively, three transmission procedure mode registers MR1 to MR3 for instructing which control logic of the BI-SYNC procedure is to be selected are provided, and besides, although not shown respectively, a reception unit
The receive enable for determining whether the receiving operation by 10 is possible, the transmit enable for determining the transmitting operation for the transmitting unit 20, the request to send for requesting the start of transmission to the modem, etc. is there.

上記伝送手順モードレジスタMR1〜MR3は夫々内部バス
8を介してCPU1から供給されるデータにより初期設定さ
れ、例えばモードレジスタMR1に「1」が設定される
と、送信コントローラ26及び受信コントローラ16は調歩
同期手順に応ずる制御論理を選択して受信ユニット10及
び送信ユニット20を制御する。モードレジスタ2に
「1」が設定されるときには、送信コントローラ26及び
受信コントローラ16はBI−YSNC手順に応ずる制御論理を
選択して受信ユニット10及び送信ユニット20を制御す
る。また、モードレジスタMR3に「1」が設定されると
きには、送信コントローラ26及び受信コントローラ16は
HDLC手順に応ずる制御論理を選択して受信ユニット10及
び送信ユニット20を制御する。
The transmission procedure mode registers MR1 to MR3 are respectively initialized by the data supplied from the CPU 1 via the internal bus 8. For example, when "1" is set in the mode register MR1, the transmission controller 26 and the reception controller 16 start / stop. The control logic corresponding to the synchronization procedure is selected to control the receiving unit 10 and the transmitting unit 20. When "1" is set in the mode register 2, the transmission controller 26 and the reception controller 16 control the reception unit 10 and the transmission unit 20 by selecting the control logic corresponding to the BI-YSNC procedure. Further, when “1” is set in the mode register MR3, the transmission controller 26 and the reception controller 16 are
The control logic corresponding to the HDLC procedure is selected to control the receiving unit 10 and the transmitting unit 20.

上記受信コントローラ16は、受信ユニット10の動作を
調歩同期手順、HDLC手順、及びBI−SYNC手順に適合させ
るための制御論理を備え、その制御論理は上記伝送手順
モードレジスタMR1〜MR3の設定状態に応じて択一的に選
択される。
The reception controller 16 is provided with control logic for adapting the operation of the reception unit 10 to the start-stop synchronization procedure, HDLC procedure, and BI-SYNC procedure, and the control logic is set in the transmission procedure mode registers MR1 to MR3. It is selected according to the alternative.

受信ユニット10において、上記デコーダ11、受信シフ
トレジスタ14、及び受信バッファレジスタ15は、受信コ
ントローラ16で採用される制御論理の如何に拘らず共通
利用されるハードウェアとされる。
In the reception unit 10, the decoder 11, the reception shift register 14, and the reception buffer register 15 are hardware commonly used regardless of the control logic adopted by the reception controller 16.

上記第1受信処理回路12は受信コントローラ16におい
て調歩同期手順に応ずる制御論理が採用されることに呼
応してその動作が選択されるようになっている。第1受
信処理回路12の動作が選択されると、当該第1処受信理
回路12は、調歩同期手順に従って供給される情報からス
タートビットSB及びエンドビットEBを検出して1キャラ
クタを認識し、キャラクタ毎にそのスタートビットSBに
続くデータビットDBの伝送誤りをパリティービットPBに
基づいて判定すると共に、その情報をキャラクタ単位で
上記受信シフトレジスタ14に与える。
The operation of the first reception processing circuit 12 is selected in response to the fact that the reception controller 16 adopts the control logic corresponding to the start-stop synchronization procedure. When the operation of the first reception processing circuit 12 is selected, the first reception processing circuit 12 detects the start bit SB and the end bit EB from the information supplied according to the start-stop synchronization procedure, and recognizes one character, The transmission error of the data bit DB following the start bit SB for each character is determined based on the parity bit PB, and the information is given to the reception shift register 14 in character units.

第2受信処理回路13は受信コントローラ16においてHD
LC手順又はBI−SYNC手順に応ずる制御論理が採用される
ことに呼応してその動作が選択される。即ち第2受信処
理回路13は、HDLC手順に従って供給される直列データと
BI−SYNC手順に従って供給される直列データの処理に共
用可能なハードウェアを備える。第2受信処理回路13の
動作がHDLC制御手順に応ずる制御論理によって選択され
ると、当該第2受信処理回路13は、HDLC手順に従って供
給される直列データのフラグFによって1フレームの開
始と終了を検出すると共に、アドレスフィールドAFから
自局当てフレームか否かの判別を行い、自局当てフレー
ムに対してはフレームチェックシーケンスFCSに基づい
て伝送誤りがあるか否かの演算を行って、制御フィール
ドCFやデータフィールドDFの内容などを受信シフトレジ
スタ14に与える。また、第2受信処理回路13の動作がBI
−SYNC手順に応ずる制御論理によって選択されると、当
該第2受信処理回路13は、BI−SYNC手順に従って供給さ
れる直列データのキャラクタ同期符号SYNCを検出すると
ことによってデータフィールドDFの開始を認識し、次い
で伝送誤り検出符号CRCに基づく伝送誤りの存否を判定
した後にデータフィールドDFの情報などを受信シフトレ
ジスタ14に与える。
The second reception processing circuit 13 is HD in the reception controller 16.
The operation is selected in response to the adoption of the control logic according to the LC procedure or BI-SYNC procedure. That is, the second reception processing circuit 13 receives the serial data supplied according to the HDLC procedure.
It has hardware that can be shared to process serial data supplied according to the BI-SYNC procedure. When the operation of the second reception processing circuit 13 is selected by the control logic according to the HDLC control procedure, the second reception processing circuit 13 starts and ends one frame by the flag F of the serial data supplied according to the HDLC procedure. At the same time as detecting, it is determined from the address field AF whether or not the frame is for the own station, and for the frame for the own station, whether or not there is a transmission error based on the frame check sequence FCS is calculated, and the control field The contents of CF and the data field DF are given to the reception shift register 14. In addition, the operation of the second reception processing circuit 13 is BI
When selected by the control logic according to the SYNC procedure, the second reception processing circuit 13 recognizes the start of the data field DF by detecting the character sync code SYNC of the serial data supplied according to the BI-SYNC procedure. Then, after determining the presence or absence of a transmission error based on the transmission error detection code CRC, the information of the data field DF and the like are given to the reception shift register 14.

上記送信コントローラ26は、送信ユニット20の動作を
調歩同期手順、HDLC手順、又はBI−SYNC手順に適合させ
るための制御論理を備え、その制御論理は上記伝送手順
モードレジスタMR1〜MR3の設定状態に応じて択一的に選
択される。
The transmission controller 26 is provided with control logic for adapting the operation of the transmission unit 20 to the start-stop synchronization procedure, HDLC procedure, or BI-SYNC procedure, and the control logic is set to the setting state of the transmission procedure mode registers MR1 to MR3. It is selected according to the alternative.

送信ユニット20において、上記送信バッファレジスタ
21、送信シフトレジスタ22、及びエンコーダ25は、送信
コントローラ26で選択採用される制御論理の如何に拘ら
ず共通利用されるハードウェアとされる。
In the transmission unit 20, the above transmission buffer register
The 21, the transmission shift register 22, and the encoder 25 are hardware commonly used regardless of the control logic selected and adopted by the transmission controller 26.

上記第1送信処理回路23は送信コントローラ26におい
て調歩同期手順に応ずる制御論理が採用されることに呼
応してその動作が選択される。第1送信処理回路23の動
作が選択されると、当該第1送信処理回路23は、送信シ
フトレジスタ22から供給される直列データに、スタート
ビットSB、バリティービットPB及びエンドビットEBを付
加して、調歩同期手順に適合するデータフォーマットを
形成し、これをエンコーダ25に与える。
The operation of the first transmission processing circuit 23 is selected in response to the fact that the transmission controller 26 adopts the control logic corresponding to the start-stop synchronization procedure. When the operation of the first transmission processing circuit 23 is selected, the first transmission processing circuit 23 adds the start bit SB, the validity bit PB and the end bit EB to the serial data supplied from the transmission shift register 22. Then, a data format suitable for the start-stop synchronization procedure is formed, and this is given to the encoder 25.

第2送信処理回路24は送信コントローラ26においてHD
LC手順又はBI−SYNC手順に応ずる制御論理が採用される
ことに呼応してその動作が選択される。即ち第2送信処
理回路24はHDLC手順に従ったフレーム形成とBI−SYNC手
順に従ったフレーム形成の双方に共用可能なハードウェ
アを備える。第2送信処理回路24の動作がHDLC手順に応
ずる制御論理によって選択されると、当該第2送信処理
回路24は、送信シフトレジスタ22から供給される直列デ
ータに基づいてフレームチェックシーケンスFCSを形成
すると共に、当該フレームチェックシーケンスFCSや1
フレームの開始と終了を示すためのフラグFなどを付加
して、HDLC手順に従ったフレームを形成してエンコーダ
25に与える。また、第2送信処理回路24の動作がBI−SY
NC手順に応ずる制御論理によって選択されると、当該第
2送信処理回路24は、送信シフトレジスタ22から供給さ
れる直列データに基づいて伝送誤り検出符号CRCを形成
すると共に、当該伝送誤り検出符号CRCやキャラクタ同
期符号SYNCなどを付加して、BI−SYNC手順に従ったフレ
ームを形成してこれをエンコーダ25に与える。
The second transmission processing circuit 24 is HD in the transmission controller 26.
The operation is selected in response to the adoption of the control logic according to the LC procedure or BI-SYNC procedure. That is, the second transmission processing circuit 24 includes hardware that can be used for both frame formation according to the HDLC procedure and frame formation according to the BI-SYNC procedure. When the operation of the second transmission processing circuit 24 is selected by the control logic according to the HDLC procedure, the second transmission processing circuit 24 forms the frame check sequence FCS based on the serial data supplied from the transmission shift register 22. Together with the frame check sequence FCS or 1
Encoder by adding a flag F etc. to indicate the start and end of the frame and forming a frame according to the HDLC procedure
Give to 25. In addition, the operation of the second transmission processing circuit 24 is BI-SY.
When selected by the control logic according to the NC procedure, the second transmission processing circuit 24 forms the transmission error detection code CRC based on the serial data supplied from the transmission shift register 22, and also the transmission error detection code CRC. And character synchronization code SYNC are added to form a frame in accordance with the BI-SYNC procedure and the frame is given to the encoder 25.

上記実施例によれば以下の作用効果を得るものであ
る。
According to the above embodiment, the following effects can be obtained.

(1)本実施例のマイクロコンピュータを適用するシス
テムにおいて、当該マイクロコンピュータとの間でその
シリアルI/Oポート4を介してシリアルコミュニケーシ
ョンを行う場合のデータ伝送制御手順としては、調歩同
期手順、HDLC手順、又はBI−SYNC手順の何れをも択一的
に選択可能になる。これにより、本実施例のマイクロコ
ンピュータは、シリアルデータ伝送の要求に対してその
伝送制御手順が限定されず、多機能なシリアルコミュニ
ケーションを実現可能とするものである。したがって、
所望のシステムに採用されるデータ伝送制御手順が如何
なる手順であっても、そのデータ伝送制御手順に応じて
異なるマイクロコンピュータを採用したり、もしくはそ
のようなシリアルインタフェース機能の異なる各種マイ
クロコンピュータを供給したりする不便ささらには手間
が解消される。
(1) In the system to which the microcomputer of the present embodiment is applied, the data transmission control procedure when serial communication is performed with the microcomputer via the serial I / O port 4 is a start-stop synchronization procedure or HDLC. Either the procedure or the BI-SYNC procedure can be selectively selected. As a result, the microcomputer of this embodiment is not limited in its transmission control procedure in response to a request for serial data transmission, and can realize multifunctional serial communication. Therefore,
Regardless of the data transmission control procedure adopted in the desired system, different microcomputers are adopted according to the data transmission control procedure, or various microcomputers having different serial interface functions are supplied. The inconvenience and troublesome work are eliminated.

(2)受信ユニット10に含まれるデコーダ11、受信シフ
トレジスタ14、及び受信バッファレジスタ15と、送信ユ
ニット20に含まれるエンコーダ25、送信シフトレジスタ
22、及び送信バッファレジスタ21は、択一的に選択され
るデータ伝送制御手順の如何に拘らずそのハードウェア
が共通化されていて、各データ伝送制御手順毎に独立の
回線制御部を持つ構成とはされていないから、製造上並
びにび経済性の観点からLSIチップは無制限に大きくす
ることができないという制約の下において、最小限の論
理規模で上記シリアルコミュニケーションの多機能化を
実現することができる。
(2) Decoder 11, reception shift register 14, and reception buffer register 15 included in the reception unit 10, encoder 25, transmission shift register included in the transmission unit 20
22 and the transmission buffer register 21 have common hardware regardless of which data transmission control procedure is selected alternatively, and each data transmission control procedure has an independent line control unit. Therefore, it is possible to realize multiple functions of the serial communication with a minimum logical scale under the constraint that the LSI chip cannot be increased infinitely from the viewpoint of manufacturing and economical efficiency. it can.

以上本発明者によってなされた発明を実施例に基づい
て具体的に説明したが本発明はそれに限定されずその要
旨を逸脱しない範囲において種々変更することができ
る。
The invention made by the present inventor has been specifically described based on the embodiments, but the present invention is not limited thereto, and can be variously modified without departing from the gist thereof.

例えば、マイクロコンピュータに含まれるペリフェラ
ルモジュールは上記実施例に限定されずその要求仕様な
どに応じて適宜変更することができる。また、マイクロ
コンピュータが択一的に選択可能とするデータ伝送制御
手順はHDLC手順、BI−SYNC手順、及び調歩同期手順の全
てである必要はなく、少なくともそのうちの2つの手順
の中から択一的に選択可能な構成であれば、上記実施例
と同様にシリアルコミュニケーションの多機能化さらに
はその機能を最小限の論理規模で実現することができる
という効果を得ることができる。
For example, the peripheral module included in the microcomputer is not limited to the above-described embodiment, and can be appropriately changed according to the required specifications. Also, the data transmission control procedure that the microcomputer can selectively select does not have to be all the HDLC procedure, BI-SYNC procedure, and start-stop synchronization procedure, and at least one of the two procedures can be selected. If the configuration is selectable as described above, it is possible to obtain the effect that the serial communication has multiple functions and that the function can be realized with a minimum logical scale as in the above-described embodiment.

以上の説明では主として本発明者によってなされた発
明をその背景となった利用分野であるシリアルI/Oポー
トを備える汎用的なマイクロコンピュータに適用した場
合について説明したが、本発明はこれに限定されるもの
ではなく通信か制御用LSIやプロトコルプロセッサなど
にも広く適用することができるものである。本発明は少
なくとも、内部バスに共通接続されたシリアルコミュニ
ケーションインタフェース手段とプロセッサを含む条件
のものに適用することができる。
In the above description, the case where the invention made by the present inventor is mainly applied to a general-purpose microcomputer having a serial I / O port, which is the field of application of the background, has been described, but the present invention is not limited to this. However, it can be widely applied to communication or control LSIs, protocol processors, etc. The present invention can be applied to at least a condition including a serial communication interface unit and a processor commonly connected to an internal bus.

〔発明の効果〕〔The invention's effect〕

本願において開示される発明のうち代表的なものによ
って得られる効果を簡単に説明すれば下記の通りであ
る。
The effects obtained by the representative inventions among the inventions disclosed in the present application will be briefly described as follows.

すなわち、シリアルデータをやりとりするための受信
手段及び送信手段は、少なくとも下位レイヤにおけるデ
ータ伝送制御手順として、HDLC手順、BI−SYNC手順、及
び調歩同期手順の内の少なくとも2種類の制御手順を内
蔵プロセッサの指示に基づいて択一的に選択可能とする
ものであるから、選択的に複数種類のデータ伝送制御手
順に対応可能になり、これにより、シリアルデータ伝送
の要求に対して多機能なシリアルコミュニケーションを
行うことができるデータ処理装置を得ることができると
いう効果がある。しかも一部のハードウェアをデータ伝
送制御手順の如何に拘らず共通化することにより、最小
限の論理規模で上記シリアルコミュニケーションの多機
能化を実現することができるようになる。
That is, the receiving means and the transmitting means for exchanging serial data have at least two types of control procedures, namely, an HDLC procedure, a BI-SYNC procedure, and a start-stop synchronization procedure, as a data transmission control procedure in at least a lower layer. It is possible to selectively support multiple types of data transmission control procedures, as a result of which the multi-function serial communication can be performed in response to a request for serial data transmission. There is an effect that a data processing device capable of performing In addition, by sharing a part of the hardware regardless of the data transmission control procedure, it becomes possible to realize the multifunctional serial communication with a minimum logical scale.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明の一実施例であるマイクロコンピュータ
に適用されるシリアルI/Oポートの詳細な一例を示すブ
ロック図、 第2図は本発明の一実施例であるマイクロコンピュータ
の概略を示すブロック図、 第3図はHDLC手順によるフレーム構成の一例を示す説明
図、 第4図はBI−SYNC手順によるフレーム構成の一例を示す
説明図、 第5図は調歩同期手順によるデータフォーマットの一例
を示す説明図である。 1……CPU、2……タイマ回路、3……DMAC、4……シ
リアルI/Oポート、5……パラレルI/Oポート、6……RA
M、7……ROM、8……内部バス、Rx……受信回線、Tx…
…送信回線、10……受信ユニット、11……デコーダ、12
……第1受信処理回路、13……第2受信処理回路、14…
…受信シフトレジスタ、15……受信バッファレジスタ、
16……受信コントローラ、20……送信ユニット、21……
送信バッファレジスタ、22……送信シフトレジスタ、23
……第1送信処理回路、24……第2送信処理回路、25…
…エンコーダ、26……送信コントローラ、30……ステー
タス・コントロールレジスタ、MR1〜MR3……伝送手順モ
ードレジスタ。
FIG. 1 is a block diagram showing a detailed example of a serial I / O port applied to a microcomputer which is an embodiment of the present invention, and FIG. 2 is a schematic diagram of a microcomputer which is an embodiment of the present invention. Block diagram, FIG. 3 is an explanatory diagram showing an example of a frame configuration according to the HDLC procedure, FIG. 4 is an explanatory diagram showing an example of a frame configuration according to the BI-SYNC procedure, and FIG. 5 is an example of a data format according to the start-stop synchronization procedure. It is an explanatory view shown. 1 ... CPU, 2 ... Timer circuit, 3 ... DMAC, 4 ... Serial I / O port, 5 ... Parallel I / O port, 6 ... RA
M, 7 ... ROM, 8 ... internal bus, Rx ... reception line, Tx ...
… Transmission line, 10 …… Reception unit, 11 …… Decoder, 12
...... First reception processing circuit, 13 ...... Second reception processing circuit, 14 ...
… Receive shift register, 15 …… Receive buffer register,
16 …… Receiving controller, 20 …… Sending unit, 21 ……
Transmission buffer register, 22 ... Transmission shift register, 23
...... First transmission processing circuit, 24 ...... Second transmission processing circuit, 25 ...
… Encoder, 26 …… Transmission controller, 30 …… Status control register, MR1 to MR3 …… Transmission procedure mode register.

フロントページの続き (72)発明者 中田 邦彦 東京都小平市上水本町1450番地 株式会 社日立製作所武蔵工場内 (72)発明者 赤尾 泰 東京都小平市上水本町1450番地 株式会 社日立製作所武蔵工場内 (56)参考文献 特開 昭62−160849(JP,A)Front page continued (72) Inventor Kunihiko Nakata 1450 Kamimizuhonmachi, Kodaira-shi, Tokyo Inside Musashi Plant, Hitachi Ltd. (72) Inventor Yasushi Akao 1450, Kamimizuhoncho, Kodaira-shi, Tokyo Hitachi Ltd. Musashi, Ltd. In the factory (56) References JP-A-62-160849 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】内部バスと、該内部バスに共通接続された
CPU及びシリアルコミュニケーションインタフェース手
段とを半導体集積回路の半導体基板に含むデータ処理装
置において、 前記シリアルコミュニケーションインタフェース手段
は、前記内部バスと接続されハイレベルデータリンク制
御手順、バイナリシンクロナスコミュニケーション手
順、調歩同期手順のうちの選択された一つの制御手順に
従ってシリアル入力回線から供給されるデータを前記内
部バスに供給する受信手段と、 前記内部バスと接続されハイレベルデータリンク制御手
順、バイナリシンクロナスコミュニケーション手順、調
歩同期手順のうちの選択された一つの制御手順に従って
前記内部バスのデータをシリアル出力回線に与える送信
手段と、 前記内部バスと前記受信手段と前記送信手段とに接続さ
れ、前記内部バスを介して前記CPUから初期設定される
動作モード信号に基づいて前記受信手段及び前記送信手
段の制御手順を選択する制御手段とを含み、 前記シリアルコミュニケーションインタフェース手段の
前記受信手段は、前記シリアル入力回線から供給される
データを復号化するデコーダと、該デコーダによって復
号化された情報を調歩同期手順に従って処理する第1受
信処理回路と、前記デコーダによって復号化された情報
をハイレベルデータリンク制御手順及びバイナリシンク
ロナスコミュニケーション手順に従って処理する第2受
信処理回路と、前記第1受信処理回路及び前記第2受信
処理回路から出力される情報を直列から並列に変換する
受信シフトレジスタと、前記受信シフトレジスタからの
並列データを蓄えて前記内部バスに供給する受信バッフ
ァと、前記制御手順に前記CPUから初期設定される前記
動作モード信号に基づいて前記第1受信処理回路及び第
2受信処理回路の処理手順を選択する受信コントローラ
とを含み、 前記シリアルコミュニケーションインタフェース手段の
前記送信手段は、前記内部バスから送信すべきデータを
受け取って蓄える送信バッファと、前記送信バッファか
ら与えられる並列データを直列に変換する送信シフトレ
ジスタと、該送信シフトレジスタから供給される直列デ
ータを調歩同期手順に従って処理する第1送信処理回路
と、前記送信シフトレジスタから供給される直列データ
をハイレベルデータリンク制御手順及びバイナリシンク
ロナスコミュニケーション手順に従って処理する第2送
信処理回路と、前記第1送信処理回路及び前記第2送信
処理回路から出力される情報を符号化するエンコーダ
と、前記制御手段に前記CPUから初期設定される前記動
作モード信号に基づいて前記第1送信処理回路及び第2
送信処理回路の処理手順を選択する送信コントローラと
を含み、 前記シリアルコミュニケーションインタフェース手段に
含まれる前記受信手段の前記デコーダと前記受信シフト
レジスタと前記受信バッファとは、受信の処理手順の選
択の如何に拘わらず共通利用されるハードウェアであ
り、 前記シリアルコミュニケーションインタフェース手段に
含まれる前記送信手段の前記送信バッファと前記送信シ
フトレジスタと前記エンコーダとは、送信の処理手順の
選択の如何に拘わらず共通利用されるハードウェアであ
ることを特徴とするデータ処理装置。
1. An internal bus and a common connection to the internal bus
In a data processing device including a CPU and a serial communication interface unit on a semiconductor substrate of a semiconductor integrated circuit, the serial communication interface unit is connected to the internal bus, and is a high-level data link control procedure, a binary synchronous communication procedure, and an asynchronous synchronization procedure. Receiving means for supplying the data supplied from the serial input line to the internal bus according to the selected one of the control procedures, a high level data link control procedure connected to the internal bus, a binary synchronous communication procedure, and an asynchronous communication. Transmitting means for giving the data of the internal bus to the serial output line according to one control procedure selected from the synchronizing procedures; and, connected to the internal bus, the receiving means and the transmitting means, via the internal bus. Control means for selecting a control procedure of the receiving means and the transmitting means based on an operation mode signal initialized from the CPU, the receiving means of the serial communication interface means is supplied from the serial input line. A decoder for decoding the data, a first reception processing circuit for processing the information decoded by the decoder according to an asynchronous synchronization procedure, a high-level data link control procedure and a binary synchronous processing for the information decoded by the decoder. A second reception processing circuit that processes according to a communication procedure, a reception shift register that converts information output from the first reception processing circuit and the second reception processing circuit from serial to parallel, and parallel data from the reception shift register. Receiving buffer for storing and supplying to the internal bus And a reception controller that selects a processing procedure of the first reception processing circuit and the second reception processing circuit based on the operation mode signal initialized from the CPU in the control procedure, the serial communication interface means The transmission means receives a transmission buffer for receiving and storing data to be transmitted from the internal bus, a transmission shift register for converting parallel data given from the transmission buffer into serial data, and serial data supplied from the transmission shift register. A first transmission processing circuit that processes according to an asynchronous synchronization procedure; a second transmission processing circuit that processes serial data supplied from the transmission shift register according to a high-level data link control procedure and a binary synchronous communication procedure; and the first transmission processing circuit. Processing circuit and the second transmission processing circuit Et an encoder for encoding information to be output, the control means on the basis of the said operating mode signal is initialized by the CPU to the first transmission processing circuit and the second
A transmission controller that selects a processing procedure of a transmission processing circuit, wherein the decoder, the reception shift register, and the reception buffer of the reception means included in the serial communication interface means are configured to select a reception processing procedure. The hardware is commonly used regardless of whether the transmission buffer of the transmission means, the transmission shift register, and the encoder included in the serial communication interface means are commonly used regardless of the selection of the transmission processing procedure. Data processing device characterized in that the data processing device is used.
JP63109962A 1988-05-06 1988-05-06 Data processing device Expired - Fee Related JP2682838B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP63109962A JP2682838B2 (en) 1988-05-06 1988-05-06 Data processing device
KR1019890005905A KR0148568B1 (en) 1988-05-06 1989-05-02 Data processing device
US07/850,856 US5226173A (en) 1988-05-06 1992-03-13 Integrated data processor having mode control register for controlling operation mode of serial communication unit
US08/049,347 US5361374A (en) 1988-05-06 1993-04-21 Integrated data processor having mode control register for controlling operation mode of serial communication unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63109962A JP2682838B2 (en) 1988-05-06 1988-05-06 Data processing device

Publications (2)

Publication Number Publication Date
JPH01279656A JPH01279656A (en) 1989-11-09
JP2682838B2 true JP2682838B2 (en) 1997-11-26

Family

ID=14523560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63109962A Expired - Fee Related JP2682838B2 (en) 1988-05-06 1988-05-06 Data processing device

Country Status (2)

Country Link
JP (1) JP2682838B2 (en)
KR (1) KR0148568B1 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4807282A (en) * 1985-12-30 1989-02-21 International Business Machines Corp. Programmable P/C compatible communications card

Also Published As

Publication number Publication date
JPH01279656A (en) 1989-11-09
KR890017605A (en) 1989-12-16
KR0148568B1 (en) 1998-11-16

Similar Documents

Publication Publication Date Title
US9607673B1 (en) Methods and systems for pin-efficient memory controller interface using vector signaling codes for chip-to-chip communication
US5226173A (en) Integrated data processor having mode control register for controlling operation mode of serial communication unit
JP2709820B2 (en) Multiprotocol communication controller in single integrated circuit microcontroller
JPH0638600B2 (en) Local area network system
JPH05207026A (en) Dynamic-switch protocol on shared medium network
JP3444623B2 (en) Hierarchical connection method, device and protocol
WO1992017952A1 (en) Transceiver interface
US7231467B2 (en) Method and apparatus for providing an inter integrated circuit interface with an expanded address range and efficient priority-based data throughput
JPS6135587B2 (en)
JP2682838B2 (en) Data processing device
US6754749B1 (en) Multiple use integrated circuit for embedded systems
JP4160068B2 (en) Digital programming interface between baseband processor and radio frequency integrated module
JPH0337221B2 (en)
US6378019B1 (en) Method and system for interfacing a plurality of peripheral devices in a slave group interface device to a bus and a slave group interface device
US8732513B2 (en) Method and system for a message processor switch for performing incremental redundancy in edge compliant terminals
US20050068987A1 (en) Highly configurable radar module link
JPH0548017B2 (en)
KR100400933B1 (en) Apparatus for synchronization between CPU and external devices in keyphone system
JPH03821B2 (en)
CN115589348A (en) Single SPI and IO interrupt realize SSI communication's slave computer equipment
JP2538949B2 (en) Inter-system communication controller
JPH0552696B2 (en)
JPS61177048A (en) Method of transmitting information in data transmission system
JPH0282849A (en) Interface by variable communication system
JP2000124923A (en) Data bus terminal

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees