JP2003242098A - Semiconductor integrated circuit - Google Patents

Semiconductor integrated circuit

Info

Publication number
JP2003242098A
JP2003242098A JP2002039427A JP2002039427A JP2003242098A JP 2003242098 A JP2003242098 A JP 2003242098A JP 2002039427 A JP2002039427 A JP 2002039427A JP 2002039427 A JP2002039427 A JP 2002039427A JP 2003242098 A JP2003242098 A JP 2003242098A
Authority
JP
Japan
Prior art keywords
serial
memory
transmission data
register
transfer
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
JP2002039427A
Other languages
Japanese (ja)
Inventor
Yuji Torikai
勇治 鳥飼
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.)
Renesas Design Corp
Mitsubishi Electric Corp
Original Assignee
Renesas Design Corp
Mitsubishi 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 Renesas Design Corp, Mitsubishi Electric Corp filed Critical Renesas Design Corp
Priority to JP2002039427A priority Critical patent/JP2003242098A/en
Publication of JP2003242098A publication Critical patent/JP2003242098A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a semiconductor integrated circuit having serial I/O, enhancing the degree of freedom for generating serial transmission data, and improving the memory using efficiency. <P>SOLUTION: This semiconductor integrated circuit has a DMA controller 2 for controlling DMA of a plurality of channels, and serially transmitting transmission data by successively transferring the transmission data to the serial I/O 4 from a memory 3 by the plurality of channels of the DMA according to the setting of a transmission data setting register in order according to designation of an order designating register 9 by using a plurality of DMA channel setting registers for setting transfer information transferred to the serial I/O 4 from the memory 3 in response to the respective channels and the order designating register 9 for setting transfer order of the plurality of these DMA channel setting registers. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、シリアルI/O
部を有する半導体集積回路に関するものである。
TECHNICAL FIELD The present invention relates to a serial I / O.
The present invention relates to a semiconductor integrated circuit having a section.

【0002】[0002]

【従来の技術】従来の半導体集積回路では、複数バイト
のデータを連続でシリアル送信する場合、以下のような
方法で行っていた。ソフトウェアで1byte送信完了
毎に次の1byte送信データを送信するか、またはD
MA(Direct Memory Access)を
使用し、メモリ上に連続配置されたデータを送信する。
2. Description of the Related Art In a conventional semiconductor integrated circuit, when a plurality of bytes of data are serially transmitted, the following method is used. The software sends the next 1-byte transmission data each time 1-byte transmission is completed, or D
MA (Direct Memory Access) is used to transmit data continuously arranged in the memory.

【0003】[0003]

【発明が解決しようとする課題】ソフトウェアによる送
信は、1byte送信毎にソフトウェアによる処理を行
うため、ソフトウェアの処理負荷が大きいという問題が
あった。また、DMAを用いる方法は、送信データ作成
の自由度が小さいという問題があった。DMAを用いる
場合の送信データ作成の自由度が小さくなる理由につい
て次に述べる。DMAは基本的に、ソースアドレス(転
送元アドレス)、デスティネーションアドレス(転送先
アドレス)、転送バイト数の3つのパラメータにより動
作する。これをシリアル送信に使用する場合、送信デー
タはソースアドレスを先頭に送信バイト数分、連続して
配置されることになる。通常、送信データの内容は可変
であるので、送信データはRAM領域に配置する。ここ
で、シリアル送信データが、ヘッダ部とデータ部に分か
れていて、ヘッダ部は固定データ、データ部は可変デー
タであるような場合、固定データはROM領域、可変デ
ータはRAM領域に配置することができれば、RAM領
域のメモリ領域を節約することができる。しかし、前に
述べたように、DMAをシリアル送信しようとする場
合、1つのソースアドレスしか設定できないため、送信
データを固定データ部と可変データ部に分けて配置した
場合、DMAを複数回起動する必要があるという問題が
あった。
The software transmission has a problem that the processing load of the software is large because the software processing is performed every 1 byte transmission. Further, the method using the DMA has a problem that the degree of freedom in creating transmission data is small. The reason why the degree of freedom in creating transmission data when using DMA is reduced will be described below. The DMA basically operates with three parameters of a source address (transfer source address), a destination address (transfer destination address), and the number of transfer bytes. When this is used for serial transmission, the transmission data is continuously arranged for the number of transmission bytes starting from the source address. Usually, the content of the transmission data is variable, so the transmission data is arranged in the RAM area. If the serial transmission data is divided into a header part and a data part, and the header part is fixed data and the data part is variable data, the fixed data should be arranged in the ROM area and the variable data should be arranged in the RAM area. If so, the memory area of the RAM area can be saved. However, as described above, when attempting to serially transmit the DMA, only one source address can be set. Therefore, when the transmission data is divided into the fixed data portion and the variable data portion, the DMA is activated multiple times. There was a problem of need.

【0004】この発明は、上述のような問題点を解決す
るためになされたものであり、シリアル送信データ作成
の自由度を高め、メモリ使用効率を向上させた半導体集
積回路を得ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and an object thereof is to obtain a semiconductor integrated circuit in which the degree of freedom in creating serial transmission data is increased and the memory use efficiency is improved. To do.

【0005】[0005]

