JPH11298450A - Serial data transfer controller - Google Patents

Serial data transfer controller

Info

Publication number
JPH11298450A
JPH11298450A JP10096087A JP9608798A JPH11298450A JP H11298450 A JPH11298450 A JP H11298450A JP 10096087 A JP10096087 A JP 10096087A JP 9608798 A JP9608798 A JP 9608798A JP H11298450 A JPH11298450 A JP H11298450A
Authority
JP
Japan
Prior art keywords
serial data
parity error
signal
receiving
transfer controller
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
Application number
JP10096087A
Other languages
Japanese (ja)
Inventor
Mamoru Nomura
守 野村
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP10096087A priority Critical patent/JPH11298450A/en
Publication of JPH11298450A publication Critical patent/JPH11298450A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Dc Digital Transmission (AREA)
  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To request retransmission without an intervention of a receiving side CPU by transmitting to a transmitting side a signal showing that a receiving buffer overflows instead of a parity error signal. SOLUTION: Received data is transferred to a terminal side CPU 10 after it is once stored in a receiving buffer 14 of a receiving part 11. When the buffer 14 overflows, a receiving control circuit 12 generates an overflow signal without the intervention of the CPU 10. A receiving buffer overflow signal detected by the circuit 12 is inputted to an error timing generating circuit 16 and an error signal is produced in the same manner as a parity error time. The error signal is subjected to OR processing at the OR gate 33 of a port part 31 and is outputted to a transmitting and receiving terminal through an output buffer 34. A transmitting end repeats retransmission of error data according to the signal entry.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、シリアルデータを
送受信する送受信システムのシリアルデータ転送コント
ローラに関し、特に、受信側がパリティーエラーを送信
側に通知する手段を有するシリアルデータ転送コントロ
ーラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial data transfer controller for a transmission / reception system for transmitting / receiving serial data, and more particularly, to a serial data transfer controller having means for a receiving side to notify a parity error to a transmitting side.

【0002】[0002]

【従来の技術】従来の磁気ストライプを備えるクレジッ
トカードに代わるものとしてICカードがある。ICカ
ードは、ICメモリを備えデータの入出力が可能なカー
ドで、一般に、メモリに加えてコントローラ部及び送受
信機能を備え、端末機としての機能を有する。
2. Description of the Related Art There is an IC card as an alternative to a conventional credit card having a magnetic stripe. The IC card is a card having an IC memory and capable of inputting and outputting data, and generally has a controller unit and a transmission / reception function in addition to the memory, and has a function as a terminal.

【0003】ICカードの送受信に使用されるシリアル
データ転送コントローラは、通信方式及びデータフレー
ムフォーマットについて標準が定められている。特に、
ISO―7816に準拠するスマートカードに使用され
るシリアルデータ転送コントローラは、全2重の非同期
式の通信機能を有し、送信側及び受信側で共通のデータ
フレームフォーマット及び通信速度を使用するように規
格化されている。
[0003] The serial data transfer controller used for transmission and reception of an IC card has a standard for a communication system and a data frame format. Especially,
The serial data transfer controller used in the ISO-7816 compliant smart card has a full duplex asynchronous communication function and uses a common data frame format and communication speed on the transmission side and the reception side. It has been standardized.

【0004】図5は従来のシリアルデータ転送コントロ
ーラの構成を、これを制御する上位装置を成すCPU
(Central Processing Unit)
と共に示すブロック図である。シリアルデータ転送コン
トローラは、受信したデータをCPU10へ送る受信部
11と、CPU10からの送信データを送信する送信部
21と、送受信端子から入出力するデータを入力信号及
び出力信号に応じて入出力するポート部31とを備えて
る。
FIG. 5 shows a configuration of a conventional serial data transfer controller, and a CPU as an upper device for controlling the serial data transfer controller.
(Central Processing Unit)
It is a block diagram shown with. The serial data transfer controller receives a data sent from the CPU 10 to the CPU 10, a transmission unit 21 sends data transmitted from the CPU 10, and inputs / outputs data input / output from a transmission / reception terminal according to an input signal and an output signal. And a port unit 31.

【0005】受信部11は、ポート部31より入力され
た受信シリアルデータのパリティチェックを行うパリテ
ィチェック回路15、受信シリアルデータを受信パラレ
ルデータに変換するための受信シフタ13、受信シフタ
13からのパラレルデータを一旦格納する受信バッファ
14、パリティエラーが発生した場合に、所定のタイミ
ングでエラー信号を生成するエラータイミング生成回路
16及びこれらの受信動作を制御する受信制御回路部1
2を備える。
[0005] The receiving unit 11 includes a parity check circuit 15 for performing a parity check of the received serial data input from the port unit 31, a reception shifter 13 for converting the received serial data into reception parallel data, and a parallel transmission from the reception shifter 13. A reception buffer 14 for temporarily storing data, an error timing generation circuit 16 for generating an error signal at a predetermined timing when a parity error occurs, and a reception control circuit 1 for controlling these reception operations
2 is provided.

