Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3186247B2 - DMA controller for communication - Google Patents
[go: Go Back, main page]

JP3186247B2 - DMA controller for communication - Google Patents

DMA controller for communication

Info

Publication number
JP3186247B2
JP3186247B2 JP25590292A JP25590292A JP3186247B2 JP 3186247 B2 JP3186247 B2 JP 3186247B2 JP 25590292 A JP25590292 A JP 25590292A JP 25590292 A JP25590292 A JP 25590292A JP 3186247 B2 JP3186247 B2 JP 3186247B2
Authority
JP
Japan
Prior art keywords
data
dma
communication
shift register
register
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
JP25590292A
Other languages
Japanese (ja)
Other versions
JPH0683758A (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.)
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 JP25590292A priority Critical patent/JP3186247B2/en
Publication of JPH0683758A publication Critical patent/JPH0683758A/en
Application granted granted Critical
Publication of JP3186247B2 publication Critical patent/JP3186247B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、通信制御装置内の通信
用DMAコントローラに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication DMA controller in a communication control device.

【0002】[0002]

【従来の技術】従来の技術について、図2,図4を参照
しながら説明を行う。図2は、通信用DMAコントロー
ラに接続される周辺回路構成を示している。図2におい
て、201はDMA転送数や動作モード・コマンドなど
の通信用DMAコントローラ202の動作に必要なデー
タを通信用DMAコントローラ202に設定するCP
U、202はシリアルデータをパラレルデータに変換
し、CPUを介さずにメモリ203へデータをダイレク
ト・メモリ・アクセス(以下、DMAという)転送する
通信用DMAコントローラ、203は受信したデータを
格納しておくメモリ、111は相互のデータ転送時に使
用するデータバス、112はシリアルデータに同期した
クロックの信号線、113は受信するシリアルデータの
信号線である。
2. Description of the Related Art A conventional technique will be described with reference to FIGS. FIG. 2 shows a configuration of a peripheral circuit connected to the communication DMA controller. In FIG. 2, a CP 201 sets data necessary for the operation of the communication DMA controller 202 such as the number of DMA transfers and an operation mode command in the communication DMA controller 202.
U and 202 are communication DMA controllers for converting serial data into parallel data and transferring the data to a memory 203 without a CPU via direct memory access (hereinafter referred to as DMA). Memory, 111 is a data bus used for mutual data transfer, 112 is a clock signal line synchronized with serial data, and 113 is a serial data signal line to be received.

【0003】図4は、通信用コントローラ202内部
で、シリアルデータの受信部である。図4において、1
01は通信用DMAコントローラ202外部へ転送され
るまで受信データを格納しておく受信データバッファ、
102は受信クロック線112のクロック信号により受
信シリアルデータをパラレルデータに変換する受信シフ
トレジスタ、401はDMA転送するデータ数をCPU
201から設定するDMA転送数レジスタ、111は種
々のデータ転送時に使用するデータバス、112はシリ
アルデータに同期したクロックの信号線、113は受信
するシリアルデータの信号線、114は受信シフトレジ
スタ102でシリアルデータからパラレルデータに変換
し終わるとアクティブになり受信データバッファ101
にデータを書き込む受信データ書き込み制御信号線であ
る。
FIG. 4 shows a serial data receiving unit in the communication controller 202. In FIG. 4, 1
01 is a reception data buffer for storing reception data until transferred to the outside of the communication DMA controller 202;
Reference numeral 102 denotes a reception shift register which converts received serial data into parallel data in accordance with a clock signal of a reception clock line 112, and 401 denotes a CPU which indicates the number of data to be DMA-transferred.
DMA transfer number register set from 201, 111 is a data bus used for various data transfer, 112 is a clock signal line synchronized with serial data, 113 is a serial data signal line to be received, and 114 is a reception shift register 102. When the serial data is converted into parallel data, the reception data buffer 101 becomes active.
This is a received data write control signal line for writing data to.

【0004】受信データをメモリ203へDMA転送す
る際、DMA転送に先立って通信用DMAコントローラ
202へ転送数を設定しておく必要がある。この転送数
は、通常、受信シリアルデータの先頭データから2〜3
番目データの位置にあり、従来では、この転送数を示す
データを受信シフトレジスタ102で受信するとCPU
201が受信データバッファ101を通して一旦読み出
した後、DMA転送数レジスタ401へ書き込み、DM
A転送を開始していた。
When the received data is DMA-transferred to the memory 203, it is necessary to set the number of transfers to the communication DMA controller 202 prior to the DMA transfer. Usually, the number of transfers is 2 to 3 from the head data of the received serial data.
Conventionally, when the data indicating the number of transfers is received by the reception shift register 102,
201 once reads through the receive data buffer 101, writes to the DMA transfer number register 401,
A transfer had been started.