【課題を解決するための手段】この発明に係わる半導体
集積回路においては、送信データが記憶されたメモリ
と、このメモリに記憶された送信データをシリアル送信
するシリアルI/O部と、メモリに記憶された送信デー
タをシリアルI/O部に転送するDMAを制御するDM
Aコントローラを備え、DMAコントローラは、それぞ
れ送信データを転送する複数のチャネルを有するDMA
と、このDMAの複数チャネルにそれぞれ対応して転送
情報が設定された複数の第一のレジスタと、この第一の
レジスタを用いて転送するDMAの各チャネルの転送順
序が設定された第二のレジスタとを有すると共に、第二
のレジスタの転送順序に従い、DMAの各チャネルによ
る転送を順次実行するようDMAを制御するものであ
る。
In a semiconductor integrated circuit according to the present invention, a memory in which transmission data is stored, a serial I / O unit for serially transmitting the transmission data stored in this memory, and a memory are stored in the memory. DM that controls the DMA that transfers the sent transmission data to the serial I / O unit
A DMA controller having a plurality of channels, each of which transfers transmission data.
A plurality of first registers in which transfer information is set respectively corresponding to a plurality of channels of this DMA, and a second register in which a transfer order of each channel of the DMA to be transferred using this first register is set. In addition to having a register, the DMA is controlled to sequentially execute the transfer by each channel of the DMA according to the transfer order of the second register.

【0006】また、送信データが記憶されたメモリと、
送信データをメモリから転送してシリアル送信するよう
構成されたシリアルI/O部を備え、シリアルI/O部
は、送信データをメモリから転送してシリアル送信する
メモリアクセス制御部と、送信データの転送に用いられ
る転送情報がそれぞれ設定された複数の第一のレジスタ
と、この複数の第一のレジスタによる転送の順序が設定
された第二のレジスタとを有すると共に、メモリアクセ
ス制御部は、第二のレジスタに設定された転送順序に従
い、複数の第一のレジスタによる転送を順次実行するも
のである。また、メモリ及びシリアルI/O部は、専用
バスによって接続されているものである。
Further, a memory in which transmission data is stored,
The serial I / O unit includes a serial I / O unit configured to transfer the transmission data from the memory and perform serial transmission. The serial I / O unit transfers the transmission data from the memory and performs serial transmission, and a serial access unit for transmitting the transmission data. The memory access control unit has a plurality of first registers in which transfer information used for transfer is respectively set, and a second register in which an order of transfer by the plurality of first registers is set. According to the transfer order set in the second register, the transfer by the plurality of first registers is sequentially executed. Further, the memory and the serial I / O unit are connected by a dedicated bus.

【0007】さらに、送信データが記憶されたメモリ
と、このメモリと専用バスにより接続され、メモリに記
憶された送信データをシリアル送信するシリアルI/O
部と、専用バスに接続され、メモリに記憶された送信デ
ータをシリアルI/O部に転送するよう構成されたコン
トローラを備え、コントローラは、それぞれ転送情報が
設定された複数の第一のレジスタと、この複数の第一の
レジスタによる転送の順序が設定された第二のレジスタ
と、第二のレジスタに設定された転送順序に従い、複数
の第一のレジスタによる転送を順次実行するメモリアク
セス制御部とを有するものである。また、シリアルI/
O部は、複数設けられているものである。また、第一の
レジスタには、転送される送信データのソースアドレス
及び転送バイト数が設定されているものである。
Further, a memory in which transmission data is stored and a serial I / O which is connected to this memory by a dedicated bus and serially transmits the transmission data stored in the memory
And a controller connected to the dedicated bus and configured to transfer the transmission data stored in the memory to the serial I / O unit, and the controller includes a plurality of first registers each having transfer information set therein. A second register in which the order of transfer by the plurality of first registers is set, and a memory access control unit that sequentially executes transfer by the plurality of first registers according to the transfer order set in the second register And have. In addition, serial I /
A plurality of O parts are provided. The source address and the number of transfer bytes of the transmission data to be transferred are set in the first register.

【0008】[0008]

【発明の実施の形態】実施の形態1.図1は、この発明
の実施の形態1による半導体集積回路を示す構成図であ
る。図1において、1は半導体集積回路の動作を制御す
るCPU、2はCPU1を介することなく、バスを通じ
てデータ転送を行う機能のDMAを有し、このDMAを
制御するDMAC(DMAコントローラ)である。3は
プログラムまたはデータを格納するメモリで、ROMや
RAMによって構成される。4はデータのシリアル送受
信を行うシリアルI/O(シリアルI/O部)、5はC
PU1の処理を周期的に起動させる等のために使用され
るタイマ、6はこれら1〜5が接続される内部バスで、
1〜6は半導体集積回路上に形成されている。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiment 1. 1 is a block diagram showing a semiconductor integrated circuit according to a first embodiment of the present invention. In FIG. 1, reference numeral 1 is a CPU that controls the operation of the semiconductor integrated circuit, and 2 is a DMAC (DMA controller) that has a DMA function of performing data transfer through a bus without going through the CPU 1. A memory 3 stores programs or data, and is composed of a ROM and a RAM. 4 is a serial I / O (serial I / O unit) that performs serial data transmission / reception, and 5 is a C
A timer used for activating the processing of PU1 periodically, 6 is an internal bus to which these 1 to 5 are connected,
1 to 6 are formed on the semiconductor integrated circuit.