【0006】送信部21は、CPU10から入力された
送信データを一旦格納する送信バッファ23、送信バッ
ファ23からのデータを送信シリアルデータに変換する
送信用シフタ24及び送信バッファ23及び送信用シフ
タ24双方の動作を制御する送信制御回路部22を備え
る。
The transmission unit 21 includes a transmission buffer 23 for temporarily storing transmission data input from the CPU 10, a transmission shifter 24 for converting data from the transmission buffer 23 into transmission serial data, and both the transmission buffer 23 and the transmission shifter 24. Is provided with a transmission control circuit section 22 for controlling the operation of.

【0007】ポート部31は、送信シリアルデータとエ
ラー信号をORするORゲート33及び送受信端子から
の入力信号を受信する入力バッファ32及びORゲート
33によってORされた出力信号を送信する出力バッフ
ァ34を備えている。
The port section 31 includes an OR gate 33 for ORing transmission serial data and an error signal, an input buffer 32 for receiving an input signal from a transmission / reception terminal, and an output buffer 34 for transmitting an output signal ORed by the OR gate 33. Have.

【0008】従来のシリアルデータ転送コントローラで
は、パリティチェックの結果がエラーの場合に、エラー
タイミング生成回路にパリティエラー信号を出力し、エ
ラータイミング生成回路16により所定のデータフレー
ムフォーマット(図3)でエラー信号オンを含む文字デ
ータを出力する。
In the conventional serial data transfer controller, when the result of the parity check is an error, a parity error signal is output to the error timing generation circuit, and the error timing generation circuit 16 outputs the error in a predetermined data frame format (FIG. 3). Outputs character data including signal ON.

【0009】シリアルデータ転送コントローラでは、受
信バッファーのオーバーフローが発生した場合に、受信
制御回路12は、自身のCPU10に対してオーバーフ
ロー割り込み信号を出力し、受信バッファ14のオーバ
ーフローの発生を知らせる。その後、受信側のCPU1
0は、これを受けて割り込み処理によって再受信のため
の再送要求コマンドを送信する。送信側のコントローラ
では、再送要求コマンドに従ってデータを再送する。
In the serial data transfer controller, when the reception buffer overflows, the reception control circuit 12 outputs an overflow interrupt signal to its own CPU 10 to notify the occurrence of overflow of the reception buffer 14. After that, the receiving CPU 1
0 receives this and transmits a retransmission request command for re-reception by interrupt processing. The transmitting-side controller retransmits data according to the retransmission request command.

【0010】[0010]

【発明が解決しようとする課題】従来のシリアル転送コ
ントローラでは、受信バッファのオーバーフローの度に
受信側のCPUの制御に基づいて、割り込み処理によっ
てデータ再送の要求をし、送信側のコントローラに通知
するので、受信側のCPUが再送要求するまでに時間が
かかる欠点があった。
In the conventional serial transfer controller, every time the reception buffer overflows, a request for data retransmission is made by interrupt processing based on the control of the CPU on the receiving side, and the request is sent to the controller on the transmitting side. Therefore, there is a disadvantage that it takes time until the receiving CPU makes a retransmission request.

【0011】本発明は、上記事情に鑑みて成されたもの
であり、受信バッファのオーバーフローの発生時に受信
側CPUの介在なしに、又は、CPUの介在を制限して
再送要求できるシリアルデータ転送コントローラを提供
することを目的とする。
The present invention has been made in view of the above circumstances, and provides a serial data transfer controller capable of requesting retransmission without the intervention of a receiving CPU or by limiting the intervention of a CPU when a reception buffer overflows. The purpose is to provide.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
に、本発明のシリアルデータ転送コントローラは、シリ
アル入力データをパラレルデータに変換するための受信
バッファと、前記シリアル入力データのパリティチェッ
クを行いパリティエラーを検出した時に前記シリアル入
力データを送信した送信側にパリティエラー信号を送出
するパリティチェック回路部とを備えた受信部を有する
シリアルデータ転送コントローラにおいて、前記受信バ
ッファがオーバーフローした時に前記受信バッファがオ
ーバーフローしたことを示す信号を前記パリティエラー
信号に代えて前記送信側に送出することを特徴とする。
In order to achieve the above object, a serial data transfer controller according to the present invention performs a reception buffer for converting serial input data into parallel data and a parity check of the serial input data. A parity check circuit for transmitting a parity error signal to a transmitting side that has transmitted the serial input data when a parity error is detected. Is transmitted to the transmitting side in place of the parity error signal instead of the parity error signal.