【0005】[0005]

【発明が解決しようとする課題】シリアルデータを受信
し、メモリへデータをDMA転送する際、DMA転送の
回数は、シリアルデータからCPUが読み取り、通信用
DMAコントローラへCPUが設定する必要があり、C
PUに負担をかけていた。
When serial data is received and the data is DMA-transferred to the memory, the number of DMA transfers must be read by the CPU from the serial data and set by the CPU to the communication DMA controller. C
I was putting a burden on the PU.

【0006】本発明の目的は、CPUの負担を軽くした
通信用DMAコントローラを提供することにある。
An object of the present invention is to provide a communication DMA controller with a light load on the CPU.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するた
め、本発明に係る通信用DMAコントローラは、シリア
ルデータをパラレルデータに変換するシフトレジスタ
と、前記シフトレジスタが出力するパラレルデータを格
納するデータバッファと、CPUにより所定の設定値が
格納されるカウンタと、前記CPUにより前記コマンド
をアクティブにするコマンドが格納されるコマンドレジ
スタとを備え、前記シフトレジスタが前記データバッフ
ァにパラレルデータを転送する回数を前記カウントでカ
ウントし、そのカウント値が前記設定値と一致したとき
の前記パラレルデータの値をDMA転送数としてDMA
転送の起動をかけるものである。
In order to achieve the above object, a communication DMA controller according to the present invention comprises a shift register for converting serial data into parallel data, and a data for storing parallel data output from the shift register. A buffer for storing a predetermined set value by the CPU; and a command register for storing a command for activating the command by the CPU, the number of times the shift register transfers parallel data to the data buffer. was counted by said count, DMA values of the parallel data when the count value matches with the set value as the DMA transfer count
This is to start the transfer.

【0008】[0008]

【作用】受信したシリアルデータをメモリへDMA転送
する際、シリアルデータを含んで連続して送られるデー
タを、CPUが介在することなく、DMA転送を制御す
るレジスタに格納する。これによりCPUの負担が軽減
される。
When the received serial data is DMA-transferred to the memory, the continuously transmitted data including the serial data is stored in a register for controlling the DMA transfer without the intervention of the CPU. This reduces the load on the CPU.

【0009】[0009]

【実施例】以下、本発明について図を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0010】(実施例1)図1は、本発明の実施例1に
係る通信用コントローラ202内部のシリアルデータ受
信部を示すブロック図である。
(First Embodiment) FIG. 1 is a block diagram showing a serial data receiving section inside a communication controller 202 according to a first embodiment of the present invention.

【0011】図1において、101は通信用DMAコン
トローラ202外部へ転送されるまで受信データを格納
しておく受信データバッファ、102は受信クロック線
112のクロック信号により受信シリアルデータをパラ
レルデータに変換する受信シフトレジスタ、103はD
MA転送するデータ数をCPU201から設定できるだ
けでなく、書き込み制御信号115がアクティブになる
と受信シフトレジスタ102からのデータを取り込むD
MA転送数レジスタである。
In FIG. 1, reference numeral 101 denotes a reception data buffer for storing reception data until the data is transferred to the outside of the communication DMA controller 202. 102 converts received serial data into parallel data in accordance with a clock signal of a reception clock line 112. Receive shift register, 103 is D
Not only can the number of data to be transferred by the MA be set from the CPU 201, but also when the write control signal 115 becomes active, the data from the reception shift register 102 is fetched.
This is the MA transfer number register.

【0012】104は受信データ書き込み制御信号11
4がアクティブになる回数を計数し、あらかじめCPU
201が設定した値と比較し、一致すると書き込み制御
信号115をアクティブにするカウンタ回路、105は
通信用DMAコントローラ202の動作を決めるコマン
ドデータをCPU201からの設定で格納するコマンド
レジスタ、111は種々のデータ転送時に使用するデー
タバスである。
Reference numeral 104 denotes a received data write control signal 11
4 becomes active and counts
A counter circuit which compares the value with the value set by 201 and activates the write control signal 115 when they coincide with each other. 105 is a command register for storing command data for determining the operation of the communication DMA controller 202 by setting from the CPU 201; This is a data bus used during data transfer.