【0009】図2は、この発明の実施の形態1による半
導体集積回路のDMACのデータ転送を示す図である。
図2において、2〜4、6は図1におけるものと同一の
ものである。図3は、この発明の実施の形態1による半
導体集積回路のDMACの構成を示す図である。図3に
おいて、7はDMAチャネル1によるデータ転送につい
て設定を行うDMAチャネル1設定レジスタ(第一のレ
ジスタ)、8はDMAチャネル2によるデータ転送につ
いて設定を行うDMAチャネル2設定レジスタ(第一の
レジスタ)、9は複数チャネルのDMAの各チャネルの
実行順序を指定する順序指定レジスタ(第二のレジス
タ)、10は順序指定レジスタ9に設定された順序に従
い、DMAの各チャネルを連続して実行する機能を有す
るDMAC制御部である。図4は、この発明の実施の形
態1による半導体集積回路のDMACの動作を示す図で
ある。図4において、3、7〜9は図3におけるものと
同一のものである。11はシリアル出力である。
FIG. 2 is a diagram showing DMAC data transfer of the semiconductor integrated circuit according to the first embodiment of the present invention.
In FIG. 2, 2 to 4 and 6 are the same as those in FIG. FIG. 3 is a diagram showing the structure of the DMAC of the semiconductor integrated circuit according to the first embodiment of the present invention. In FIG. 3, 7 is a DMA channel 1 setting register (first register) for setting data transfer by the DMA channel 1, and 8 is a DMA channel 2 setting register (first register) for setting data transfer by the DMA channel 2. ), 9 is an order designation register (second register) for designating the execution order of each channel of the DMA of a plurality of channels, 10 is the order set in the order designation register 9, and successively executes each channel of the DMA. It is a DMAC control unit having a function. FIG. 4 is a diagram showing the operation of the DMAC of the semiconductor integrated circuit according to the first embodiment of the present invention. 4, 3, 7 to 9 are the same as those in FIG. Reference numeral 11 is a serial output.

【0010】次に、動作について説明する。DMAC2
は、メモリからメモリ、またはメモリからI/O等への
データ転送を、CPU1を介さずにバスを通じて行う機
能であるDMAの制御を行う。図2は、メモリ3からシ
リアルI/O4へのデータ転送する場合の様子を示して
いる。DMAC2は、図3のように構成され、DMAの
実行順序をチャネルNo.で指定する順序指定レジスタ
9を有し、その順序指定レジスタ9に設定された順番に
従い、DMAの各チャネルを連続して実行できる機能
を、DMAC制御部10に付加している。このDMAC
の動作を図4を用いて説明する。DMAチャネル1の設
定レジスタ7のソースアドレスを0×8000、転送バ
イト数を5、DMAチャネル2の設定レジスタ8のソー
スアドレスを0×9000、転送バイト数を2(共に転
送先はシリアルI/O4)、順序指定レジスタ9に、D
MAチャネル1、DMAチャネル2を指定する1、2を
設定し、DMAC2を起動すると、DMAC2は、DM
Aチャネル1、DMAチャネル2の順に実行し、結果、
図中11に示されるようなシリアル信号が出力される。
Next, the operation will be described. DMAC2
Performs DMA control, which is a function of performing data transfer from memory to memory or from memory to I / O or the like through the bus without passing through the CPU 1. FIG. 2 shows how data is transferred from the memory 3 to the serial I / O 4. The DMAC 2 is configured as shown in FIG. The DMAC control unit 10 is provided with a function of having the order designation register 9 designated by 1 and capable of continuously executing each channel of the DMA in accordance with the order set in the order designation register 9. This DMAC
The operation will be described with reference to FIG. The source address of the setting register 7 of the DMA channel 1 is 0x8000, the number of transfer bytes is 5, the source address of the setting register 8 of the DMA channel 2 is 0x9000, the number of transfer bytes is 2 (the transfer destination is serial I / O 4 ), D in the order designation register 9
When 1 and 2 for designating the MA channel 1 and the DMA channel 2 are set and the DMAC 2 is activated, the DMAC 2 is DMed.
A channel 1 and DMA channel 2 are executed in this order, and as a result,
A serial signal as indicated by 11 in the figure is output.

【0011】実施の形態1によれば、シリアル送信デー
タをメモリ3上に分割して配置し、送信することが可能
となるため、データ作成の自由度が高まり、メモリ使用
効率を向上させることができる。また、一度、各チャネ
ルのDMAチャンネル設定レジスタに値を設定しておけ
ば、順序指定レジスタに設定するチャネルNo.を変更
するだけで、送信データの変更や入れ替えが可能であ
る。
According to the first embodiment, since serial transmission data can be divided and arranged on the memory 3 and transmitted, the degree of freedom in data creation is increased and the memory usage efficiency is improved. it can. In addition, once the value is set in the DMA channel setting register of each channel, the channel No. It is possible to change or replace the transmission data by simply changing.