【0013】また、本発明のシリアルデータ転送コント
ローラでは、受信データを一旦格納した後に上位装置に
転送する受信バッファと、該受信バッファがオーバーフ
ローするとオーバーフロー信号を発生するオーバーフロ
ー検出回路と、前記受信データのパリティエラーを検出
するパリティエラー検出回路と、該パリティエラー検出
回路がパリティエラーを検出すると送信側にパリティエ
ラー信号を通知するパリティエラー通知回路とを備える
受信部と、受信側から前記パリティエラーの通知を受領
するとデータを再送する送信部とを備えるシリアルデー
タ転送コントローラにおいて、前記オーバーフロー信号
又は前記パリティエラー信号を選択するセレクタを備
え、前記オーバーフロー検出回路は、前記パリティエラ
ー信号に代えて該セレクタの出力を送信側に通知するこ
とを特徴とする。
Further, in the serial data transfer controller of the present invention, a reception buffer for temporarily storing received data and transferring it to a host device, an overflow detection circuit for generating an overflow signal when the received buffer overflows, A receiving unit comprising: a parity error detection circuit for detecting a parity error; a parity error notification circuit for notifying a parity error signal to a transmission side when the parity error detection circuit detects a parity error; and a notification of the parity error from the reception side. A serial data transfer controller having a transmission unit for retransmitting data upon receipt of the data, a selector for selecting the overflow signal or the parity error signal, and wherein the overflow detection circuit replaces the parity error signal with the cell. And notifying the transmitting side output connectors.

【0014】本発明のシリアルデータ転送コントローラ
では、オーバーフロー信号をカウントするカウント部を
備え、該カウント部によるカウントが所定回数に達する
と上位装置に割込み信号を発生することができる。回復
が困難と考えられるオーバーフロー時にのみCPUが関
与することで、CPUの占有時間を低く抑える。
The serial data transfer controller of the present invention has a counting section for counting an overflow signal, and can generate an interrupt signal to a higher-level device when the count by the counting section reaches a predetermined number. Since the CPU is involved only at the time of an overflow that is considered to be difficult to recover, the occupation time of the CPU is kept low.

【0015】本発明のシリアルデータ転送コントローラ
では、上位装置はCPUでもDMAでも良い。本発明の
ICカードは、上記シリアルデータ転送コントローラを
備え、且つ、送受信機能を備えホストとしての機能を有
する。
In the serial data transfer controller of the present invention, the host device may be a CPU or a DMA. An IC card according to the present invention includes the above serial data transfer controller, has a transmitting / receiving function, and has a function as a host.

【0016】[0016]

【発明の実施の形態】[第1の実施の形態]図面を参照
して本発明を更に詳細に説明する。図1は、本発明の第
1の実施形態例のシリアルデータ転送コントローラの構
成を、これを制御する上位装置を成すCPUと共に示す
ブロック図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS [First Embodiment] The present invention will be described in more detail with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a serial data transfer controller according to a first embodiment of the present invention, together with a CPU constituting a higher-level device for controlling the serial data transfer controller.

【0017】本発明によるシリアルデータ転送コントロ
ーラは、データを受信する受信部11と、データを送信
する送信部21と、送受信データを分離するポート部3
1とから構成される。受信部11は、データを受信した
時にCPU10に受信したデータを受け渡し、送信部2
1は、CPU10からの送信データを送信する機能を有
し、ポート部31は外部から送られた入力信号と、内部
からの出力信号とを分割する機能を有する。
The serial data transfer controller according to the present invention comprises a receiving section 11 for receiving data, a transmitting section 21 for transmitting data, and a port section 3 for separating transmitted / received data.
And 1. The receiving unit 11 transfers the received data to the CPU 10 when receiving the data, and
1 has a function of transmitting transmission data from the CPU 10, and the port unit 31 has a function of dividing an input signal sent from the outside and an output signal from the inside.

【0018】受信部11は、ポート部31より入力され
た受信シリアルデータを受信パラレルデータに変換する
受信用シフタ13と、受信シリアルデータのパリティチ
ェックを行うパリティチェック回路15と、受信用シフ
タ13からのパラレルデータを一旦格納してCPU10
に転送する受信バッファ14と、パリティエラーが発生
した場合、及び、受信バッファ14にオーバーフローエ
ラーが発生した場合にエラー信号を生成するエラータイ
ミング生成回路16(パリティエラー通知回路)と、こ
れらの受信動作を制御する受信制御回路12とを備えて
いる。
The receiving section 11 includes a receiving shifter 13 for converting received serial data input from the port section 31 into received parallel data, a parity check circuit 15 for performing parity check of the received serial data, and a receiving shifter 13. Is stored once and the CPU 10
, An error timing generation circuit 16 (parity error notification circuit) that generates an error signal when a parity error occurs and an overflow error occurs in the reception buffer 14, and a reception operation of these circuits. And a reception control circuit 12 for controlling the

【0019】CPU10は、入力バッファ32が送信デ
ータを受信した場合には、送信データライト信号を送信
制御回路22へ出力する。入力バッファ32が受信シリ
アルデータを受信した場合には、受信データリード信号
を受信制御回路12に出力する。
When the input buffer 32 receives the transmission data, the CPU 10 outputs a transmission data write signal to the transmission control circuit 22. When the input buffer 32 receives the received serial data, it outputs a received data read signal to the reception control circuit 12.

【0020】送信部21は、CPU10から入力された
送信データを一旦格納するための送信バッファ23と、
送信バッファからのデータを送信シリアルデータに変換
する送信用シフタ24と、それらの動作を制御する送信
制御部22とを備えている。
The transmission unit 21 includes a transmission buffer 23 for temporarily storing transmission data input from the CPU 10,
A transmission shifter 24 converts data from the transmission buffer into transmission serial data, and a transmission control unit 22 that controls the operation thereof.