【0013】112はシリアルデータに同期したクロッ
クの信号線、113は受信するシリアルデータの線、1
14は受信シフトレジスタ102でシリアルデータから
パラレルデータに変換し終わるとアクティブになり受信
データバッファ101にデータを書き込むと共にDMA
転送制御回路へ出力しDMA転送の起動信号となる受信
データ書き込み制御信号線である。
Reference numeral 112 denotes a clock signal line synchronized with the serial data, 113 denotes a serial data line to be received, 1
Reference numeral 14 denotes a reception shift register 102 which is activated when the conversion from serial data to parallel data is completed, writes data into the reception data buffer 101, and performs DMA transfer.
This is a received data write control signal line that is output to the transfer control circuit and serves as a DMA transfer start signal.

【0014】115は受信シフトレジスタ102のデー
タをDMA転送数レジスタ103へ設定する書き込み制
御信号線、116はコマンドレジスタ105に設定され
たデータによりアクティブになりカウンタ回路104の
動作を開始させるカウンタ制御信号である。
Reference numeral 115 denotes a write control signal line for setting the data of the reception shift register 102 to the DMA transfer number register 103. Reference numeral 116 denotes a counter control signal which is activated by the data set in the command register 105 and starts the operation of the counter circuit 104. It is.

【0015】シリアルデータの先頭から3番目のデータ
が以下連続して送られてくるシリアルデータの数である
とすると、CPU201からカウンタ回路104には
「3」を設定し、カウンタ制御信号116がアクティブ
になるようにデータをコマンドレジスタ103に書き込
む。
Assuming that the third data from the head of the serial data is the number of serial data transmitted continuously, the CPU 201 sets "3" in the counter circuit 104, and the counter control signal 116 is activated. Is written to the command register 103 so that

【0016】カウンタ制御信号116がアクティブにな
ることにより、3番目のシリアルデータを受信シフトレ
ジスタ102で受信すると、受信データ書き込み制御信
号線114はアクティブになる。
When the third serial data is received by the reception shift register 102 by the activation of the counter control signal 116, the reception data write control signal line 114 becomes active.

【0017】この3回目のアクティブ信号でカウンタ回
路104ではアクティブ信号の計数結果が設定値「3」
と一致することにより、書き込み制御信号線115がア
クティブになる。この書き込み制御信号線115のアク
ティブによりDMA転送数レジスタ103には受信シフ
トレジスタ102から3番目のシリアルデータが格納さ
れ、DMA転送制御回路へDMA転送の起動をかける。
In the third active signal, the count result of the active signal is set to "3" in the counter circuit 104.
And the write control signal line 115 becomes active. By the activation of the write control signal line 115, the third serial data from the reception shift register 102 is stored in the DMA transfer number register 103, and the DMA transfer control circuit is activated.

【0018】(実施例2)図3は、本発明の実施例2を
示すブロック図である。図3において、同記号、同名称
は同じ機能を備えることを示しており、実施例1とは以
下の点で異なる。すなわち、本実施例では、DMA転送
数レジスタ103へ格納するデータは、受信データバッ
ファ101から取り込むように構成されている。
(Embodiment 2) FIG. 3 is a block diagram showing Embodiment 2 of the present invention. In FIG. 3, the same symbols and the same names indicate that they have the same functions, and are different from the first embodiment in the following points. That is, in this embodiment, the data stored in the DMA transfer number register 103 is configured to be fetched from the reception data buffer 101.

【0019】[0019]

【発明の効果】以上説明したように本発明においては、
従来の通信用DMAコントローラに、DMA転送の回数
を設定するレジスタへシフトレジスタまたはデータバッ
ファ内のデータを転送し格納する信号を出力するカウン
タ回路を設けることにより、従来のようにCPUがシリ
アルデータから受信するデータ数を読み取り、DMA転
送を制御するレジスタに設定する必要がなくDMA転送
を開始できるため、CPUの命令にして5〜10命令
分、CPUの負担を軽くすることができるという効果が
ある。
As described above, in the present invention,
A conventional communication DMA controller is provided with a counter circuit for outputting a signal for transferring and storing data in a shift register or a data buffer to a register for setting the number of times of DMA transfer, so that the CPU can convert serial data from the serial data. Since there is no need to read the number of data to be received and set the DMA transfer control register, DMA transfer can be started, so that the CPU load can be reduced by 5 to 10 instructions. .

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