【0012】実施の形態2.図5は、この発明の実施の
形態2による半導体集積回路のシリアルI/Oの構成を
示す図である。図5において、4、6は図1におけるも
のと同一のものである。13はソースアドレスと転送バ
イト数を設定できる送信データ設定レジスタ1(第一の
レジスタ)、14はソースアドレスと転送バイト数を設
定できる送信データ設定レジスタ2(第一のレジスタ)
で、この送信データ設定レジスタは複数設けられる。1
5は送信データ設定レジスタ1、2の実行順序をレジス
タNo.で指定する順序指定レジスタ(第二のレジス
タ)である。16はメモリ上のデータを内部バス6を介
して取得し、シリアル送信することができるメモリアク
セス制御部、17はメモリアクセス制御部16によって
シリアル送信されるデータが書き込まれ、書き込まれた
データをシリアル送信するシリアル送信レジスタであ
る。13〜17はシリアルI/O4に設けられている。
図6は、この発明の実施の形態2による半導体集積回路
のシリアルI/Oの動作を示す図である。図6におい
て、13〜15は図5におけるものと同一のものであ
る。
Embodiment 2. FIG. 5 is a diagram showing a structure of a serial I / O of a semiconductor integrated circuit according to a second embodiment of the present invention. In FIG. 5, 4 and 6 are the same as those in FIG. 13 is a transmission data setting register 1 (first register) capable of setting the source address and the number of transfer bytes, and 14 is a transmission data setting register 2 (first register) capable of setting the source address and the number of transfer bytes
A plurality of transmission data setting registers are provided. 1
5 indicates the execution order of the transmission data setting registers 1 and 2 as register No. It is an order designation register (second register) designated by. Reference numeral 16 denotes a memory access control unit capable of acquiring data on the memory via the internal bus 6 and serially transmitting the data. Reference numeral 17 denotes data to be serially transmitted by the memory access control unit 16 and serializing the written data. This is a serial transmission register for transmission. 13 to 17 are provided in the serial I / O 4.
FIG. 6 is a diagram showing an operation of serial I / O of the semiconductor integrated circuit according to the second embodiment of the present invention. In FIG. 6, 13 to 15 are the same as those in FIG.

【0013】次に、動作について説明する。図5に本ア
イデアの実施の形態を示す。例えば、図6に示すように
送信データ設定レジスタ1のソースアドレスを0×80
00、転送バイト数を5、送信データ設定レジスタ2の
ソースアドレスを0×9000、転送バイト数を2と
し、順序指定レジスタ15に1、2を設定し、メモリア
クセス制御部16を起動すると、メモリアクセス制御部
16は、内部バス6を介して、メモリにアクセスし、順
序指定レジスタ15に設定された順序に従ってデータを
取得し、順次シリアル送信を行っていく。この結果、図
4と同じシリアル出力結果が得られる。
Next, the operation will be described. FIG. 5 shows an embodiment of the present idea. For example, as shown in FIG. 6, the source address of the transmission data setting register 1 is 0 × 80.
00, the number of transfer bytes is 5, the source address of the transmission data setting register 2 is 0 × 9000, the number of transfer bytes is 2, the order specification register 15 is set to 1 and 2, and the memory access control unit 16 is activated. The access control unit 16 accesses the memory via the internal bus 6, acquires data according to the order set in the order designation register 15, and sequentially performs serial transmission. As a result, the same serial output result as in FIG. 4 is obtained.

【0014】実施の形態2によれば、DMACを使用す
ることなしに、シリアル送信データをメモリ上に分割し
て配置し送信することが可能となるため、シリアル送信
中にDMACを他の用途に使用することが可能となる。
また、シリアル送信データ作成の自由度が高まり、メモ
リ使用効率を向上させることができる。また、一度、各
送信データ設定レジスタに値を設定しておけば、順序指
定レジスタに設定するレジスタNo.を変更するだけ
で、送信データの変更や入れ替えが可能である。
According to the second embodiment, the serial transmission data can be divided and arranged in the memory and transmitted without using the DMAC. Therefore, the DMAC can be used for other purposes during the serial transmission. Can be used.
Further, the degree of freedom in creating serial transmission data is increased, and the memory usage efficiency can be improved. Further, once the value is set in each transmission data setting register, the transmission data can be changed or exchanged only by changing the register No. set in the order designation register.

【0015】実施の形態3.図7は、この発明の実施の
形態3による半導体集積回路のメモリーシリアルI/O
間のデータ転送を示す図である。図7において、3、
4、6は図1におけるものと同一のものである。18は
メモリ3とシリアルI/O4間を接続する専用バスであ
る。図8は、この発明の実施の形態3による半導体集積
回路のシリアルI/Oの構成を示す図である。図8にお
いて、4、13〜17は図5におけるものと、3、18
は図7におけるものと、それぞれ同一のものである。
Third Embodiment FIG. 7 shows a memory serial I / O of a semiconductor integrated circuit according to a third embodiment of the present invention.
It is a figure which shows the data transfer between. In FIG. 7, 3,
Reference numerals 4 and 6 are the same as those in FIG. A dedicated bus 18 connects the memory 3 and the serial I / O 4. FIG. 8 is a diagram showing a structure of a serial I / O of a semiconductor integrated circuit according to a third embodiment of the present invention. In FIG. 8, 4, 13 to 17 are the same as those in FIG.
Are the same as those in FIG. 7, respectively.

【0016】次に、動作について説明する。実施の形態
3は、図7に示すように、メモリ3とシリアルI/O4
間を専用バス18で接続する。メモリアクセス制御部1
6は、メモリ3上のデータを専用バス18を介して取得
し、シリアル送信する。実施の形態3は、実施の形態2
と同じように、図6に示すような設定を行うと、図4と
同じシリアル出力結果が得られる。
Next, the operation will be described. In the third embodiment, as shown in FIG. 7, the memory 3 and the serial I / O 4 are connected.
The private buses 18 connect the spaces. Memory access control unit 1
6 acquires the data on the memory 3 via the dedicated bus 18 and serially transmits it. The third embodiment is the second embodiment.
In the same manner as above, if the setting as shown in FIG. 6 is performed, the same serial output result as in FIG. 4 can be obtained.