【0021】ポート部31は、送信シリアルデータと、
パリティエラー信号又はオーバーフロー信号とをORす
るORゲート33と、送受信端子からの入力信号を受信
する入力バッファ32及びORゲート33によってOR
された出力信号を送信する出力バッファ34とを備えて
いる。
The port section 31 transmits transmission serial data,
An OR gate 33 for ORing a parity error signal or an overflow signal, an input buffer 32 for receiving an input signal from a transmission / reception terminal, and an OR gate 33
And an output buffer 34 for transmitting the output signal.

【0022】図2は、ホストの送信モード時の送信側
(シリアルデータコントローラA)と端末側(スマート
カード)の受信モード時(シリアルデータコントローラ
B)の接続状態を示すブロック図で、シリアルデータコ
ントローラA及びシリアルデータコントローラBは同様
の構成と機能を有している。
FIG. 2 is a block diagram showing a connection state between the transmission side (serial data controller A) of the host in the transmission mode and the terminal side (smart card) in the reception mode (serial data controller B). A and the serial data controller B have similar configurations and functions.

【0023】図2のシリアルデータコントローラA及び
Bは、図1における受信データを受信部11の受信バッ
ファ14で一旦格納した後にCPUに転送し、受信バッ
ファ14がオーバーフローするとCPUの介在なしにオ
ーバーフロー信号を発生する受信制御回路12と、受信
データのパリティエラーを検出するパリティチェック回
路15と、パリティチェック回路15がパリティエラー
を検出すると送信側にパリティエラー信号を通知するパ
リティエラー通知回路とを備える。受信側からパリティ
エラーの通知を受領するとデータを再送する送信側の送
信部とを備える送受信システムを構成している。
The serial data controllers A and B shown in FIG. 2 temporarily store the received data in FIG. 1 in the receiving buffer 14 of the receiving section 11 and then transfer the data to the CPU. When the receiving buffer 14 overflows, the overflow signal is output without intervention of the CPU. , A parity check circuit 15 for detecting a parity error of received data, and a parity error notification circuit for notifying a transmission side of a parity error signal when the parity check circuit 15 detects a parity error. The transmission / reception system includes a transmission unit on the transmission side that retransmits data upon receiving a parity error notification from the reception side.

【0024】シリアルデータコントローラAの送信制御
回路部22は、CPU10から送信データライト信号を
受けると、tx_write信号を生成し、送信データ
を送信バッファ23に記憶させる。その後、送信制御回
路22は、tx_load信号を生成し、送信バッファ
23内の送信パラレルデータを送信シフタ24にロード
しシリアルデータに変換し、送信シリアルクロックtx
_clockが送信シフタ24に供給される。送信シリ
アルデータは、送信シフタ24により送信シリアルクロ
ックtx_clockに同期してポート部31へ出力さ
れる。ポート部31では、その信号を送信時にLレベル
となっているエラー信号とOR処理された後、出力バッ
ファ34を通して送受信端子へ出力する。
When the transmission control circuit unit 22 of the serial data controller A receives the transmission data write signal from the CPU 10, it generates a tx_write signal and stores the transmission data in the transmission buffer 23. Thereafter, the transmission control circuit 22 generates a tx_load signal, loads the transmission parallel data in the transmission buffer 23 into the transmission shifter 24, converts it into serial data, and
_Clock is supplied to the transmission shifter 24. The transmission serial data is output to the port unit 31 by the transmission shifter 24 in synchronization with the transmission serial clock tx_clock. In the port section 31, the signal is OR-processed with the error signal which is at the L level at the time of transmission, and then output to the transmission / reception terminal through the output buffer.

【0025】シリアルデータコントローラBでは、送受
信端子より受信したデータは、ポート部31内の入力バ
ッファ32を介して受信部11に入力される。受信部1
1内の受信制御回路12では、受信基本クロックrx_
clockにて受信シリアルデータをサンプリングし、
スタートビットが検出されたときに受信シフタ13に対
して、受信シリアルクロックrx_clockが出力さ
れる。受信シフタ13は、rx_clockに同期して
受信シリアルデータを取り込む。受信制御回路12は、
1キャラクタ分のrx_clockを出力し終えたら、
rx_load信号を生成する。受信シフタ13から出
力される受信パラレルデータはrx_load信号のタ
イミングでラッチされ、受信バッファ14に記憶され
る。受信制御回路12では、受信データリード信号を受
けると受信バッファ14内の受信データは端末側CPU
10へ出力される。
In the serial data controller B, the data received from the transmission / reception terminal is input to the reception unit 11 via the input buffer 32 in the port unit 31. Receiver 1
1 in the reception control circuit 12 in the reception basic clock rx_
clock, sample the received serial data,
When the start bit is detected, the reception serial clock rx_clock is output to the reception shifter 13. The reception shifter 13 takes in the received serial data in synchronization with rx_clock. The reception control circuit 12
After outputting rx_clock for one character,
Generate an rx_load signal. The reception parallel data output from the reception shifter 13 is latched at the timing of the rx_load signal and stored in the reception buffer 14. When the reception control circuit 12 receives the reception data read signal, the reception data in the reception buffer 14 is transmitted to the terminal CPU.
It is output to 10.

