JPH113311A - Dma circuit - Google Patents

Dma circuit

Info

Publication number
JPH113311A
JPH113311A JP15385897A JP15385897A JPH113311A JP H113311 A JPH113311 A JP H113311A JP 15385897 A JP15385897 A JP 15385897A JP 15385897 A JP15385897 A JP 15385897A JP H113311 A JPH113311 A JP H113311A
Authority
JP
Japan
Prior art keywords
dma
cpu
circuit
signal
memory access
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.)
Abandoned
Application number
JP15385897A
Other languages
Japanese (ja)
Inventor
Kenji Hara
憲二 原
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP15385897A priority Critical patent/JPH113311A/en
Publication of JPH113311A publication Critical patent/JPH113311A/en
Abandoned legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To attain direct memory access(DMA) transfer by inexpensive hardware constitution by executing a memory access to a RAM through a 2nd bidirectional buffer based on a signal from a CPU. SOLUTION: When the execution of an access from the CPU 101 to a ROM 102 is confirmed based on a bus cycle start signal BCST issued from the CPU 101, chip select signals CSO# to CSN#, etc., the DMA circuit 104 executes a memory access to a RAM 103-i (i=1 to N) through a 2nd bidirectional buffer 109-i (i=1 to N). When the execution of a memory access from the CPU 101 to a certain RAM 103-i is confirmed by any one of the chip select signals CSO# to CSN#, the DMA circuit 104 executes a memory access to a RAM 103-i other than the RAM 103-i concerned.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ダイレクトメモリ
アクセス(以下、「DMA」(Direct Memory Access)
という。)を可能としたDMA回路に係り、特に、バス
調停回路や複雑なタイミング制御を行う回路等を不要と
し、CPUからのメモリアクセスとDMAにおけるバス
競合をより少ないハードウェアで回避でき、低コストの
ハードウェア構成でDMAを可能としたDMA回路に関
する。
The present invention relates to a direct memory access (hereinafter, referred to as "DMA").
That. In particular, the present invention does not require a bus arbitration circuit or a circuit for performing complicated timing control, and can avoid a memory access from the CPU and a bus conflict in the DMA with less hardware. The present invention relates to a DMA circuit that enables DMA with a hardware configuration.

【0002】[0002]

【従来の技術】DMAは、CPUを介さずにバスに接続
されたメモリとのデータのやり取りを行うデータ転送方
式であり、通常は、DMAによるデータ転送を制御する
ためのDMAコントローラをDMA回路内に備え、該D
MAコントローラの制御の下に行われる。このような従
来のDMA転送を可能としたDMA回路としては、例え
ば、特開平6−187285号公報に記載されている図
5に示すようなものがある。同図において、従来例のこ
のDMA回路は、CPU501と、読み出し可能な第1
の記憶手段(以下、「ROM」という。)502と、読
み出しおよび書き込み可能な第2の記憶手段(以下、
「RAM」という。)503と、DMAコントローラ5
04と、I/O505とを備えて構成され、CPU50
1・ROM502・RAM503・およびDMAコント
ローラ504を、データバスおよびアドレスバスを含む
システムバス510で結合した構成である。DMAによ
るデータ転送を行う時には、DMAコントローラ504
は、CPU501に対してホールド(HOLD)をかけ
て、CPU501をホールド状態(停止状態)にした後
に、DMAコントローラ504がシステムバス510の
占有権を確保し、システムバス510を介したROM5
02またはRAM503に対するアクセスを行って、デ
ータ転送を行っていた。また、CPU501に対してホ
ールド(HOLD)をかけて、CPU501の実行を停
止することを忌避する場合には、DMAを行うROM5
02またはRAM503をシステムバス510から切断
制御できる構成とし、DMAによるデータ転送を実行し
ている間は、CPU501からの該DMAを行うROM
502またはRAM503へのアクセスを禁止するよう
に制御していた。
2. Description of the Related Art DMA is a data transfer system for exchanging data with a memory connected to a bus without passing through a CPU. Usually, a DMA controller for controlling data transfer by DMA is provided in a DMA circuit. In preparation for D
It is performed under the control of the MA controller. As a conventional DMA circuit capable of performing such a DMA transfer, for example, there is a DMA circuit shown in FIG. 5 described in Japanese Patent Application Laid-Open No. 6-187285. In this figure, a conventional DMA circuit includes a CPU 501 and a readable first
(Hereinafter referred to as “ROM”) 502 and a readable and writable second storage means (hereinafter referred to as “ROM”).
It is called "RAM". ) 503 and DMA controller 5
04 and an I / O 505.
1, a ROM 502, a RAM 503, and a DMA controller 504 are connected by a system bus 510 including a data bus and an address bus. When performing data transfer by DMA, the DMA controller 504
Holds the CPU 501 and puts the CPU 501 in a hold state (stop state), and then the DMA controller 504 secures the occupation right of the system bus 510 and the ROM 5 via the system bus 510.
02 or the RAM 503 to perform data transfer. If it is necessary to hold the CPU 501 and stop the execution of the CPU 501, the ROM 5 that performs DMA is used.
02 or the RAM 503 can be controlled to be disconnected from the system bus 510, and while the data transfer by the DMA is being executed, the ROM for performing the DMA from the CPU 501 is used.
Control was performed to prohibit access to 502 or RAM 503.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記の
ようなDMA回路にあっては、CPU501をホールド
状態(停止状態)にしてDMAによるデータ転送を行う
方式では、DMA転送の間、CPU501を利用できな
いために、DMA回路の利用効率が悪いという問題点が
あった。また、DMAを行うROM502またはRAM
503をシステムバス510から切断制御する方式で
は、システムバス510の使用権を調停してアクセスの
アビテーションを行うバス調停回路や複雑なタイミング
制御を行う回路等を必要とし、またそのバス調停におい
てバス使用が競合する際には、CPU501またはDM
A転送を利用できないこととなり、ハードウェアの構成
および制御が複雑で、しかもDMA回路の利用効率も改
善されないという問題点があった。本発明は、上記従来
の問題点に鑑みてなされたものであって、バス調停回路
や複雑なタイミング制御を行う回路等を不要とし、CP
UからのメモリアクセスとDMA転送におけるバス競合
をより少ないハードウェアで回避でき、低コストのハー
ドウェア構成でDMA転送を可能としたDMA回路を提
供することを目的としている。
However, in the above-described DMA circuit, in the system in which the CPU 501 is in the hold state (stop state) and the data is transferred by DMA, the CPU 501 cannot be used during the DMA transfer. Therefore, there is a problem that the utilization efficiency of the DMA circuit is poor. ROM 502 or RAM for performing DMA
The method of controlling the disconnection of the system bus 503 from the system bus 510 requires a bus arbitration circuit that arbitrates the right to use the system bus 510 and arbitrates access, a circuit that performs complicated timing control, and the like. When use conflicts, the CPU 501 or DM
Since the A transfer cannot be used, there has been a problem that the configuration and control of the hardware are complicated and the utilization efficiency of the DMA circuit is not improved. The present invention has been made in view of the above-described conventional problems, and eliminates the need for a bus arbitration circuit and a circuit for performing complicated timing control, and has a CP
An object of the present invention is to provide a DMA circuit capable of avoiding a bus contention in a memory access from the U and a DMA transfer with less hardware and enabling a DMA transfer with a low-cost hardware configuration.