【0017】実施の形態3によれば、内部バスを占有す
ることなしに、シリアル送信データをメモリ上に分割し
て配置し、送信することが可能となる。また、シリアル
送信データ作成の自由度が高まり、メモリ使用効率を向
上させることができる。また、一度、各送信データ設定
レジスタに値を設定しておけば、順序指定レジスタに設
定するチャネルNo.を変更するだけで、送信データの
変更や入れ替えが可能である。
According to the third embodiment, serial transmission data can be divided and arranged in the memory and transmitted without occupying the internal bus. Further, the degree of freedom in creating serial transmission data is increased, and the memory usage efficiency can be improved. In addition, once a value is set in each transmission data setting register, the channel number set in the order designation register is set. It is possible to change or replace the transmission data by simply changing.

【0018】実施の形態4.図9は、この発明の実施の
形態4による半導体集積回路のコントローラのデータ転
送を示す図である。図9において、3、4、6、18は
図7におけるものと同一のものである。図9では、シリ
アルI/O4(シリアルI/O部)は複数チャネルを有
していて、それぞれ独立に動作する。19は専用バス1
8を制御するコントローラである。図10は、この発明
の実施の形態4による半導体集積回路のコントローラの
構成を示す図である。図10において、3、4、18、
19は図9におけるものと同一のものである。13aは
シリアルI/Oチャネル1用の送信データ設定レジスタ
1(第一のレジスタ)、14aはシリアルI/Oチャネ
ル1用の送信データ設定レジスタ2(第一のレジス
タ)、15aはシリアルI/Oチャネル1用の順序設定
レジスタ(第二のレジスタ)である。13bはシリアル
I/Oチャネル2用の送信データ設定レジスタ1(第一
のレジスタ)、14bはシリアルI/Oチャネル2用の
送信データ設定レジスタ2(第一のレジスタ)、15b
はシリアルI/Oチャネル2用の順序設定レジスタ(第
二のレジスタ)である。つまり、シリアルI/Oチャネ
ル毎に、図8と同様の複数の送信データ設定レジスタ及
び順序設定レジスタが設けられている。20はコントロ
ーラ19に設けられたメモリアクセス制御部である。
Embodiment 4. FIG. 9 is a diagram showing data transfer of the controller of the semiconductor integrated circuit according to the fourth embodiment of the present invention. 9, 3, 4, 6 and 18 are the same as those in FIG. In FIG. 9, the serial I / O 4 (serial I / O unit) has a plurality of channels and operates independently. 19 is a private bus 1
8 is a controller for controlling 8. FIG. 10 is a diagram showing a structure of a controller of a semiconductor integrated circuit according to a fourth embodiment of the present invention. In FIG. 10, 3, 4, 18,
19 is the same as that in FIG. 13a is a transmission data setting register 1 (first register) for the serial I / O channel 1, 14a is a transmission data setting register 2 (first register) for the serial I / O channel 1, and 15a is a serial I / O. It is an order setting register (second register) for channel 1. 13b is a transmission data setting register 1 (first register) for serial I / O channel 2, 14b is a transmission data setting register 2 (first register) for serial I / O channel 2, 15b
Is a sequence setting register (second register) for the serial I / O channel 2. That is, a plurality of transmission data setting registers and sequence setting registers similar to those in FIG. 8 are provided for each serial I / O channel. Reference numeral 20 is a memory access control unit provided in the controller 19.

【0019】次に、動作について説明する。図9に示す
ように、メモリ3とシリアルI/O4間を専用バス18
で接続し、その専用バス18を制御するコントローラ1
9を配置する。コントローラ19は、図10に示すよう
に、メモリ3上のデータを専用バス18を介して取得
し、シリアルI/O4へ送ることができるメモリアクセ
ス制御部20を有すると共に、ソースアドレスと転送バ
イト数を、シリアルI/Oチャネル毎に複数組設定でき
る送信データ設定レジスタ、シリアルI/Oチャネル毎
の送信データ設定レジスタの実行順序をレジスタNo.
で指定する順序指定レジスタを有する。
Next, the operation will be described. As shown in FIG. 9, a dedicated bus 18 is provided between the memory 3 and the serial I / O 4.
Controller 1 for controlling the dedicated bus 18 by connecting with
Place 9 As shown in FIG. 10, the controller 19 has a memory access control unit 20 that can acquire the data in the memory 3 via the dedicated bus 18 and send it to the serial I / O 4, and also has a source address and the number of transfer bytes. , The transmission data setting register that can set a plurality of sets for each serial I / O channel and the execution order of the transmission data setting register for each serial I / O channel.
It has an order designation register designated by.

【0020】実施の形態4によれば、複数チャネルのシ
リアルI/Oに対し、シリアル送信データをメモリ上に
分割して配置し、送信させることが可能となる。また、
シリアル送信データ作成の自由度が高まり、メモリ使用
効率を向上させることができる。また、一度、各送信デ
ータ設定レジスタに値を設定しておけば、順序指定レジ
スタに設定するレジスタNo.を変更するだけで、送信
データの変更や入れ替えが可能である。
According to the fourth embodiment, it is possible to divide serial transmission data in a memory and transmit the divided serial transmission data for a plurality of channels of serial I / O. Also,
The degree of freedom in creating serial transmission data is increased, and the memory usage efficiency can be improved. In addition, once a value is set in each transmission data setting register, the register number. It is possible to change or replace the transmission data by simply changing.

【0021】[0021]