【0026】図3はISO7816規格に標準化されて
いるシリアルデータを送受信する際のデータフレームフ
ォーマットの構成を示す図である。(a)はパリティエ
ラーが生じなかった場合のフォーマットを示し、(b)
はパリティエラーが生じた場合のフォーマットを示して
いる。この例では、データフレームフォーマットは、ス
タートビット、データビット、パリティビットに合計1
0.5ビットが、エラービットに1.5ビットが、スト
ップビットに1ビットが夫々割り当てられている。
FIG. 3 is a diagram showing a configuration of a data frame format when transmitting and receiving serial data standardized in the ISO7816 standard. (A) shows a format when no parity error occurs, and (b)
Indicates a format when a parity error occurs. In this example, the data frame format is a total of 1 for the start bit, the data bit, and the parity bit.
0.5 bits are assigned to error bits, 1.5 bits are assigned to stop bits, and 1 bit is assigned to stop bits.

【0027】ISO7816規格に従ったパリティチェ
ック方法及びパリティエラー時のエラーリカバリーにつ
いては次のように処理される。パリティチェック回路1
5では、受信制御回路12から出力されるrx_clo
ck信号により受信シリアルデータのパリティチェック
が行われる。パリティチェックの結果がエラーの場合、
エラータイミング生成回路16にパリティエラー信号を
出力し、エラータイミング生成回路16では図3(b)
に示されているデータフレームフォーマットでエラー信
号をHレベルとして出力される。
The parity check method according to the ISO 7816 standard and error recovery at the time of a parity error are processed as follows. Parity check circuit 1
5, rx_clo output from the reception control circuit 12
The parity check of the received serial data is performed by the ck signal. If the parity check results in an error,
A parity error signal is output to the error timing generation circuit 16, and the error timing generation circuit 16 outputs a parity error signal as shown in FIG.
The error signal is output at the H level in the data frame format shown in FIG.

【0028】受信時には、送信シリアルデータはLレベ
ルとなっており、エラーがない場合、エラー信号もLレ
ベルとなっており、ORゲート33の出力もLレベルと
なり、出力バッファ34は非活性であり入力状態となっ
ている。パリティエラー時にそのエラー信号はHレベル
となり、ポート部31のORゲート33にてOR処理さ
れ、出力バッファ34を通じて送受信端子へ出力され
る。
At the time of reception, the transmission serial data is at the L level. When there is no error, the error signal is also at the L level, the output of the OR gate 33 is also at the L level, and the output buffer 34 is inactive. It is in the input state. At the time of the parity error, the error signal becomes H level, is OR-processed by the OR gate 33 of the port unit 31, and is output to the transmission / reception terminal through the output buffer 34.

【0029】ホストの送信側シリアルデータコントロー
ラAの送信制御回路12は、図3(a)、(b)のエラ
ー信号のフレームでエラー信号の判定を行っており、エ
ラー信号を検出した場合に、前と同じデータを再送する
機能を持っているため、CPU10の処理にて再送処理
をすることなく、自動的に再送要求ができる。
The transmission control circuit 12 of the transmission side serial data controller A of the host judges the error signal in the frame of the error signal shown in FIGS. 3A and 3B. Since it has the function of retransmitting the same data as before, a retransmission request can be made automatically without performing retransmission processing in the processing of the CPU 10.

【0030】端末側(スマートカード)のシリアルデー
タコントローラBでは、受信バッファ14内のデータが
受信データリード信号によってリードされる前に、受信
制御回路12は次の受信シリアルデータのスタートビッ
トを検出するとオーバーフロー割り込み信号を生成す
る。
In the terminal (smart card) serial data controller B, before the data in the reception buffer 14 is read by the reception data read signal, the reception control circuit 12 detects the start bit of the next reception serial data. Generate an overflow interrupt signal.

【0031】図1にもどり、エラータイミング生成回路
16には、受信制御回路12によって検出された受信バ
ッファオーバーフロー信号が入力され、その信号がオン
の場合に、図3(b)に示されるデータフレームでパリ
ティエラー時と同様にエラー信号を生成する。このこと
で、従来、必要とされていた受信バッファのオーバーフ
ロー時の受信側CPUを介した再送処理を不要にでき
る。本エラー信号をホスト送信側が受信した場合、エラ
ー処理としてパリティエラー信号を受けた場合と同様
に、エラーとなったデータを再送する。上記構成による
と、受信バッファオーバーフロー信号の入力によりパリ
ティエラー信号を発生でき、ホスト送信側は本信号の入
力によりエラーデータの再送信を繰り返すので、受信側
スマートカードの受信エラーを防ぐことができる。更
に、従来はパリティエラー時のみに可能であったデータ
の自動再送を、受信バッファのオーバーフロー時にも行
うことができる。
Returning to FIG. 1, a reception buffer overflow signal detected by the reception control circuit 12 is input to the error timing generation circuit 16, and when the signal is turned on, the data frame shown in FIG. Generates an error signal as in the case of a parity error. This eliminates the need for the retransmission process via the receiving CPU when the receiving buffer overflows, which has been required conventionally. When this error signal is received by the host transmission side, the error data is retransmitted as in the case of receiving the parity error signal as error processing. According to the above configuration, a parity error signal can be generated by the input of the reception buffer overflow signal, and the host transmission side repeats retransmission of the error data by inputting the signal, so that a reception error of the reception side smart card can be prevented. Further, automatic retransmission of data, which was conventionally possible only at the time of a parity error, can be performed at the time of overflow of the reception buffer.