【図1】本発明の実施例1を示すブロック図である。FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】通信用DMAコントローラの周辺回路構成を示
す図である。
FIG. 2 is a diagram showing a peripheral circuit configuration of a communication DMA controller.

【図3】本発明の実施例2を示すブロック図である。FIG. 3 is a block diagram showing a second embodiment of the present invention.

【図4】従来例を示すブロック図である。FIG. 4 is a block diagram showing a conventional example.

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

101 受信データバッファ 102 受信シフトレジスタ 103 DMA転送数レジスタ 104 カウンタ回路 105 コマンドレジスタ 111 データバス 112 受信クロック信号線 113 受信シリアルデータ線 114 受信データ書き込み制御信号線 115 書き込み制御信号線 116 カウンタ制御信号線 201 CPU 202 通信用DMAコントローラ 203 メモリ 401 DMA転送数レジスタ Reference Signs List 101 reception data buffer 102 reception shift register 103 DMA transfer number register 104 counter circuit 105 command register 111 data bus 112 reception clock signal line 113 reception serial data line 114 reception data write control signal line 115 write control signal line 116 counter control signal line 201 CPU 202 DMA controller for communication 203 Memory 401 DMA transfer number register

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 シリアルデータをパラレルデータに変換
するシフトレジスタと、 前記シフトレジスタが出力するパラレルデータを格納す
るデータバッファと、 CPUにより所定の設定値が格納されるカウンタと、 前記CPUにより前記カウンタをアクティブにするコマ
ンドが格納されるコマンドレジスタとを備え、 前記シフトレジスタが前記データバッファにパラレルデ
ータを転送する回数を前記カウンタでカウントし、その
カウント値が前記設定値と一致したときの前記パラレル
データの値をDMA転送数としてDMA転送の起動をか
けることを特徴とする通信用DMAコントローラ。
A shift register for converting serial data into parallel data; a data buffer for storing parallel data output from the shift register; a counter for storing a predetermined set value by a CPU; A command register in which a command for activating the shift register is stored.The counter counts the number of times the shift register transfers parallel data to the data buffer, and the parallel when the count value matches the set value. DMA controller for communication, characterized by subjecting the activation of the DMA transfer values of data as DMA transfer count.
JP25590292A 1992-08-31 1992-08-31 DMA controller for communication Expired - Fee Related JP3186247B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25590292A JP3186247B2 (en) 1992-08-31 1992-08-31 DMA controller for communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25590292A JP3186247B2 (en) 1992-08-31 1992-08-31 DMA controller for communication

Publications (2)

Publication Number Publication Date
JPH0683758A JPH0683758A (en) 1994-03-25
JP3186247B2 true JP3186247B2 (en) 2001-07-11

Family

ID=17285163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25590292A Expired - Fee Related JP3186247B2 (en) 1992-08-31 1992-08-31 DMA controller for communication

Country Status (1)

Country Link
JP (1) JP3186247B2 (en)

Also Published As

Publication number Publication date
JPH0683758A (en) 1994-03-25

Similar Documents

Publication Publication Date Title
KR100348545B1 (en) Communication dma device
JP2000020451A (en) Device and method for processing information and provision method
JP3186247B2 (en) DMA controller for communication
JP2624388B2 (en) DMA device
JP3196661B2 (en) Data transmission device
JPS61166647A (en) Accessing for reading out information microprocessor and addressable memory
JPH0140432B2 (en)
JPH0222748A (en) Non-volatile memory control circuit
JP4097377B2 (en) Microcomputer
JP2574821B2 (en) Direct memory access controller
JP2570986B2 (en) Data transfer control device and method
JPH01175056A (en) Program transfer system
JPS586172B2 (en) Interface method
JPS581812B2 (en) data processing system
JPS63292356A (en) Dma controller
JPH09259074A (en) Memory access circuit
JPH08202650A (en) Dma transfer controller
JPS5999522A (en) Input and output control system
JPH0525216B2 (en)
JPS6059462A (en) Pipeline access memory of bi-directional data bus
JPH04306754A (en) Dma controller
JPH0830502A (en) Circuit for continuous writing in flash memory
JPH0573473A (en) Industrial computer system
JPS63268056A (en) Bus converting device
JPH03214944A (en) Cyclic transmission type self-diagnosis device

Legal Events

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