【発明の効果】この発明は、以上説明したように構成さ
れているので、以下に示すような効果を奏する。送信デ
ータが記憶されたメモリと、このメモリに記憶された送
信データをシリアル送信するシリアルI/O部と、メモ
リに記憶された送信データをシリアルI/O部に転送す
るDMAを制御するDMAコントローラを備え、DMA
コントローラは、それぞれ送信データを転送する複数の
チャネルを有するDMAと、このDMAの複数チャネル
にそれぞれ対応して転送情報が設定された複数の第一の
レジスタと、この第一のレジスタを用いて転送するDM
Aの各チャネルの転送順序が設定された第二のレジスタ
とを有すると共に、第二のレジスタの転送順序に従い、
DMAの各チャネルによる転送を順次実行するようDM
Aを制御するので、送信データをメモリ上に分割して配
置でき、これをDMAコントローラにより順次転送して
送信することができると共に、第二のレジスタの設定に
応じて送信データを変更することができる。
Since the present invention is constructed as described above, it has the following effects. A memory that stores transmission data, a serial I / O unit that serially transmits the transmission data stored in the memory, and a DMA controller that controls a DMA that transfers the transmission data stored in the memory to the serial I / O unit Equipped with DMA
The controller has a DMA having a plurality of channels for transferring transmission data, a plurality of first registers in which transfer information is set corresponding to a plurality of channels of the DMA, and a transfer using the first register. DM
And a second register in which the transfer order of each channel of A is set, and according to the transfer order of the second register,
DM to sequentially execute the transfer by each channel of DMA
Since A is controlled, the transmission data can be divided and arranged in the memory, which can be sequentially transferred and transmitted by the DMA controller, and the transmission data can be changed according to the setting of the second register. it can.

【0022】また、送信データが記憶されたメモリと、
送信データをメモリから転送してシリアル送信するよう
構成されたシリアルI/O部を備え、シリアルI/O部
は、送信データをメモリから転送してシリアル送信する
メモリアクセス制御部と、送信データの転送に用いられ
る転送情報がそれぞれ設定された複数の第一のレジスタ
と、この複数の第一のレジスタによる転送の順序が設定
された第二のレジスタとを有すると共に、メモリアクセ
ス制御部は、第二のレジスタに設定された転送順序に従
い、複数の第一のレジスタによる転送を順次実行するの
で、DMAコントローラを使用することなしに、メモリ
上に分割して配置された送信データを順次転送して送信
することができると共に、第二のレジスタの設定に応じ
て送信データを変更することができる。また、メモリ及
びシリアルI/O部は、専用バスによって接続されてい
るので、内部バスを使用することなく転送することがで
きる。
Further, a memory in which transmission data is stored,
The serial I / O unit includes a serial I / O unit configured to transfer the transmission data from the memory and perform serial transmission. The serial I / O unit transfers the transmission data from the memory and performs serial transmission, and a serial access unit for transmitting the transmission data. The memory access control unit has a plurality of first registers in which transfer information used for transfer is respectively set, and a second register in which an order of transfer by the plurality of first registers is set. Since the transfer by the plurality of first registers is sequentially executed according to the transfer order set in the second register, the transmission data divided and arranged in the memory is sequentially transferred without using the DMA controller. The data can be transmitted, and the transmission data can be changed according to the setting of the second register. Further, since the memory and the serial I / O unit are connected by a dedicated bus, they can be transferred without using the internal bus.

【0023】さらに、送信データが記憶されたメモリ
と、このメモリと専用バスにより接続され、メモリに記
憶された送信データをシリアル送信するシリアルI/O
部と、専用バスに接続され、メモリに記憶された送信デ
ータをシリアルI/O部に転送するよう構成されたコン
トローラを備え、コントローラは、それぞれ転送情報が
設定された複数の第一のレジスタと、この複数の第一の
レジスタによる転送の順序が設定された第二のレジスタ
と、第二のレジスタに設定された転送順序に従い、複数
の第一のレジスタによる転送を順次実行するメモリアク
セス制御部とを有するので、送信データをメモリ上に分
割して配置でき、これを専用バスに接続されたコントロ
ーラにより順次転送して送信することができると共に、
第二のレジスタの設定に応じて送信データを変更するこ
とができる。
Further, a memory storing transmission data and a serial I / O which is connected to the memory by a dedicated bus and serially transmits the transmission data stored in the memory.
And a controller connected to the dedicated bus and configured to transfer the transmission data stored in the memory to the serial I / O unit, and the controller includes a plurality of first registers each having transfer information set therein. A second register in which the order of transfer by the plurality of first registers is set, and a memory access control unit that sequentially executes transfer by the plurality of first registers according to the transfer order set in the second register Since it has, the transmission data can be divided and arranged on the memory, and this can be sequentially transferred and transmitted by the controller connected to the dedicated bus.
The transmission data can be changed according to the setting of the second register.

【0024】また、シリアルI/O部は、複数設けられ
ているので、複数のシリアル送信を行うことができる。
また、第一のレジスタには、転送される送信データのソ
ースアドレス及び転送バイト数が設定されているので、
第一のレジスタの設定によって送信データを転送するこ
とができる。
Since a plurality of serial I / O units are provided, a plurality of serial transmissions can be performed.
Also, since the source address and the number of transfer bytes of the transmission data to be transferred are set in the first register,
Transmission data can be transferred by setting the first register.

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