【0032】[第2の実施の形態]図4は、本発明の第
2の実施の形態例のシリアルデータ転送コントローラの
構成を示すブロック図である。同図では、受信側の端末
(スマートカード)の受信部にオーバーフロー連続発生
回数をカウントする割り込み生成回路17を備える点が
第1の実施の形態例と異なる。その他の構成は第1の実
施の形態例と同様である。
[Second Embodiment] FIG. 4 is a block diagram showing a configuration of a serial data transfer controller according to a second embodiment of the present invention. This figure differs from the first embodiment in that the receiving unit of the terminal (smart card) on the receiving side is provided with an interrupt generation circuit 17 for counting the number of continuous overflows. Other configurations are the same as those of the first embodiment.

【0033】端末側(スマートカード)の受信部11で
は、オーバーフロー連続発生回数をカウントする割り込
み生成回路17を備えているので、そのカウント数がパ
リティエラー発生時のホスト送信側の再送回数以内に受
信データを取り込めない場合に、CPU10に対してオ
ーバーフロー割り込み信号を発生し、CPU10に送信
側の再送機能によって回復不可能なエラーを通知でき
る。このように、必要な時にのみCPUを稼働させるこ
とで、CPUのオーバーフローエラー処理に必要な負荷
を少なくできる。
Since the receiving section 11 on the terminal side (smart card) includes the interrupt generation circuit 17 for counting the number of continuous overflows, the count is received within the number of retransmissions on the host transmitting side when a parity error occurs. When data cannot be captured, an overflow interrupt signal is generated for the CPU 10 to notify the CPU 10 of an unrecoverable error by the retransmission function on the transmission side. In this way, by operating the CPU only when necessary, the load required for the overflow error processing of the CPU can be reduced.

【0034】以上、本発明をその好適な実施の形態に基
づいて説明したが、本発明のシリアルデータ転送コント
ローラは、上記実施の形態の構成にのみに限定されるも
のでなく、上記実施の形態の構成から種々の修正および
変更を施したシリアルデータ転送コントローラも、本発
明の範囲に含まれる。
Although the present invention has been described based on the preferred embodiment, the serial data transfer controller of the present invention is not limited to the configuration of the above-described embodiment, but is limited to the above-described embodiment. The serial data transfer controller obtained by making various modifications and changes from the configuration described in the above is also included in the scope of the present invention.

【0035】例えば、上記実施例の上位装置は、CPU
に代えてDMA(Direct Memory Acc
ess)とすることができる。また、上記実施例のIC
カードはスマートカードを含み、この場合、カードホス
トとしての機能を持たせることもできる。スマートカー
ドの応用例としてIDカードの機能に加えて通信販売に
おける課金情報の提供がある。また、従来の預金通帳に
代わるものとしての応用例がある。
For example, the host device of the above embodiment is a CPU
DMA (Direct Memory Acc)
ess). The IC of the above embodiment
The card includes a smart card, and in this case, it can also function as a card host. As an application example of the smart card, there is a provision of billing information in mail-order sales in addition to the function of the ID card. There is also an application example as an alternative to the conventional bankbook.

【0036】[0036]

【発明の効果】本発明のシリアルデータ転送コントロー
ラによれば、受信バッファのオーバーフローの発生時に
受信側CPUの介在なしに、又は、CPUの介在を制限
して再送要求できるシリアルデータ転送コントローラを
提供できる。
According to the serial data transfer controller of the present invention, it is possible to provide a serial data transfer controller capable of requesting retransmission without the intervention of the receiving CPU or with limited intervention of the CPU when the overflow of the reception buffer occurs. .

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

【図1】本発明の第1の実施形態を示すシリアルデータ
転送コントローラの構成とこれを制御するCPUと共に
示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a serial data transfer controller according to a first embodiment of the present invention and a CPU that controls the controller.

【図2】ホスト側と端末側の接続例を示すブロック図で
ある。
FIG. 2 is a block diagram illustrating a connection example between a host and a terminal.

【図3】一般的なデータフレームフォーマットの構成を
示す図であり、(a)はパリティエラーが生じなかった
場合を示し、(b)はパリティエラーが生じた場合を示
す。
3A and 3B are diagrams illustrating a configuration of a general data frame format, where FIG. 3A illustrates a case where a parity error does not occur, and FIG. 3B illustrates a case where a parity error occurs.