【0004】[0004]

【課題を解決するための手段】上記課題を解決するため
に、本発明の請求項1に係るDMA回路は、CPUと、
読み出し可能な第1の記憶手段と、読み出しおよび書き
込み可能な第2の記憶手段とを備え、前記CPU、前記
第1の記憶手段および前記第2の記憶手段をデータバス
およびアドレスバスを含むシステムバスで結合したDM
A回路において、前記第2の記憶手段と前記システムバ
ス間のデータの転送を双方向に行う第1の双方向バッフ
ァと、ダイレクトメモリアクセス回路と、前記DMA回
路と前記第2の記憶手段間のデータの転送を双方向に行
う第2の双方向バッファとを具備し、前記DMA回路
は、前記CPUからのバスサイクルを開始する旨の信号
および前記CPUが前記第1の記憶手段および前記第2
の記憶手段に対して供給するアクセス信号に基づいて、
前記第2の記憶手段に対する前記第2の双方向バッファ
を介したメモリアクセスを行うものである。また、請求
項2に係るDMA回路は、請求項1に記載のDMA回路
において、前記DMA回路は、前記第2の記憶手段に対
する前記第2の双方向バッファを介したメモリアクセス
を、前記CPUが前記第1の記憶手段および前記第2の
記憶手段に対して供給するアクセス信号を使用して行う
ものである。本発明のDMA回路では、DMA回路は、
CPUからのバスサイクルを開始する旨の信号およびC
PUが第1の記憶手段および第2の記憶手段に対して供
給するアクセス信号に基づいて、第2の記憶手段に対す
る第2の双方向バッファを介したメモリアクセスを行
う。ここで、「CPUからのバスサイクルを開始する旨
の信号」は、例えば、CPUがバスサイクルの最初に発
行するバスサイクルスタート信号(以下、「BCST」
という。)が該当し、また、マルチプレックスバス、す
なわちアドレスバスおよびデータバスを1本のバスで共
用する構成を採る場合には、アドレス、データの順に転
送されるが、最初のアドレス転送時に発行されるアドレ
スが有効である旨を示すアドレスラッチイネーブル信号
もこれに該当する。また、「CPUが第1の記憶手段お
よび第2の記憶手段に対して供給するアクセス信号」に
は、CPUのメモリアクセス時に発行され、読み出しま
たは書き込み動作である旨を示すリード/ライト信号
や、アクセス動作対象である第1の記憶手段および第2
の記憶手段を特定するチップセレクト信号が、これに該
当する。つまり、本発明のDMA回路では、CPUが発
行するバスサイクルスタート信号またはアドレスラッチ
イネーブル信号、並びに、リード/ライト信号およびチ
ップセレクト信号等に基づいて、例えば、CPUが第2
の記憶手段に対するメモリアクセスを行っていないこと
が確認された場合に、DMA回路による第2の記憶手段
に対する第2の双方向バッファを介したメモリアクセス
を行う。したがって、本発明のDMA回路では、バス使
用権の優先判断やDMA転送によるメモリアクセス中の
CPUのアクセス禁止制御等が不要となり、バス調停回
路や複雑なタイミング制御を行う回路等が不要となっ
て、CPUからのメモリアクセスとDMA転送における
バス競合をより少ないハードウェアで回避でき、低コス
トのハードウェア構成でDMA転送を可能としたDMA
回路を実現できる。また、本発明のDMA回路では、D
MA回路は、第2の記憶手段に対する第2の双方向バッ
ファを介したメモリアクセスを、CPUが第1の記憶手
段および第2の記憶手段に対して供給するアクセス信号
を使用して行うものである。例えば、CPUがバスサイ
クルで発行するリード/ライト信号に基づき、かつ、該
リード/ライト信号に同期したアクセス信号(リード/
ライト信号)を、DMA回路が第2の記憶手段に対して
発行して行われ、これにより、メモリアクセス信号生成
に要するハードウェアも簡単な構成となり、さらに、低
コストのハードウェア構成でDMA転送を可能としたD
MA回路を実現できる。
According to a first aspect of the present invention, there is provided a DMA circuit comprising: a CPU;
A system bus including a readable first storage unit and a readable and writable second storage unit, wherein the CPU, the first storage unit, and the second storage unit include a data bus and an address bus DM combined with
In the A circuit, a first bidirectional buffer for bidirectionally transferring data between the second storage means and the system bus, a direct memory access circuit, and a communication between the DMA circuit and the second storage means. A second bidirectional buffer for bidirectionally transferring data, wherein the DMA circuit includes a signal from the CPU to start a bus cycle, and the CPU controls the first storage unit and the second
Based on an access signal supplied to the storage means of
And performing memory access to said second storage means via said second bidirectional buffer. A DMA circuit according to a second aspect of the present invention is the DMA circuit according to the first aspect, wherein the DMA circuit performs a memory access to the second storage unit via the second bidirectional buffer. This is performed using an access signal supplied to the first storage means and the second storage means. In the DMA circuit of the present invention, the DMA circuit includes:
A signal from the CPU to start a bus cycle and C
Based on an access signal supplied from the PU to the first storage unit and the second storage unit, the PU performs memory access to the second storage unit via the second bidirectional buffer. Here, the “signal from the CPU to start a bus cycle” is, for example, a bus cycle start signal (hereinafter, “BCST”) issued by the CPU at the beginning of the bus cycle.
That. ), And when a multiplex bus, that is, a configuration in which an address bus and a data bus are shared by one bus, is used, addresses and data are transferred in this order, but are issued at the first address transfer. An address latch enable signal indicating that the address is valid also corresponds to this. The “access signal supplied by the CPU to the first storage means and the second storage means” includes a read / write signal issued when the CPU accesses the memory and indicating a read or write operation, A first storage unit to be accessed and a second storage unit
Corresponds to the chip select signal for specifying the storage means. In other words, in the DMA circuit of the present invention, for example, the CPU operates based on the bus cycle start signal or the address latch enable signal issued by the CPU, and the read / write signal and the chip select signal.
When it is confirmed that the memory access to the storage means is not performed, the DMA circuit performs memory access to the second storage means via the second bidirectional buffer. Therefore, in the DMA circuit of the present invention, priority determination of the right to use the bus, access inhibition control of the CPU during memory access by DMA transfer, and the like become unnecessary, and a bus arbitration circuit, a circuit for performing complicated timing control, and the like become unnecessary. DMA that can avoid bus contention in memory access from the CPU and DMA transfer with less hardware and enable DMA transfer with a low-cost hardware configuration
A circuit can be realized. In the DMA circuit of the present invention, D
The MA circuit performs memory access to the second storage unit via the second bidirectional buffer using an access signal supplied by the CPU to the first storage unit and the second storage unit. is there. For example, an access signal (read / write) based on a read / write signal issued by a CPU in a bus cycle and synchronized with the read / write signal.
The write circuit is issued by the DMA circuit to the second storage means, whereby the hardware required for generating the memory access signal has a simple configuration, and the DMA transfer is performed with a low-cost hardware configuration. D that enabled
An MA circuit can be realized.