【図1】 この発明の実施の形態1による半導体集積回
路を示す構成図である。
FIG. 1 is a configuration diagram showing a semiconductor integrated circuit according to a first embodiment of the present invention.

【図2】 この発明の実施の形態1による半導体集積回
路のDMACのデータ転送を示す図である。
FIG. 2 is a diagram showing data transfer of the DMAC of the semiconductor integrated circuit according to the first embodiment of the present invention.

【図3】 この発明の実施の形態1による半導体集積回
路のDMACの構成を示す図である。
FIG. 3 is a diagram showing a structure of a DMAC of the semiconductor integrated circuit according to the first embodiment of the present invention.

【図4】 この発明の実施の形態1による半導体集積回
路のDMACの動作を示す図である。
FIG. 4 is a diagram showing the operation of the DMAC of the semiconductor integrated circuit according to the first embodiment of the present invention.

【図5】 この発明の実施の形態2による半導体集積回
路のシリアルI/Oの構成を示す図である。
FIG. 5 is a diagram showing a structure of a serial I / O of a semiconductor integrated circuit according to a second embodiment of the present invention.

【図6】 この発明の実施の形態2による半導体集積回
路のシリアルI/Oの動作を示す図である。
FIG. 6 is a diagram showing an operation of serial I / O of the semiconductor integrated circuit according to the second embodiment of the present invention.

【図7】 この発明の実施の形態3による半導体集積回
路のメモリーシリアルI/O間のデータ転送を示す図で
ある。
FIG. 7 is a diagram showing data transfer between memory serial I / Os of a semiconductor integrated circuit according to a third embodiment of the present invention.

【図8】 この発明の実施の形態3による半導体集積回
路のシリアルI/Oの構成を示す図である。
FIG. 8 is a diagram showing a structure of serial I / O of a semiconductor integrated circuit according to a third embodiment of the present invention.

【図9】 この発明の実施の形態4による半導体集積回
路のコントローラのデータ転送を示す図である。
FIG. 9 is a diagram showing data transfer of a controller of a semiconductor integrated circuit according to a fourth embodiment of the present invention.

【図10】 この発明の実施の形態4による半導体集積
回路のコントローラの構成を示す図である。
FIG. 10 is a diagram showing a structure of a controller of a semiconductor integrated circuit according to a fourth embodiment of the present invention.

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

1 CPU、2 DMAC、3 メモリ、4 シリアル
I/O、5 タイマ、6 内部バス、7 DMAチャネ
ル1設定レジスタ、8 DMAチャネル2設定レジス
タ、9 順序指定レジスタ、10 DMAC制御部、1
1 シリアル出力、13 送信データ設定レジスタ1、
14 送信データ設定レジスタ2、15 順序指定レジ
スタ、16 メモリアクセス制御部、17 シリアル送
信レジスタ、18 専用バス、19 コントローラ、2
0 メモリアクセス制御部。
1 CPU, 2 DMAC, 3 memory, 4 serial I / O, 5 timer, 6 internal bus, 7 DMA channel 1 setting register, 8 DMA channel 2 setting register, 9 sequence designation register, 10 DMAC control unit, 1
1 serial output, 13 transmission data setting register 1,
14 transmission data setting register 2, 15 order designation register, 16 memory access control unit, 17 serial transmission register, 18 dedicated bus, 19 controller, 2
0 Memory access control unit.

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B061 DD11 5B077 BB05 HH02 NN02    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5B061 DD11                 5B077 BB05 HH02 NN02

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 送信データが記憶されたメモリ、このメ
モリに記憶された送信データをシリアル送信するシリア
ルI/O部、上記メモリに記憶された送信データを上記
シリアルI/O部に転送するDMAを制御するDMAコ
ントローラを備え、上記DMAコントローラは、それぞ
れ送信データを転送する複数のチャネルを有するDMA
と、このDMAの複数チャネルにそれぞれ対応して転送
情報が設定された複数の第一のレジスタと、この第一の
レジスタを用いて転送するDMAの各チャネルの転送順
序が設定された第二のレジスタとを有すると共に、上記
第二のレジスタの転送順序に従い、上記DMAの各チャ
ネルによる転送を順次実行するよう上記DMAを制御す
ることを特徴とする半導体集積回路。
1. A memory that stores transmission data, a serial I / O unit that serially transmits the transmission data stored in the memory, and a DMA that transfers the transmission data stored in the memory to the serial I / O unit. And a DMA controller having a plurality of channels for transferring transmission data, respectively.
A plurality of first registers in which transfer information is set respectively corresponding to a plurality of channels of this DMA, and a second register in which a transfer order of each channel of the DMA to be transferred using this first register is set. A semiconductor integrated circuit having a register and controlling the DMA so as to sequentially execute the transfer by each channel of the DMA according to the transfer order of the second register.
【請求項2】 送信データが記憶されたメモリ、上記送
信データを上記メモリから転送してシリアル送信するよ
う構成されたシリアルI/O部を備え、上記シリアルI
/O部は、送信データを上記メモリから転送してシリア
ル送信するメモリアクセス制御部と、上記送信データの
転送に用いられる転送情報がそれぞれ設定された複数の
第一のレジスタと、この複数の第一のレジスタによる転
送の順序が設定された第二のレジスタとを有すると共
に、上記メモリアクセス制御部は、上記第二のレジスタ
に設定された転送順序に従い、上記複数の第一のレジス
タによる転送を順次実行することを特徴とする半導体集
積回路。
2. A memory storing transmission data, a serial I / O unit configured to transfer the transmission data from the memory for serial transmission, and the serial I / O unit.
The / O unit transfers the transmission data from the memory and serially transmits it, a plurality of first registers in which transfer information used to transfer the transmission data is set, and a plurality of the first registers. A second register in which a transfer order by one register is set, and the memory access control unit performs transfer by the plurality of first registers according to the transfer order set in the second register. A semiconductor integrated circuit characterized by being sequentially executed.
【請求項3】 メモリ及びシリアルI/O部は、専用バ
スによって接続されていることを特徴とする請求項2記
載の半導体集積回路。
3. The semiconductor integrated circuit according to claim 2, wherein the memory and the serial I / O unit are connected by a dedicated bus.
【請求項4】 送信データが記憶されたメモリ、このメ
モリと専用バスにより接続され、上記メモリに記憶され
た送信データをシリアル送信するシリアルI/O部、上
記専用バスに接続され、上記メモリに記憶された送信デ
ータを上記シリアルI/O部に転送するよう構成された
コントローラを備え、上記コントローラは、それぞれ転
送情報が設定された複数の第一のレジスタと、この複数
の第一のレジスタによる転送の順序が設定された第二の
レジスタと、上記第二のレジスタに設定された転送順序
に従い、上記複数の第一のレジスタによる転送を順次実
行するメモリアクセス制御部とを有することを特徴とす
る半導体集積回路。
4. A memory in which transmission data is stored, a serial I / O unit which is connected to this memory by a dedicated bus and serially transmits the transmission data stored in the memory, and which is connected to the dedicated bus and is connected to the memory. The controller is provided with a controller configured to transfer the stored transmission data to the serial I / O unit, and the controller includes a plurality of first registers in which transfer information is set and a plurality of first registers. A second register in which a transfer order is set, and a memory access control unit that sequentially executes transfers by the plurality of first registers according to the transfer order set in the second register. Integrated semiconductor circuit.
【請求項5】 シリアルI/O部は、複数設けられてい
ることを特徴とする請求項4記載の半導体集積回路。
5. The semiconductor integrated circuit according to claim 4, wherein a plurality of serial I / O units are provided.
【請求項6】 第一のレジスタには、転送される送信デ
ータのソースアドレス及び転送バイト数が設定されてい
ることを特徴とする請求項1〜請求項5のいずれか一項
記載の半導体集積回路。
6. The semiconductor integrated device according to claim 1, wherein a source address of transfer data to be transferred and a number of transfer bytes are set in the first register. circuit.
JP2002039427A 2002-02-18 2002-02-18 Semiconductor integrated circuit Pending JP2003242098A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002039427A JP2003242098A (en) 2002-02-18 2002-02-18 Semiconductor integrated circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002039427A JP2003242098A (en) 2002-02-18 2002-02-18 Semiconductor integrated circuit