【図4】本発明の第2の実施形態を示すシリアルデータ
転送コントローラの構成とこれを制御するCPUと共に
示すブロック図である。
FIG. 4 is a block diagram showing a configuration of a serial data transfer controller according to a second embodiment of the present invention and a CPU for controlling the serial data transfer controller;

【図5】従来のシリアルデータ転送コントローラの構成
とこれを制御するCPUと共に示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a conventional serial data transfer controller and a CPU for controlling the configuration.

【符号の説明】[Explanation of symbols]

10 CPU 11 受信部 12 受信制御回路 13 受信用シフタ 14 受信バッファ 15 パリティチェック回路 16 エラータイミング生成回路 17 割り込み生成回路 21 送信部 22 送信制御回路 23 送信バッファ 24 送信シフタ 31 ポート部 32 入力バッファ 33 ORゲート 34 出力バッファ REFERENCE SIGNS LIST 10 CPU 11 reception unit 12 reception control circuit 13 reception shifter 14 reception buffer 15 parity check circuit 16 error timing generation circuit 17 interrupt generation circuit 21 transmission unit 22 transmission control circuit 23 transmission buffer 24 transmission shifter 31 port unit 32 input buffer 33 OR Gate 34 output buffer

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI H04L 25/40 H04L 25/40 E ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 6 Identification code FI H04L 25/40 H04L 25/40 E

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 シリアル入力データをパラレルデータに
変換するための受信バッファと、前記シリアル入力デー
タのパリティチェックを行いパリティエラーを検出した
時に前記シリアル入力データを送信した送信側にパリテ
ィエラー信号を送出するパリティチェック回路部とを備
えた受信部を有するシリアルデータ転送コントローラに
おいて、 前記受信バッファがオーバーフローした時に前記受信バ
ッファがオーバーフローしたことを示す信号を前記パリ
ティエラー信号に代えて前記送信側に送出することを特
徴とするシリアルデータ転送コントローラ。
1. A receiving buffer for converting serial input data into parallel data, and a parity error signal is transmitted to a transmitting side which transmitted the serial input data when a parity error of the serial input data was detected by detecting a parity error of the serial input data. A serial data transfer controller having a receiving unit provided with a parity check circuit unit, wherein when the receiving buffer overflows, a signal indicating that the receiving buffer has overflowed is sent to the transmitting side instead of the parity error signal. A serial data transfer controller, characterized in that:
【請求項2】 前記受信バッファがオーバーフローした
回数をカウントするカウント部を備え、該カウント部に
よるカウントが所定回数に達すると受信側の上位装置に
割込み信号を発生することを特徴とする、請求項1に記
載のシリアルデータ転送コントローラ。
2. The apparatus according to claim 1, further comprising: a counting section for counting the number of times the reception buffer overflows, wherein when the counting by the counting section reaches a predetermined number, an interrupt signal is generated to a host device on the receiving side. 2. The serial data transfer controller according to 1.
【請求項3】 前記上位装置がDMAである、請求項1
又は2のいずれかに記載のシリアルデータ転送コントロ
ーラ。
3. The system according to claim 1, wherein said higher-level device is a DMA.
Or the serial data transfer controller according to any one of 2.
【請求項4】 請求項1乃至3の何れか一に記載のシリ
アルデータ転送コントローラを備えるICカード。
4. An IC card comprising the serial data transfer controller according to claim 1.
【請求項5】 請求項1乃至4の何れか一に記載のシリ
アルデータ転送コントローラ及び送受信機能を備えホス
トとしての機能を有するICカード。
5. An IC card having the serial data transfer controller according to claim 1 and a transmission / reception function and having a function as a host.
【請求項6】 受信データを一旦格納した後に上位装置
に転送する受信バッファと、該受信バッファがオーバー
フローするとオーバーフロー信号を発生するオーバーフ
ロー検出回路と、前記受信データのパリティエラーを検
出するパリティエラー検出回路と、該パリティエラー検
出回路がパリティエラーを検出すると送信側にパリティ
エラー信号を通知するパリティエラー通知回路とを備え
る受信部と、受信側から前記パリティエラーの通知を受
領するとデータを再送する送信側の送信部とを備える送
受信システムのシリアルデータ転送コントローラにおい
て、 送信シリアルデータと、前記オーバーフロー信号又は前
記パリティエラー信号とを選択するセレクタを備え、前
記パリティエラー通知回路は、前記パリティエラー信号
に代えて該セレクタの出力を送信側に通知することを特
徴とするシリアルデータ転送コントローラ。
6. A receiving buffer for temporarily storing received data and transferring it to a host device, an overflow detecting circuit for generating an overflow signal when the receiving buffer overflows, and a parity error detecting circuit for detecting a parity error of the received data. A receiving unit including a parity error notifying circuit that notifies a transmitting side of a parity error signal when the parity error detecting circuit detects a parity error; and a transmitting side that retransmits data when receiving the parity error notification from the receiving side. And a selector for selecting the transmission serial data and the overflow signal or the parity error signal, wherein the parity error notification circuit replaces the parity error signal. The cell Serial data transfer controller and notifies the sender of the output connectors.
【請求項7】 前記受信バッファがオーバーフローした
回数をカウントするカウント部を備え、該カウント部に
よるカウントが所定回数に達すると受信側の上位装置に
割込み信号を発生することを特徴とする、請求項6に記
載のシリアルデータ転送コントローラ。
7. The apparatus according to claim 1, further comprising a counting unit for counting the number of times the reception buffer overflows, wherein an interrupt signal is generated to a higher-level device on the receiving side when the count by the counting unit reaches a predetermined number. 7. The serial data transfer controller according to item 6.
【請求項8】 前記上位装置がDMAである、請求項6
又は7のいずれかに記載のシリアルデータ転送コントロ
ーラ。
8. The system according to claim 6, wherein said higher-level device is a DMA.
Or a serial data transfer controller according to any one of claims 7 to 7.
【請求項9】 請求項6乃至8の何れか一に記載のシリ
アルデータ転送コントローラを備えるICカード。
9. An IC card comprising the serial data transfer controller according to claim 6.
【請求項10】 請求項6乃至9の何れか一に記載のシ
リアルデータ転送コントローラ及び送受信機能を備えホ
ストとしての機能を有するICカード。
10. An IC card having the serial data transfer controller according to claim 6 and a transmission / reception function and having a function as a host.
JP10096087A 1998-04-08 1998-04-08 Serial data transfer controller Pending JPH11298450A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10096087A JPH11298450A (en) 1998-04-08 1998-04-08 Serial data transfer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10096087A JPH11298450A (en) 1998-04-08 1998-04-08 Serial data transfer controller