【0005】[0005]

【発明の実施の形態】以下、本発明のDMA回路の実施
の形態について、〔第1の実施形態〕、〔第2の実施形
態〕の順に図面を参照して詳細に説明する。尚、実施の
形態の説明で使用する信号の参照符号について、参照符
号の最後に記号#が付記される信号は、該信号が負論理
信号であることを示すものとする。 〔第1の実施形態〕図1は本発明の第1の実施形態に係
るDMA回路の構成図である。同図において、本実施例
のDMA回路は、CPU101と、読み出し可能な第1
の記憶手段(ROM)102と、読み出しおよび書き込
み可能な第2の記憶手段(RAM)103−1〜103
−Nと、DMA回路104と、I/O105とを備えて
構成されている。ここで、CPU101、ROM102
およびRAM103−1〜103−Nは、データバス・
アドレスバス・および各種制御信号を含むシステムバス
110に接続されたバス結合の構成である。また、RO
M102およびRAM103−1〜103−Nのデータ
信号線については、第1の1方向バッファ106および
第1の双方向バッファ108−1〜108−Nを介して
システムバス110に接続され、またアドレス信号線に
ついても図示しないアドレスバッファを介して接続さ
れ、これらのバッファ群によって転送制御される。ま
た、DMA回路104とROM102間は、第2の1方
向バッファ107および図示しないアドレスバッファを
介して接続されており、第2の1方向バッファ107お
よびアドレスバッファを介して、それぞれデータおよび
アドレスの転送が行われる。さらに、DMA回路104
とRAM103−1〜103−N間は、第2の双方向バ
ッファ109−1〜109−Nおよびアドレスバッファ
群でそれぞれ接続されて、第2の双方向バッファ109
−1〜109−Nおよびアドレスバッファ群を介して、
それぞれデータおよびアドレスの転送が双方向に行われ
る構成である。また、DMA回路104の双方向のシリ
アルポートからの信号TXD、RXDは、I/O105
と接続されており、転送アドレスおよび転送データがD
MA回路104とI/O105間で双方向に転送される
構成である。ここで、第1の1方向バッファ106の活
性/非活性の制御は、CPU101からのROM102
を選択するチップセレクト信号CS0#に基づいて行わ
れ、第1の双方向バッファ108−1〜108−Nの活
性/非活性の制御は、CPU101からのRAM103
−1〜103−Nをそれぞれ選択するチップセレクト信
号CS1#〜CSN#に基づいてそれぞれ行われる。ま
た、第2の1方向バッファ107および第2の双方向バ
ッファ109−1〜109−Nの活性/非活性の制御
は、CPU101からのバスサイクルを開始する旨のバ
スサイクルスタート信号BCSTが発行された時に、C
PU101がROM102およびRAM103−1〜1
03−Nに対するアクセス時に発行するアクセス信号で
あるチップセレクト信号CS0#〜CSN#に基づいて
行われる。具体的には、ROM102を選択するチップ
セレクト信号CS0#、RAM103−1〜103−N
をそれぞれ選択するチップセレクト信号CS1#〜CS
N#に基づいて生成される信号によって行われる。例え
ば、CPU101がROM102に対してリード動作を
開始するべく、バスサイクルスタート信号BCSTを発
行し、ROM102を選択するチップセレクト信号CS
0#を有効にした時には、DMA回路104は、RAM
103−1〜103−Nに対するアクセスが可能であ
る。この場合、DMA回路104は、DMA転送におけ
るソースアドレスまたはデスティネーションアドレスに
基づいて、アクセス対象となるRAM103−i(i=
1〜N)を選択し、該RAM103−iへのチップセレ
クト信号を有効とし、接続される第2の双方向バッファ
109−iを活性状態にする。尚、読み出し/書込み動
作に応じて読み出し/書き込み側の一方のバッファを活
性化し、他方を非活性化することは言うまでもない。ま
た同時に、第2の1方向バッファ107および第2の双
方向バッファ109−i以外の第2の双方向バッファも
非活性化する。以上のように、本実施形態のDMA回路
では、CPU101が発行するバスサイクルスタート信
号BCST、並びに、チップセレクト信号CS0#〜C
SN#等に基づいて、CPU101がROM102に対
するメモリアクセスを行うことが確認された場合に、D
MA回路104によるRAM103−i(i=1〜N)
に対する第2の双方向バッファ109−iを介したメモ
リアクセスを行う。また、CPU101がRAM103
−iに対するメモリアクセスを行うことがチップセレク
ト信号によって確認された場合には、DMA回路104
による当該RAM103−i以外のRAMに対するメモ
リアクセスを行う。したがって、バス使用権の優先判断
やDMA転送によるメモリアクセス中のCPU101の
アクセス禁止制御等が不要となり、バス調停回路や複雑
なタイミング制御を行う回路等が不要となって、CPU
101からのメモリアクセスとDMA回路104による
DMA転送とのバス競合をより少ないハードウェアで回
避でき、低コストのハードウェア構成でDMA転送を可
能としたDMA回路を実現できる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of a DMA circuit according to the present invention will be described in detail in the order of [first embodiment] and [second embodiment] with reference to the drawings. Regarding the reference numerals of the signals used in the description of the embodiments, a signal with a symbol # added at the end of the reference numeral indicates that the signal is a negative logic signal. [First Embodiment] FIG. 1 is a block diagram of a DMA circuit according to a first embodiment of the present invention. In the figure, a DMA circuit according to the present embodiment includes a CPU 101 and a readable first
Storage means (ROM) 102 and second storage means (RAM) 103-1 to 103 readable and writable.
-N, a DMA circuit 104, and an I / O 105. Here, the CPU 101 and the ROM 102
And RAMs 103-1 to 103-N are connected to a data bus
This is a bus connection configuration connected to a system bus 110 including an address bus and various control signals. Also, RO
M102 and the data signal lines of the RAMs 103-1 to 103-N are connected to the system bus 110 via the first one-way buffer 106 and the first bidirectional buffers 108-1 to 108-N. Lines are also connected via an address buffer (not shown), and transfer control is performed by these buffer groups. The DMA circuit 104 and the ROM 102 are connected via a second one-way buffer 107 and an address buffer (not shown), and transfer data and addresses via the second one-way buffer 107 and the address buffer, respectively. Is performed. Further, the DMA circuit 104
And the RAMs 103-1 to 103-N are connected by second bidirectional buffers 109-1 to 109-N and an address buffer group, respectively.
-1 to 109-N and an address buffer group,
In this configuration, data and addresses are transferred bidirectionally. The signals TXD and RXD from the bidirectional serial port of the DMA circuit 104 are transmitted to the I / O 105
And the transfer address and transfer data are D
In this configuration, data is transferred bidirectionally between the MA circuit 104 and the I / O 105. Here, the activation / inactivation of the first one-way buffer 106 is controlled by the ROM 102 from the CPU 101.
Of the first bidirectional buffers 108-1 to 108-N is controlled by the RAM 103 from the CPU 101.
-1 to 103-N are respectively performed based on chip select signals CS1 # to CSN #. For the control of the activation / inactivation of the second one-way buffer 107 and the second bidirectional buffers 109-1 to 109-N, a bus cycle start signal BCST for starting a bus cycle is issued from the CPU 101. When
PU 101 is ROM 102 and RAMs 103-1 to 103-1
This is performed based on chip select signals CS0 # to CSN #, which are access signals issued when accessing 03-N. Specifically, a chip select signal CS0 # for selecting the ROM 102, RAMs 103-1 to 103-N
Select signals CS1 # to CS1
This is performed by a signal generated based on N #. For example, the CPU 101 issues a bus cycle start signal BCST in order to start a read operation on the ROM 102, and outputs a chip select signal CS for selecting the ROM 102.
When 0 # is made valid, the DMA circuit 104
103-1 to 103-N can be accessed. In this case, based on the source address or the destination address in the DMA transfer, the DMA circuit 104 accesses the RAM 103-i (i =
1 to N), the chip select signal to the RAM 103-i is made valid, and the connected second bidirectional buffer 109-i is activated. It goes without saying that one buffer on the read / write side is activated and the other is deactivated in response to the read / write operation. At the same time, the second bidirectional buffers other than the second one-way buffer 107 and the second bidirectional buffer 109-i are deactivated. As described above, in the DMA circuit of the present embodiment, the bus cycle start signal BCST issued by the CPU 101 and the chip select signals CS0 # to CS0
When it is confirmed that the CPU 101 performs memory access to the ROM 102 based on the SN # or the like,
RAM 103-i (i = 1 to N) by MA circuit 104
Is accessed via the second bidirectional buffer 109-i. In addition, the CPU 101
When it is confirmed by the chip select signal that the memory access to −i
Performs a memory access to a RAM other than the RAM 103-i. This eliminates the need for priority determination of the bus use right and access inhibition control of the CPU 101 during memory access by DMA transfer, and eliminates the need for a bus arbitration circuit and a circuit for performing complicated timing control.
Bus contention between memory access from the memory 101 and DMA transfer by the DMA circuit 104 can be avoided with less hardware, and a DMA circuit capable of DMA transfer with a low-cost hardware configuration can be realized.

