JPH0621989B2 - Register array circuit - Google Patents

Register array circuit

Info

Publication number
JPH0621989B2
JPH0621989B2 JP61030090A JP3009086A JPH0621989B2 JP H0621989 B2 JPH0621989 B2 JP H0621989B2 JP 61030090 A JP61030090 A JP 61030090A JP 3009086 A JP3009086 A JP 3009086A JP H0621989 B2 JPH0621989 B2 JP H0621989B2
Authority
JP
Japan
Prior art keywords
data
register array
row
column
write
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 - Lifetime
Application number
JP61030090A
Other languages
Japanese (ja)
Other versions
JPS62187939A (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
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP61030090A priority Critical patent/JPH0621989B2/en
Publication of JPS62187939A publication Critical patent/JPS62187939A/en
Publication of JPH0621989B2 publication Critical patent/JPH0621989B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はレジスタ回路に関し、特にシングルチップマイ
クロコンピュータ等のモードコントロールレジスタに関
する。
The present invention relates to a register circuit, and more particularly to a mode control register for a single chip microcomputer or the like.

〔従来の技術〕[Conventional technology]

シングルチップマイクロコンピュータは1チップ内に周
辺ハードウェアや多数のI/Oポートを持ち、それら
は、I/O空間又はメモリ空間にアドレスマッピングさ
れている。CPUはこのアドレスに対してデータを書込
む事によって周辺ハードウェアのコントロールレジスタ
を書換えて制御を行っている。
A single-chip microcomputer has peripheral hardware and a large number of I / O ports in one chip, and these are address-mapped in an I / O space or a memory space. The CPU rewrites the control register of the peripheral hardware by writing data to this address to control.

このコントロールレジスタの一列としてタイマーのモー
ドコントロールレジスタを表1及び表2に示し、これを
簡単に説明する。
The mode control registers of the timer are shown in Tables 1 and 2 as one row of this control register, which will be briefly described.

表1はタイマー0の動作モードを指定する4ビットのコ
ントロールレジスタTCON0の動作指定表である。0ビッ
ト目はカウンタロックの周波数指定である。1ビット目
は動作方式の指定である。2ビット目はオーバーフロー
信号によるCPUへの割込みのマスク指定である。3ビッ
ト目は起動の指定である。このTCON0のアドレスは8進
で0OCTである。
Table 1 is an operation specification table of the 4-bit control register TCON0 that specifies the operation mode of the timer 0. The 0th bit is the frequency designation of the counter lock. The first bit is the designation of the operation method. The second bit is the mask specification of the interrupt to the CPU by the overflow signal. The third bit is the designation of activation. The address of this TCON0 is 0 OCT in octal.

今、タイマーは4本あるものとし、それらのコントロー
ルレジスタTCON0〜TCON3は表2に示すようなアドレス
が割り付けられている。各タイマーのモード指定は表1
のTCON0と同じである。
Now, it is assumed that there are four timers, and the control registers TCON0 to TCON3 are assigned addresses as shown in Table 2. Table 1 shows the mode designation of each timer
It is the same as TCON0.

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

上述した従来のタイマーではコントロールビットのアド
レスが各タイマー毎に割り付けられているため、例えば
割込みのマスク制御を全タイマーについて行いたい場合
も4本のタイマーのそれぞれのコントロールレジスタに
書き込まなければいけないため4回の書込みが必要とな
り、処理のプログラムが複雑になるだけでなく処理時間
も伸びる欠点がある。
In the above-described conventional timer, the control bit address is assigned to each timer. Therefore, for example, even if it is desired to perform interrupt mask control for all timers, it is necessary to write the control register to each of the four timers. This requires writing once, which not only complicates the processing program but also increases the processing time.

又、アドレス割り付けを各タイマー毎から各機能毎にし
た場合もタイマーを1本しか使用しない時に全コントロ
ールレジスタを設定しなければならないため4回書込む
必要があるという欠点がある。
Further, even if the address is assigned from each timer to each function, all control registers must be set when only one timer is used, so that there is a disadvantage that it is necessary to write four times.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のレジスタアレイ回路は、2次元配列のレジスタ
アレイと、該レジスタアレイの任意の1行を選択する行
デコーダと、該レジスタアレイの任意の1列を選択する
列デコーダとを有し、前記レジスタアレイの各セルは行
データ選択回路を介して行データ線に接続されると共に
列データ選択回路を介して列データ線に接続され、該行
データ選択回路は前記列デコーダにより選択され、該列
データ選択回路は前記行デコーダにより選択され、前記
行データ線と列データ線は各データビット毎に接続しれ
レジスタアレイのデータ入出力線とし書き込み/読み出
し信号で制御される書き込み/読み出しバッファに接続
した事を特徴とする。
The register array circuit of the present invention has a two-dimensional array of register arrays, a row decoder for selecting any one row of the register array, and a column decoder for selecting any one column of the register array. Each cell of the register array is connected to a row data line through a row data selection circuit and a column data line through a column data selection circuit, and the row data selection circuit is selected by the column decoder and the column The data selection circuit is selected by the row decoder, and the row data line and the column data line may be connected for each data bit and connected as a data input / output line of a register array to a write / read buffer controlled by a write / read signal. Characterize things.

〔実施例〕〔Example〕

次に本発明の一実施例について図面を参照しながら説明
する。
Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は4本のタイマーのモードコントロールを行う4
×4ビットのレジスタアレイ回路を示す。A0〜A2は
アドレス信号である。R/Wはレジスタの読出し/書込
み信号で、R/W=1の時に読出しを行いR/W=0の
時に書込みを行う。DB0〜DB3は4ビットのデータ
バスで、このバス上のデータをレジスタに書込み又はレ
ジスタのデータをデータバスに読出す。D0〜D3はレ
ジスタアレイへのデータの書込みやレジスタアレイから
のデータの読出しを行うためのデータ線である。TCON00
〜03,TCON10〜13,TCON20〜23,TCON30〜33
はタイマーのモードコントロールレジスタアレイで、2
桁目の数字はタイマー0〜3の4本のタイマー中のどの
タイマーかを示し、1桁目の数字は各レジスタのビット
位置を示す。このビット位置の指定内容は表1に示した
従来例と同じである。次にモードコントロールレジスタ
アレイ内部を説明すると、I1とI2はインバータで2
個でラッチを構成する。TXとTYはトランスファゲー
トでD0〜D3上のデータ前記I1〜I2のラッチに書
込み又はI1−I2のラッチのデータをD0〜D3に読
出す制御を行う。
Fig. 1 shows mode control of 4 timers. 4
4 shows a register array circuit of 4 bits. A0 to A2 are address signals. R / W is a register read / write signal, which is read when R / W = 1 and write when R / W = 0. DB0 to DB3 are 4-bit data buses that write data on the bus to registers or read data from the registers to the data buses. D0 to D3 are data lines for writing data to the register array and reading data from the register array. TCON00
~ 03, TCON10 ~ 13, TCON20 ~ 23, TCON30 ~ 33
Is the mode control register array of the timer, 2
The digit in the first digit indicates which of the four timers 0 to 3 is used, and the digit in the first digit indicates the bit position of each register. The designated contents of the bit position are the same as those in the conventional example shown in Table 1. Next, explaining the inside of the mode control register array, I1 and I2 are inverters
A latch is composed of these. TX and TY are transfer gates, and control to write data on D0 to D3 to the latches of I1 to I2 or read data of the latch of I1 to I2 to D0 to D3.

AD0〜AD7はアドレス信号A0〜A3を入力とする
アドレスデコーダである。AX0はAD0の出力信号で
TCON00〜03内のTYのゲートに入力されてタイマー
0が選択される。AX1はAD1の出力信号でTCON0〜
13内のTYのゲートに入力されてタイマー1が選択さ
れる。AX2はAD2の出力信号でTCON20〜23のT
Yのゲートに入力されてタイマー2が選択される。AX
3はAD3の出力信号でTCON30〜33のTYのゲート
に入力されてタイマー3が選択される。AY0はAD4
の出力信号でTCON00,10,20,30内のTXのゲ
ートに入力されてカウントクロックの周波数指定が選択
される。AY1はAD5の出力信号でTCON01,11,
21,31内のTXのゲートに入力されて動作方式指定
が選択される。AY2はAD6の出力信号でTCON02,
12,22,32内のTXのゲートに入力されてマスク
指定が選択される。AY3はAD7の出力信号でTCON0
3,13,23,33内のTXのゲートに入力されて起
動指定が選択される。
AD0 to AD7 are address decoders to which the address signals A0 to A3 are input. AX0 is the output signal of AD0
Timer 0 is selected by inputting to the TY gate in TCON00-03. AX1 is an output signal of AD1 and TCON0 to
The timer 1 is selected by being input to the TY gate in 13. AX2 is the output signal of AD2 and TCON of TCON20-23.
The timer 2 is selected by being input to the Y gate. AX
3 is an output signal of AD3, which is input to the TY gates of TCONs 30 to 33 to select the timer 3. AY0 is AD4
Is input to the TX gates in TCON00, 10, 20, and 30, and the frequency designation of the count clock is selected. AY1 is the output signal of AD5, TCON01, 11,
The operation mode designation is selected by inputting to the TX gate in 21 and 31. AY2 is the output signal of AD6, TCON02,
The mask designation is selected by inputting to the gate of TX in 12, 22, and 32. AY3 is the output signal of AD7 and TCON0
The start designation is selected by inputting into the TX gate in 3, 13, 23, and 33.

I0はインバータでR/W信号の反転信号を生成する。
RW0〜RW3は読出し/書込みバッファである。RW
0〜RW3の内部は読出しバッファRBと書込みバッフ
ァWBから構成され、R/W=1の時はRBが選択され
てD0〜D3のデータをDB0〜DB3に出力する又R
/W=0の時はWBが選択されてDB0〜DB3のデー
タがD0〜D3に出力される。
I0 is an inverter that generates an inverted signal of the R / W signal.
RW0 to RW3 are read / write buffers. RW
The inside of 0 to RW3 is composed of a read buffer RB and a write buffer WB, and when R / W = 1, RB is selected to output the data of D0 to D3 to DB0 to DB3.
When / W = 0, WB is selected and the data of DB0 to DB3 is output to D0 to D3.

TCON00〜03,10〜13,20〜23,30〜33
の各ビットの出力はタイマーのハードウェァに入力して
制御を行うが、これは本発明の内容と直接関係しないの
で、第1図では図示していない。
TCON 00-03, 10-13, 20-23, 30-33
The output of each bit is input to the hardware of the timer for control, but this is not shown in FIG. 1 because it is not directly related to the content of the present invention.

次に第1のタイマーモードコントロールレジスタの動作
を説明する。今、アドレス信号A2〜A0が110(=
OCT)であったとすると、デコーダはAD6がアク
ティブになりTCON32,22,12,02が選択され
る。ここでR/W=0であればDB3〜DB0のデータ
がRW3〜RW0を介してD3〜D0の出力されTCON3
2,22,12,02内のTXを介してI1−I2のラ
ッチに書込まれる。WBはI2よりも十分ドライブ能力
が大きいので、もしI1−I2のラッチのデータとWB
の出力データが異なっていてもラッチにはWBの出力す
るデータが書込まれる。又、R/W=1であればI1−
I2のラッチのデータがTCON32,22,12,02内
のTXを介してD3〜D0に出力され、そのデータはR
Bを介してDB3〜DB0に読出される。
Next, the operation of the first timer mode control register will be described. Now, the address signals A2 to A0 are 110 (=
6 OCT ), the decoder activates AD6 and selects TCON 32, 22, 12, 02. If R / W = 0 here, the data of DB3 to DB0 is output to D3 to D0 via RW3 to RW0 and TCON3 is output.
Written to latches I1-I2 via TX in 2, 22, 12, 02. Since WB has a drive capacity sufficiently larger than I2, if the data of the latches of I1-I2 and WB are
Even if the output data is different, the data output from WB is written in the latch. If R / W = 1, then I1-
The data of the latch of I2 is output to D3 to D0 via TX in TCON32, 22, 12, and 02, and the data is R
It is read to DB3 to DB0 via B.

このようにしてアドレスを6OCTに選べばTCON32,
22,12,02の各ビット即ちタイマー3〜0のマス
ク指定を1回のアクセスで書込み又は読出しができる。
In this way, if the address is selected as 6 OCT , TCON32,
Each bit of 22, 12, 02, that is, the mask designation of the timers 3 to 0 can be written or read by one access.

同様にしてアドレス0OCT〜2OCTを選べばタイマ
ー0〜3を選択して書込み又は読出しができる。
Similarly, if addresses 0 OCT to 2 OCT are selected, timers 0 to 3 can be selected to write or read.

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

以上説明したように本発明によれば、レジスタを行方向
及び列方向の両方からアドレス付けすることにより全タ
イマーの動作モード別かまたはタイマー別の2種類のレ
ジスタアクセスが可能になり、プログラムの自由度が増
し、プログラム作成が容易になるだけでなく、レジスタ
のアクセス処理スピードを大幅に向上させる効果もあ
る。
As described above, according to the present invention, by addressing the registers in both the row direction and the column direction, it is possible to access two types of registers for each timer operation mode or each timer, and the program can be freely accessed. Not only does this increase the frequency and ease of program creation, but it also has the effect of significantly increasing the register access processing speed.

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

第1図は本発明の実施例の構成図である。 A0〜A3……アドレス信号、DB0〜DB3……デー
タパス、R/W……読出し,書込み信号、AD0〜AD
6……アドレスデコーダ、AX0〜AX3……AD0〜
AD3の出力信号、AY0〜AY3……AD4〜AD7
の出力信号、TCON00〜03,TCON10〜13,TCON20
〜23,TCON30〜33……レジスタアレイ、I0〜I
2……インバータ、TX,TY……トランスファゲー
ト、D0〜D3……レジスタアレイのデータ線、RB…
…読出しバッファ、WB……書込みバッファ、RW0〜
RW3……読出し/書込みバッファ。
FIG. 1 is a block diagram of an embodiment of the present invention. A0-A3 ... Address signal, DB0-DB3 ... Data path, R / W ... Read / write signal, AD0-AD
6 ... Address decoder, AX0-AX3 ... AD0
Output signal of AD3, AY0 to AY3 ... AD4 to AD7
Output signal of TCON00-03, TCON10-13, TCON20
~ 23, TCON30 ~ 33 ...... Register array, I0 ~ I
2 ... Inverter, TX, TY ... Transfer gate, D0-D3 ... Register array data line, RB ...
... Read buffer, WB ... Write buffer, RW0
RW3 ... Read / write buffer.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】2次元配列のレジスタアレイと、該レジス
タアレイの任意の1行を選択する行デコーダと、該レジ
スタアレイの任意の1列を選択する列デコーダとを有
し、前記レジスタアレイの各セルは行データ選択回路を
介して行データ線に接続されると共に列データ選択回路
を介して列データ線に接続され、該行データ選択回路は
前記列デコーダにより選択され、該列データ選択回路は
前記行デコーダにより選択され、前記行データ線と列デ
ータ線は各データビット毎に接続してレジスタアレイの
データ入出力線とし書き込み/読み出し信号で制御され
る書き込み/読み出しバッファに接続した事を特徴とす
るレジスタアレイ回路。
1. A register array having a two-dimensional array, a row decoder for selecting any one row of the register array, and a column decoder for selecting any one column of the register array. Each cell is connected to a row data line via a row data selection circuit and connected to a column data line via a column data selection circuit, and the row data selection circuit is selected by the column decoder. Is selected by the row decoder, and the row data line and the column data line are connected for each data bit to serve as a data input / output line of a register array and connected to a write / read buffer controlled by a write / read signal. Characteristic register array circuit.
JP61030090A 1986-02-13 1986-02-13 Register array circuit Expired - Lifetime JPH0621989B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61030090A JPH0621989B2 (en) 1986-02-13 1986-02-13 Register array circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61030090A JPH0621989B2 (en) 1986-02-13 1986-02-13 Register array circuit

Publications (2)

Publication Number Publication Date
JPS62187939A JPS62187939A (en) 1987-08-17
JPH0621989B2 true JPH0621989B2 (en) 1994-03-23

Family

ID=12294089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61030090A Expired - Lifetime JPH0621989B2 (en) 1986-02-13 1986-02-13 Register array circuit

Country Status (1)

Country Link
JP (1) JPH0621989B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6491235A (en) * 1987-09-30 1989-04-10 Mitsubishi Electric Corp Control system for counter circuit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5771574A (en) * 1980-10-21 1982-05-04 Nec Corp Siemconductor memory circuit
JPS6054055A (en) * 1983-09-02 1985-03-28 Mitsubishi Electric Corp Storage device

Also Published As

Publication number Publication date
JPS62187939A (en) 1987-08-17

Similar Documents

Publication Publication Date Title
US5226134A (en) Data processing system including a memory controller for direct or interleave memory accessing
US5721868A (en) Rapid register file access by limiting access to a selectable register subset
JPH0255878B2 (en)
JPH077260B2 (en) Image data rotation processing apparatus and method thereof
JPH0636313B2 (en) Dual Access Single Chip Integrated Circuit Digital Storage
JPS6113629B2 (en)
JPH0621989B2 (en) Register array circuit
JP2502403B2 (en) DMA controller
JPH0514359B2 (en)
US4775929A (en) Time partitioned bus arrangement
JP2769384B2 (en) Arithmetic control IC and information processing device
KR940002595Y1 (en) Dual port memory unit controller on cpu-board
JP2659886B2 (en) Processor system
JP2962431B2 (en) Programmable controller
JPS63313251A (en) Addressing circuit
JPS5824942A (en) Data bus
JPH0542759B2 (en)
JPS59191184A (en) Memory device
JPS61161560A (en) Memory device
JPS62217483A (en) Memory device
JPS58106644A (en) Memory device with address converting mechanism
JPH07248995A (en) Information processor
JPS6175444A (en) Register file integrated circuit
JPH01125621A (en) Register setting system
JPH04170587A (en) Semiconductor memory device