Publications (1)

Publication Number Publication Date
JPH11298450A true JPH11298450A (en) 1999-10-29

Family

ID=14155626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10096087A Pending JPH11298450A (en) 1998-04-08 1998-04-08 Serial data transfer controller

Country Status (1)

Country Link
JP (1) JPH11298450A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1701244A1 (en) * 2003-12-09 2006-09-13 Matsushita Electric Industrial Co., Ltd. Electronic device, control method thereof, host device, and control method thereof
JP2008176362A (en) * 2007-01-16 2008-07-31 Ricoh Co Ltd Data conversion device, data conversion method, and electronic device
JP2008269335A (en) * 2007-04-20 2008-11-06 Ricoh Co Ltd Data transfer integrated circuit and data transfer device
JP2008287558A (en) * 2007-05-18 2008-11-27 Renesas Technology Corp Semiconductor device and microcomputer

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1701244A1 (en) * 2003-12-09 2006-09-13 Matsushita Electric Industrial Co., Ltd. Electronic device, control method thereof, host device, and control method thereof
CN100437456C (en) * 2003-12-09 2008-11-26 松下电器产业株式会社 Electronic device, control method thereof, host device, and control method thereof
EP1701244A4 (en) * 2003-12-09 2008-12-24 Panasonic Corp Electronic device, control method thereof, host device, and control method thereof
US7774508B2 (en) 2003-12-09 2010-08-10 Panasonic Corporation Electronic apparatus, control method thereof, host device, and control method thereof
JP2008176362A (en) * 2007-01-16 2008-07-31 Ricoh Co Ltd Data conversion device, data conversion method, and electronic device
JP2008269335A (en) * 2007-04-20 2008-11-06 Ricoh Co Ltd Data transfer integrated circuit and data transfer device
JP2008287558A (en) * 2007-05-18 2008-11-27 Renesas Technology Corp Semiconductor device and microcomputer

Similar Documents

Publication Publication Date Title
US4710871A (en) Data transmitting and receiving apparatus
US6483845B1 (en) Packet transmitter-receiver and packet receiver
JP3028815B2 (en) Transmission method of portable electronic device and portable electronic device
EP1845475A1 (en) Communication medium, communication medium processing apparatus, and communication medium processing system
US6862283B2 (en) Method and apparatus for maintaining packet ordering with error recovery among multiple outstanding packets between two devices
EP0384078B1 (en) Network and protocol for real-time control of machine operations
CN109154925A (en) Communication equipment, communication means, program and communication system
JPH11298450A (en) Serial data transfer controller
US5228129A (en) Synchronous communication interface for reducing the effect of data processor latency
US6604154B1 (en) Data processing device
KR100562505B1 (en) Integrated circuit card capable of automatically transmitting null byte information without intervention by cpu
EP0376513B1 (en) Communication network and protocol for real-time control of mailing machine operations
US6700887B1 (en) Packet transfer apparatus which generates access reject command during a DMA transfer
JP2527251B2 (en) IC card
KR900004663B1 (en) Data communication interface circuit
JPH0344465B2 (en)
EP0285335A2 (en) Data communication system and method
JPH11234347A (en) Buffer management method and system in data communication
JP3110382B2 (en) Data receiving circuit for contactless IC card
US20080256273A1 (en) Serial communication method and serial communication system
US20020099890A1 (en) Apparatus and method for processing interruptions in a data transmission over a bus
US6519661B1 (en) Method for recording data in a telecommunications switching center
JP2615982B2 (en) Communication error recovery method and device
JP2843449B2 (en) Data transfer device
JPH08149153A (en) Virtual buffer control system in relay computer