【0006】〔第2の実施形態〕図2は本発明の第2の
実施形態に係るDMA回路の構成図である。同図の構成
図は、図1の構成図において、第2の記憶手段(RA
M)を1つのRAM203で構成し(N=1)、DMA
回路104が該RAM203に対してのみアクセス可能
とした場合の詳細な回路構成図である。同図において、
本実施例のDMA回路は、CPU201と、ROM20
2と、RAM203と、DMA回路204とを備えて構
成されている。ここで、CPU201、ROM202お
よびRAM203は、データバス、アドレスバスおよび
各種制御信号を含むシステムバス210に接続されたバ
ス結合の構成である。尚、RAM203はシステムバス
210とCPU用バッファ208を介して接続されてい
る。また、DMA回路204とRAM203間は、DM
A用バッファ209で接続され、DMA用バッファ20
9を介してデータおよびアドレスの転送が行われる構成
である。さらに、DMA回路204のシリアルポート
(送出ポートTXDおよび受入ポートRXD)は、図示
しないI/O装置等と接続され、転送アドレスおよび転
送データがDMA回路204と該I/O装置間で転送さ
れる構成である。ここで、CPU用バッファ208の詳
細な回路構成図を図3(b)に示す。同図に示されるよ
うに、CPU用バッファ208は、CPU201からR
AM203へのアドレス供給を制御するアドレスバッフ
ァ208Aと、CPU201およびRAM203間のデ
ータの双方向転送を制御する双方向バッファ208Rお
よび208Wと、これらバッファ群の活性/非活性の制
御信号を生成するゲートG11〜G13とを備えて構成
されている。アドレスバッファ208Aの活性/非活性
の制御は、CPU201がRAM203を選択するチッ
プセレクト信号CS1#と、CPU201がバスサイク
ルを開始する旨のバスサイクルスタート信号BCSTと
に基づいて行われ、この両者の信号が有効となった時に
ゲートG11の出力である制御信号が有効となって、ア
ドレスバッファ208Aが活性化されてCPUアドレス
がRAM203に供給される。また、双方向バッファ2
08Rおよび208Wの内、読み出し用バッファ208
Rの活性/非活性の制御は、チップセレクト信号CS1
#とCPU201が読み出しサイクルを実行する旨のリ
ード信号RD#とに基づいて行われ、この両者の信号が
有効となった時にゲートG13の出力である制御信号R
AMR#が有効となって、読み出し用バッファ208R
が活性化されて、RAM203からの読み出しデータが
システムバス210上に供給される。さらに、書込み用
バッファ208Wの活性/非活性の制御は、チップセレ
クト信号CS1#とCPU201が書き込みサイクルを
実行する旨のライト信号WR#とに基づいて行われ、こ
の両者の信号が有効となった時にゲートG12の出力で
ある制御信号RAMW#が有効となって、書き込み用バ
ッファ208Wが活性化されて、システムバス210上
のデータがRAM203に供給される。他方、DMA用
バッファ209におけるアドレスおよびデータの転送制
御は、CPU201からのバスサイクルスタート信号B
CSTと、CPU201がROM202に対するアクセ
ス時に発行するアクセス信号であるチップセレクト信号
CS0#とに基づいて行われる。例えば、CPU201
がROM202に対して読み出し動作を開始するべく、
バスサイクルスタート信号BCSTを発行し、ROM2
02を選択するチップセレクト信号CS0#およびリー
ド信号RD#を有効にした時には、DMA回路204は
RAM203に対するアクセスが可能である。この場
合、DMA回路204はDMAにおけるチップセレクト
信号DCS1#を有効にして、RAM203のチップイ
ネーブル端子CE#を有効とし、また、リード信号RD
#に同期してリード信号DMARD#またはライト信号
DMAWR#を有効にして、接続されるDMA用バッフ
ァ209を活性化する。尚、チップセレクト信号DCS
1#は、バスサイクルスタート信号BCSTに基づいて
生成される信号である。DMA用バッファ209の詳細
な回路構成図を図3(a)に示す。同図に示されるよう
に、DMA用バッファ209は、DMA回路204から
RAM203へのアドレス供給を制御するアドレスバッ
ファ209Aと、DMA回路204およびRAM203
間のデータの双方向転送を制御する双方向バッファ20
9Rおよび209Wと、これらバッファ群の活性/非活
性の制御信号を生成するゲートG21〜G23とを備え
て構成されている。アドレスバッファ209Aの活性/
非活性の制御は、CPU201がROM202を選択す
るチップセレクト信号DCS0#と、CPU201がバ
スサイクルを開始する旨のバスサイクルスタート信号B
CSTとに基づいて行われ、この両者の信号が有効とな
った時にゲートG21の出力である制御信号が有効とな
って、アドレスバッファ209Aが活性化されてDMA
アドレスがRAM203に供給される。また、双方向バ
ッファ209Rおよび209Wの内、読み出し用バッフ
ァ209Rの活性/非活性の制御は、CPU201がR
OM202を選択するチップセレクト信号DCS0#
と、DMA回路204が読み出しサイクルを実行する旨
のリード信号DMARD#とに基づいて行われ、この両
者の信号が有効となった時にゲートG23の出力である
制御信号DMAR#が有効となって、読み出し用バッフ
ァ209Rが活性化されて、RAM203からの読み出
しデータがDMA回路204に供給される。さらに、書
込み用バッファ209Wの活性/非活性の制御は、CP
U201がROM202を選択するチップセレクト信号
DCS0#と、DMA回路204が書き込みサイクルを
実行する旨のライト信号DMAWR#とに基づいて行わ
れ、この両者の信号が有効となった時にゲートG22の
出力である制御信号DMAW#が有効となって、書き込
み用バッファ209Wが活性化されて、DMA回路20
4からのデータがRAM203に供給される。
[Second Embodiment] FIG. 2 is a block diagram of a DMA circuit according to a second embodiment of the present invention. The configuration diagram of FIG. 13 is the same as the configuration diagram of FIG.
M) is composed of one RAM 203 (N = 1), and DMA
FIG. 4 is a detailed circuit configuration diagram when the circuit 104 can access only the RAM 203. In the figure,
The DMA circuit of the present embodiment includes a CPU 201 and a ROM 20.
2, a RAM 203, and a DMA circuit 204. Here, the CPU 201, the ROM 202, and the RAM 203 have a bus connection configuration connected to a system bus 210 including a data bus, an address bus, and various control signals. The RAM 203 is connected to the system bus 210 via a CPU buffer 208. Also, a DM circuit is provided between the DMA circuit 204 and the RAM 203.
A buffer 209 is connected to the DMA buffer 20
9, data and addresses are transferred. Further, the serial ports (the sending port TXD and the receiving port RXD) of the DMA circuit 204 are connected to an I / O device or the like (not shown), and a transfer address and transfer data are transferred between the DMA circuit 204 and the I / O device. Configuration. Here, a detailed circuit configuration diagram of the CPU buffer 208 is shown in FIG. As shown in FIG.
An address buffer 208A for controlling address supply to the AM 203, bidirectional buffers 208R and 208W for controlling bidirectional data transfer between the CPU 201 and the RAM 203, and a gate G11 for generating a control signal for activating / deactivating these buffer groups. To G13. The activation / inactivation of the address buffer 208A is controlled based on a chip select signal CS1 # for selecting the RAM 203 by the CPU 201 and a bus cycle start signal BCST for instructing the CPU 201 to start a bus cycle. Becomes valid, the control signal output from the gate G11 becomes valid, the address buffer 208A is activated, and the CPU address is supplied to the RAM 203. The bidirectional buffer 2
08R and 208W, read buffer 208
The activation / inactivation of R is controlled by the chip select signal CS1.
# And a read signal RD # indicating that the CPU 201 executes a read cycle. When both signals become valid, the control signal R which is the output of the gate G13 is output.
AMR # becomes valid, and the read buffer 208R
Is activated, and the read data from the RAM 203 is supplied onto the system bus 210. Further, the activation / inactivation of the write buffer 208W is controlled based on the chip select signal CS1 # and the write signal WR # indicating that the CPU 201 executes a write cycle, and both of these signals become valid. At this time, the control signal RAMW #, which is the output of the gate G12, becomes valid, the write buffer 208W is activated, and the data on the system bus 210 is supplied to the RAM 203. On the other hand, the transfer control of the address and data in the DMA buffer 209 is performed by the bus cycle start signal B from the CPU 201.
This is performed based on the CST and a chip select signal CS0 # which is an access signal issued when the CPU 201 accesses the ROM 202. For example, the CPU 201
Starts a read operation on the ROM 202,
A bus cycle start signal BCST is issued, and the ROM
When the chip select signal CS0 # for selecting 02 and the read signal RD # are made valid, the DMA circuit 204 can access the RAM 203. In this case, the DMA circuit 204 makes the chip select signal DCS1 # in the DMA valid, makes the chip enable terminal CE # of the RAM 203 valid, and reads the read signal RD.
#, The read signal DMAARD # or the write signal DMAWR # is made valid, and the connected DMA buffer 209 is activated. Note that the chip select signal DCS
1 # is a signal generated based on the bus cycle start signal BCST. FIG. 3A shows a detailed circuit configuration diagram of the DMA buffer 209. As shown in the figure, the DMA buffer 209 includes an address buffer 209A for controlling the address supply from the DMA circuit 204 to the RAM 203, a DMA circuit 204 and the RAM 203.
Buffer 20 for controlling bidirectional transfer of data between
9R and 209W, and gates G21 to G23 that generate control signals for activating / deactivating these buffer groups. Activation of address buffer 209A /
The deactivation control includes a chip select signal DCS0 # for the CPU 201 to select the ROM 202 and a bus cycle start signal B indicating that the CPU 201 starts a bus cycle.
CST, and when both signals become valid, the control signal output from the gate G21 becomes valid, the address buffer 209A is activated and the DMA
The address is supplied to the RAM 203. The CPU 201 controls activation / inactivation of the read buffer 209R among the bidirectional buffers 209R and 209W.
Chip select signal DCS0 # for selecting OM202
And a read signal DMARD # to the effect that the DMA circuit 204 executes a read cycle. When both signals become valid, the control signal DMAR # output from the gate G23 becomes valid. The read buffer 209R is activated, and the read data from the RAM 203 is supplied to the DMA circuit 204. Further, the activation / inactivation control of the write buffer 209W is controlled by the CP
U201 is performed based on a chip select signal DCS0 # for selecting the ROM 202 and a write signal DMAWR # indicating that the DMA circuit 204 executes a write cycle. When both signals become valid, the output of the gate G22 is used. When a certain control signal DMAW # becomes valid, the write buffer 209W is activated and the DMA circuit 20
4 is supplied to the RAM 203.