Publications (1)

Publication Number Publication Date
JP2003242098A true JP2003242098A (en) 2003-08-29

Family

ID=27780447

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002039427A Pending JP2003242098A (en) 2002-02-18 2002-02-18 Semiconductor integrated circuit

Country Status (1)

Country Link
JP (1) JP2003242098A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006215812A (en) * 2005-02-03 2006-08-17 Renesas Technology Corp Dma controller
JP2008269346A (en) * 2007-04-20 2008-11-06 Nuflare Technology Inc Data transfer system
JP2009211682A (en) * 2008-02-07 2009-09-17 Yokogawa Electric Corp Data transfer device and semiconductor testing device
US7970959B2 (en) 2005-09-15 2011-06-28 Fujitsu Semiconductor Limited DMA transfer system using virtual channels

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006215812A (en) * 2005-02-03 2006-08-17 Renesas Technology Corp Dma controller
US7970959B2 (en) 2005-09-15 2011-06-28 Fujitsu Semiconductor Limited DMA transfer system using virtual channels
JP2008269346A (en) * 2007-04-20 2008-11-06 Nuflare Technology Inc Data transfer system
JP2009211682A (en) * 2008-02-07 2009-09-17 Yokogawa Electric Corp Data transfer device and semiconductor testing device

Similar Documents

Publication Publication Date Title
EP1428131B1 (en) Multiple channel interface for communications between devices
TW201633164A (en) Multi-channel I2S transmit control system and method
JP4873557B2 (en) Data processing apparatus and semiconductor integrated circuit
JP2845433B2 (en) Integrated circuit device
JPS6353669A (en) Microprocessor
JP2004318340A (en) Data transfer controller
JP2003242098A (en) Semiconductor integrated circuit
JP2723970B2 (en) Data transfer control device
JP2002520931A (en) CAN module
US7788466B2 (en) Integrated circuit with a plurality of communicating digital signal processors
JP2624989B2 (en) Data transfer control device
JP2004213666A (en) Dma module and its operating method
US20050050233A1 (en) Parallel processing apparatus
JP2001188770A (en) One chip microcomputer
JPH1063606A (en) Method for controlling dma transfer
JP2705955B2 (en) Parallel information processing device
JP2021036630A (en) Communication device, control method, and program
JP2006323579A (en) Dma controller
JPH01134546A (en) Arithmetic processor
JP4477877B2 (en) Communication bus system
JP2006209384A (en) Data transfer system
JP4854598B2 (en) Data transfer control device
JP2012150656A (en) Semiconductor device
JPH0628301A (en) Direct memory access circuit
JP2000148662A (en) Microcomputer