【0007】次に、本実施形態のDMA回路の動作を、
図4に示すタイミングチャートを参照しながら説明す
る。まず、CPU201がROM202に対して読み出
し動作を開始するべく、バスサイクルスタート信号BC
STを発行し(図4(a)参照)、システムバス210
上にアドレスを出力し(図4(b)参照)、CPU20
1がリード信号RD#を有効にすると(図4(c)参
照)、ROM202からの読み出しデータがシステムバ
ス上に出力されて、CPU201はこれを取り込むこと
となる。他方で、この時、DMA回路204のRAM2
03に対するアクセスが可能となって、DMA回路20
4はアクセス動作を開始する。すなわち、DMAアドレ
スを出力すると共に、DMA用バッファ209のアドレ
スバッファ209Aが活性化されて、DMAアドレスが
RAM203に供給される(図4(d)参照)。次に、
CPU201からのリード信号RD#に同期して、DM
A回路204がリード信号RD#またはライト信号WR
#を有効にすると、DMA用バッファ209の読み出し
用バッファ209Rまたは書き込み用バッファ209W
が活性化され(図4(e)参照)、DMA回路204か
らの書き込みデータがRAM203に供給されるか、ま
たは、RAM203からの読み出しデータがDMA回路
204に供給される。尚、この場合、DMA回路204
は、DMAにおけるチップセレクト信号DCS1#を有
効にして、RAM203のチップイネーブル端子CE#
を有効にしている(図4(f)参照)。以上のように、
本実施形態のDMA回路では、CPU201が発行する
バスサイクルスタート信号BCSTおよびチップセレク
ト信号CS0#に基づいて、CPU201がROM20
2に対するメモリアクセスを行うことが確認された場合
に、DMA回路204によるRAM203に対するDM
A用バッファ209を介したメモリアクセスを行うこと
が可能となる。したがって、バス使用権の優先判断やD
MA転送によるメモリアクセス中のCPU201のアク
セス禁止制御等が不要となり、バス調停回路や複雑なタ
イミング制御を行う回路等が不要となって、CPU20
1からのメモリアクセスとDMA回路204によるDM
A転送とのバス競合をより少ないハードウェアで回避で
き、低コストのハードウェア構成でDMA転送を可能と
したDMA回路を実現できる。また、本実施形態のDM
A回路では、DMA回路204は、RAM203に対す
るDMA用バッファ209を介したメモリアクセスを、
CPU201のアクセス信号(リード信号RD#)を使
用して、該リード信号RD#に同期したアクセス信号
を、DMA回路が第2の記憶手段に対して発行すること
によって行うので、メモリアクセス信号生成に要するハ
ードウェア構成も簡単である。
Next, the operation of the DMA circuit of this embodiment will be described.
This will be described with reference to the timing chart shown in FIG. First, in order for the CPU 201 to start a read operation from the ROM 202, the bus cycle start signal BC
ST is issued (see FIG. 4A), and the system bus 210 is issued.
The address is output above (see FIG. 4B), and the CPU 20
When 1 makes the read signal RD # valid (see FIG. 4C), the read data from the ROM 202 is output to the system bus, and the CPU 201 takes in the read data. On the other hand, at this time, the RAM 2 of the DMA circuit 204
03 becomes accessible and the DMA circuit 20
4 starts an access operation. That is, while outputting the DMA address, the address buffer 209A of the DMA buffer 209 is activated, and the DMA address is supplied to the RAM 203 (see FIG. 4D). next,
In synchronization with the read signal RD # from the CPU 201, DM
A circuit 204 receives read signal RD # or write signal WR
When # is enabled, the read buffer 209R or the write buffer 209W of the DMA buffer 209 is
Is activated (see FIG. 4E), and the write data from the DMA circuit 204 is supplied to the RAM 203, or the read data from the RAM 203 is supplied to the DMA circuit 204. In this case, the DMA circuit 204
Enables the chip select signal DCS1 # in the DMA and sets the chip enable terminal CE #
(See FIG. 4F). As mentioned above,
In the DMA circuit of the present embodiment, the CPU 201 controls the ROM 20 based on the bus cycle start signal BCST and the chip select signal CS0 # issued by the CPU 201.
When the memory access to the RAM 203 is confirmed, the DMA circuit 204
A memory access via the A buffer 209 can be performed. Therefore, priority determination of bus use right and D
Access prohibition control or the like of the CPU 201 during memory access by MA transfer is not required, and a bus arbitration circuit and a circuit for performing complicated timing control are not required.
1 and DM by the DMA circuit 204
A bus circuit with the A transfer can be avoided with less hardware, and a DMA circuit capable of DMA transfer with a low-cost hardware configuration can be realized. Also, the DM of the present embodiment
In the circuit A, the DMA circuit 204 performs memory access to the RAM 203 via the DMA buffer 209,
Using the access signal (read signal RD #) of the CPU 201, the DMA circuit issues an access signal synchronized with the read signal RD # to the second storage means. The required hardware configuration is also simple.

【0008】[0008]

【発明の効果】以上説明したように、本発明のDMA回
路によれば、CPUが発行するバスサイクルスタート信
号またはアドレスラッチイネーブル信号、並びに、リー
ド/ライト信号およびチップセレクト信号等に基づい
て、CPUが第2の記憶手段に対するメモリアクセスを
行っていないことが確認された場合に、DMA回路によ
る第2の記憶手段に対する第2の双方向バッファを介し
たメモリアクセスを行うこととしたため、バス調停回路
や複雑なタイミング制御を行う回路等を不要とし、CP
UからのメモリアクセスとDMA転送におけるバス競合
をより少ないハードウェアで回避でき、低コストのハー
ドウェア構成でDMA転送を行い得るDMA回路を提供
することができる。また、本発明のDMA回路によれ
ば、DMA回路は、第2の記憶手段に対する第2の双方
向バッファを介したメモリアクセスを、CPUが第1の
記憶手段および第2の記憶手段に対して供給するアクセ
ス信号を使用して行うので、メモリアクセス信号生成に
要するハードウェア構成がより簡単な構成となり、より
低コストのハードウェア構成でDMA転送を可能とした
DMA回路を実現できる。
As described above, according to the DMA circuit of the present invention, based on the bus cycle start signal or address latch enable signal issued by the CPU, the read / write signal and the chip select signal, etc. Is determined that the memory access to the second storage means is not performed by the DMA circuit, the memory access to the second storage means is performed through the second bidirectional buffer. And the need for complicated timing control circuits
It is possible to provide a DMA circuit capable of avoiding bus contention in U and U memory access and DMA transfer with less hardware and capable of performing DMA transfer with a low-cost hardware configuration. Further, according to the DMA circuit of the present invention, the DMA circuit controls the memory access to the second storage means via the second bidirectional buffer, and the CPU controls the first storage means and the second storage means. Since the access is performed using the supplied access signal, the hardware configuration required for generating the memory access signal is simplified, and a DMA circuit capable of DMA transfer with a lower-cost hardware configuration can be realized.

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

【図1】本発明の第1の実施形態に係るDMA回路の構
成図である。
FIG. 1 is a configuration diagram of a DMA circuit according to a first embodiment of the present invention.

【図2】本発明の第2の実施形態に係るDMA回路の構
成図である。
FIG. 2 is a configuration diagram of a DMA circuit according to a second embodiment of the present invention.

【図3】図3(a)は第2の実施形態におけるDMA用
バッファの回路構成図、図3(b)はCPU用バッファ
の回路構成図である。
FIG. 3A is a circuit configuration diagram of a DMA buffer according to a second embodiment, and FIG. 3B is a circuit configuration diagram of a CPU buffer.

【図4】第2の実施形態のDMA回路の動作を説明する
タイミングチャートである。
FIG. 4 is a timing chart illustrating an operation of the DMA circuit according to the second embodiment.

【図5】従来のDMA回路の構成図である。FIG. 5 is a configuration diagram of a conventional DMA circuit.

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

101,201 CPU 102,202 ROM(第1の記憶手段) 103−1〜103−N,203 RAM(第2の記憶
手段) 104,204 DMA回路 105 I/O 106 第1の1方向バッファ 107 第2の1方向バッファ 108−1〜108−N 第1の双方向バッファ 109−1〜109−N 第2の双方向バッファ 110,210 システムバス 208 CPU用バッファ 209 DMA用バッファ 208A,209A アドレスバッファ 208R,209R 読み出し用バッファ 208W,209W 書き込み用バッファ BCST バスサイクルスタート信号 CS0#〜CSN# チップセレクト信号 RD# リード信号 WR# ライト信号 DCS1# DMA回路のチップセレクト信号 DMARD# DMA回路のリード信号 DMAWR# DMA回路のライト信号 RAMR#,RAMW#,DMAR#,DMAW# 制
御信号 CE# チップイネーブル端子 G1,G11〜G23 ゲート TXD,RXD DMA回路のシリアルポートからの信
号 501 CPU 502 ROM 503 RAM 504 DMAコントローラ 505 I/O 510 システムバス
101, 201 CPU 102, 202 ROM (first storage means) 103-1 to 103-N, 203 RAM (second storage means) 104, 204 DMA circuit 105 I / O 106 first one-way buffer 107 2 one-way buffers 108-1 to 108-N first bidirectional buffers 109-1 to 109-N second bidirectional buffers 110 and 210 system bus 208 CPU buffers 209 DMA buffers 208A and 209A address buffers 208R , 209R read buffer 208W, 209W write buffer BCST bus cycle start signal CS0 # to CSN # chip select signal RD # read signal WR # write signal DCS1 # DMA circuit chip select signal DMARD # DMA circuit read signal DM WR # Write signal of DMA circuit RAMR #, RAMW #, DMAR #, DMAW # Control signal CE # Chip enable terminal G1, G11-G23 Gate TXD, Signal from serial port of RXD DMA circuit 501 CPU 502 ROM 503 RAM 504 DMA Controller 505 I / O 510 System bus

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、読み出し可能な第1の記憶手
段と、読み出しおよび書き込み可能な第2の記憶手段の
複数個とを備え、前記CPU、前記第1の記憶手段およ
び前記第2の記憶手段をデータバスおよびアドレスバス
を含むシステムバスで結合したDMA回路において、 前記第2の記憶手段と前記システムバス間のデータの転
送を双方向に行う第1の双方向バッファと、 ダイレクトメモリアクセス回路と、 前記ダイレクトメモリアクセス回路と前記第2の記憶手
段間のデータの転送を双方向に行う第2の双方向バッフ
ァと、を有し、 前記ダイレクトメモリアクセス回路は、 前記CPUからのバスサイクルを開始する旨の信号およ
び前記CPUが前記第1の記憶手段に対して供給するア
クセス信号に基づいて、前記複数個の第2の記憶手段に
対する前記第2の双方向バッファを介したメモリアクセ
スを行ない、 および、前記CPUからのバスサイクルを開始する旨の
信号および前記複数個の第2の記憶手段の1個に対して
供給するアクセス信号に基づいて、当該第2の記憶手段
以外の第2の記憶手段に対する前記第2の双方向バッフ
ァを介したメモリアクセスを行うことを特徴とするDM
A回路。
1. A CPU, a readable first storage unit, and a plurality of readable and writable second storage units, wherein the CPU, the first storage unit, and the second storage unit A DMA circuit in which means are connected by a system bus including a data bus and an address bus, a first bidirectional buffer for bidirectionally transferring data between the second storage means and the system bus, and a direct memory access circuit And a second bidirectional buffer for bidirectionally transferring data between the direct memory access circuit and the second storage means, wherein the direct memory access circuit sets a bus cycle from the CPU. The plurality of second storages are performed based on a start signal and an access signal supplied by the CPU to the first storage unit. A memory access to a stage through the second bidirectional buffer; and a signal from the CPU to start a bus cycle and access to one of the plurality of second storage means. DM access to a second storage means other than the second storage means via the second bidirectional buffer based on a signal.
A circuit.
【請求項2】 前記読み出し可能な第1の記憶手段と、
前記読み出しおよび書き込み可能な第2の記憶手段1個
とを備えた前記DMA回路において、 前記ダイレクトメモリアクセス回路は、前記第2の記憶
手段に対する前記第2の双方向バッファを介したメモリ
アクセスを、前記CPUが前記第1の記憶手段又は前記
第2の記憶手段に対して供給するアクセス信号を使用し
て行うことを特徴とする請求項1記載のDMA回路。
2. The readable first storage means,
In the DMA circuit including the second readable and writable second storage unit, the direct memory access circuit performs a memory access to the second storage unit via the second bidirectional buffer. 2. The DMA circuit according to claim 1, wherein the CPU performs the access using an access signal supplied to the first storage unit or the second storage unit.
JP15385897A 1997-06-11 1997-06-11 Dma circuit Abandoned JPH113311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15385897A JPH113311A (en) 1997-06-11 1997-06-11 Dma circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15385897A JPH113311A (en) 1997-06-11 1997-06-11 Dma circuit

Publications (1)

Publication Number Publication Date
JPH113311A true JPH113311A (en) 1999-01-06

Family

ID=15571650

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15385897A Abandoned JPH113311A (en) 1997-06-11 1997-06-11 Dma circuit

Country Status (1)

Country Link
JP (1) JPH113311A (en)

Similar Documents

Publication Publication Date Title
JPH01147647A (en) Data processor
JPH04230558A (en) Direct-memory access apparatus
JPH113311A (en) Dma circuit
US20020006134A1 (en) Data processing apparatus and slave interface mechanism for controlling access to a slave logic unit by a plurality of master logic units
JP3328246B2 (en) DMA transfer method and system
JPH0343804A (en) Sequence controller
JP4472402B2 (en) Bus equipment
EP1193605B1 (en) Apparatus and method for the transfer of signal groups between digital signal processors in a digital signal processing unit
JP2583586B2 (en) Bus control method
JP2001320390A (en) Device and method for controlling serial bus
JPH11252150A (en) Network connection device and network connection control method
JP2687716B2 (en) Information processing device
JP2000029823A (en) Bus access control circuit
JPH0573473A (en) Industrial computer system
JP2002278923A (en) Bus system, bus control system and bus conversion device
JP4477877B2 (en) Communication bus system
JPH0652101A (en) Multiport memory for data buffer
JPH10341257A (en) Packet processing unit
JP2001043355A (en) Data processor
JPH03296159A (en) Memory access system for dma device
JPH09179815A (en) Bus controller
KR20000016623U (en) Memory Access Controlling Apparatus For Bus-Master Processor In The Exchange System
JPH10269170A (en) Bus connecting device
JPH08101810A (en) Bus control method
JPH0391339A (en) Communication controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20040527

Free format text: JAPANESE INTERMEDIATE CODE: A621

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060324

A762 Written abandonment of application

Effective date: 20060330

Free format text: JAPANESE INTERMEDIATE CODE: A762