JPS61175821A - Timer device for microcomputer - Google Patents

Timer device for microcomputer

Info

Publication number
JPS61175821A
JPS61175821A JP60017127A JP1712785A JPS61175821A JP S61175821 A JPS61175821 A JP S61175821A JP 60017127 A JP60017127 A JP 60017127A JP 1712785 A JP1712785 A JP 1712785A JP S61175821 A JPS61175821 A JP S61175821A
Authority
JP
Japan
Prior art keywords
timer
address
data pointer
circuit
clock
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.)
Granted
Application number
JP60017127A
Other languages
Japanese (ja)
Other versions
JPH07104782B2 (en
Inventor
Nobuhisa Watanabe
信久 渡辺
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP60017127A priority Critical patent/JPH07104782B2/en
Publication of JPS61175821A publication Critical patent/JPS61175821A/en
Publication of JPH07104782B2 publication Critical patent/JPH07104782B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To prevent a hardware from being complicated, by placing an indirect address register and an address of a timer on the same space, so that the timer is operated as a data pointer, which is brought to an increment automatically at the time of a desired mode. CONSTITUTION:At the time of a mode in which a control signal from a control register 7 is '1', an address of a timer 4 is generated from a data pointer generating circuit 5 by a clock M2, and supplied to the timer 4 through buses 8, 9. Next, the contents of the timer 4 shown by its address are read out by a clock M3 and latched by a RAM address latching circuit 2. Also, by a clock M0, the contents of the circuit 2 are decoded by an address decoder 3 and supplied to a RAM1, and object data is fetched to the bus 8 side from the RAM1. This data is subjected to a necessary signal processing and its operation result is stored. In such a way, in this mode, the timer 4 is operated as an automatic increment data pointer.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はマイクロコンピュータに関し、特にデータア
クセスを間接指定により可能とするレジスタ(以下、デ
ータポインタと称する)と、タイマ機能を内蔵するマイ
クロコンピュータのタイマ装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] This invention relates to microcomputers, and in particular to a microcomputer that has a register (hereinafter referred to as a data pointer) that allows data access through indirect specification and a built-in timer function. Relating to a timer device.

(従来の技術) 通常、コンピュータの演算で対象となるデータをアクセ
スする方法として、対象データのアドレスを持つレジス
タの内容を読み、それから対象データをアクセスする間
接アドレス指定を行う方法がある。この対象データを連
続するアドレスから読み出したり書き込んだりするのに
、対象データのアドレスをもつデータポインタが演算実
行時に自動的にインクリメントするとプログラムステッ
プが短くでき、簡潔なプログラムとなる。
(Prior Art) Generally, as a method for accessing target data in computer operations, there is a method of indirect addressing in which the contents of a register that has the address of the target data is read and then the target data is accessed. When reading or writing this target data from consecutive addresses, if a data pointer having the address of the target data is automatically incremented during execution of an operation, program steps can be shortened, resulting in a concise program.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところが、上述の如きインクリメント機能をデータポイ
ンタに持たせることは、データポインタをバイナリカウ
ンタ形式にする必要がありハードウェアが複雑になる等
の欠点がある。しかも常時このような連続するアドレス
に対する演算を実行するわけではないので、ハードウェ
アの使用効率が悪い。
However, providing the data pointer with the above-mentioned increment function has drawbacks such as the need for the data pointer to be in the form of a binary counter, which complicates the hardware. Furthermore, since such operations are not always performed on consecutive addresses, the efficiency of hardware usage is poor.

この発明は斯る点に鑑みてなされたもので、ハードウェ
アを追加することなくデータポインタのオートインクリ
メント機能を加えることができると共にマイクロコンピ
ュータの内部システムを使用者の必要性に応じて柔軟に
変更することができるマイクロコンピュータのタイマ装
置を提供するものである。
This invention was made in view of these points, and it is possible to add an auto-increment function of a data pointer without adding any hardware, and it is possible to flexibly change the internal system of a microcomputer according to the needs of the user. The present invention provides a timer device for a microcomputer that can perform the following steps.

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

この発明によるマイクロコンピュータ用タイマ装置は、
間接アドレスレジスタとタイマを内蔵するマイクロコン
ピュータにおいて、上記間接アドレスレジスタとタイマ
(4)のアドレスを同一空間上に配置し、命令が間接指
定アドレモード時で且つ間接指定アドレスが自動的に1
個づつ増加するモード時上記タイマ(4)を自動的にイ
ンクリメントする間接アドレスレジスタとして働くよう
に構成している。
The timer device for a microcomputer according to the present invention has the following features:
In a microcomputer that has a built-in indirect address register and a timer, the addresses of the indirect address register and timer (4) are placed in the same space, and when the instruction is in the indirect specified address mode and the indirect specified address is automatically set to 1.
In the increment mode, the timer (4) is configured to function as an indirect address register that automatically increments the timer (4).

〔作用〕[Effect]

RAM(11に含まれる間接アドレスレジスタすなわち
データポインタとタイマ(4)のアドレスを同一(7)
RAMアドレス空間上に配置する。そして命令が間接指
定モードとなり、つまり信号DPIRが“11となり、
且つ間接指定アドレスが自動的に1(11!づつ増加さ
せるモードつまり信号AUTDが1”とした時にタイマ
(4)を自動的にインクリメントする間接アドレスレジ
スタ(データポインタ)として働くようにする。これに
より内蔵するタイマをオートマチイックインクリメント
データポインタに可変できる。
The indirect address register included in RAM (11), that is, the data pointer and the timer (4) have the same address (7)
Placed in RAM address space. Then, the instruction becomes indirect specification mode, that is, the signal DPIR becomes "11",
In addition, the indirect specified address is automatically incremented by 1 (11!), that is, when the signal AUTD is set to 1'', the timer (4) is made to function as an indirect address register (data pointer) that automatically increments. The built-in timer can be changed to an automatic increment data pointer.

〔実施例〕〔Example〕

以下、この発明の一実施例を第1図〜第4図に基づいて
詳しく説明する。
Hereinafter, one embodiment of the present invention will be described in detail based on FIGS. 1 to 4.

第1図は本実施例の全体の構成を示すもので、同図にお
いて、(1)はデータポインタをその一部に有するRA
M、(21はRAMアドレスラッチ回路、(3)はアド
レスデコーダである。また、(4)はタイマ、(5)は
データポインタアドレス発生回路、(6)はROM(図
示せず)の命令を解読する命令デコーダで、この命令デ
コーダ(6)より出力される信号DPIRは間接アドレ
ス指定のアドレッシングモードを持つ命令が実行される
時有効となる。つまり、命令が間接指定アドレスモード
の時例えば@1′″となり、そうでない時″0”となる
、(7)は制御レジスタで、この制御レジスタ(7)よ
り出力される信号AIJTDは、プログラマブルにビッ
トのセット、リセットを行い通常モードとオートマチッ
クインクリメントデータポインタモードを選択する制御
信号である。
Figure 1 shows the overall configuration of this embodiment. In the figure, (1) is an RA that has a data pointer in a part
M, (21 is a RAM address latch circuit, (3) is an address decoder, (4) is a timer, (5) is a data pointer address generation circuit, and (6) is a ROM (not shown) instruction The signal DPIR output from the instruction decoder (6) becomes valid when an instruction with indirect addressing mode is executed.In other words, when the instruction is in indirect addressing mode, for example @1 ``'', otherwise it becomes ``0''. (7) is a control register, and the signal AIJTD output from this control register (7) programmably sets and resets the bit to control normal mode and automatic increment data. This is a control signal for selecting pointer mode.

例えは制御信号AUTDが“0”のとき通常モード、“
l”のときオートマチックインクリメントデータポイン
タモードとなる。
For example, when the control signal AUTD is “0”, the normal mode is “
When it is "l", it becomes automatic increment data pointer mode.

次に第1図の動作を第2図を参照して説明する。Next, the operation shown in FIG. 1 will be explained with reference to FIG. 2.

命令デコーダ(6)からの信号DPIRが“1″となり
命令が間接指定アドレスモードとなっている状態で、制
御レジスタ(7)からの制御信号が“0”である通常モ
ードでは、クロックM2の期間でデータポインタアドレ
ス発生回路(5)より通常モードを表わすデータポイン
タ(D P)アドレスが発生されてバス(8)、 (9
)を介してクロックM3の期間でそのアドレスの示すデ
ータポインタの内容が読み出されてRAMアドレスラッ
チ回路(2)にラッチされる。
In the normal mode where the control signal from the control register (7) is "0" while the signal DPIR from the instruction decoder (6) is "1" and the instruction is in the indirect address mode, the period of clock M2 A data pointer (DP) address indicating the normal mode is generated from the data pointer address generation circuit (5) at the bus (8), (9
), the contents of the data pointer indicated by the address are read out during the period of clock M3 and latched into the RAM address latch circuit (2).

そして、クロックMOでRAMアドレスラッチ回路(2
)の内容がアドレスデコーダ(3)でデコードされてR
A M (11に供給され、このRA M (1)より
対象データがバス(8)側に取り出される。そして、こ
の取り出された対象データは所要の信号処理を受けてク
ロックMlで命令にもよるが例えばその演算結果がスト
アされる。この通常モードではタイマ(4)は普通のタ
イマとして働く。
Then, the RAM address latch circuit (2
) is decoded by the address decoder (3) and sent to R.
A M (11), and the target data is taken out from this RAM (1) to the bus (8) side.The taken out target data then undergoes the necessary signal processing and is clocked by the clock Ml depending on the instruction. For example, the result of the calculation is stored.In this normal mode, the timer (4) works as an ordinary timer.

一方、制御レジスタ(7)からの制御信号が“11であ
るオートマチックインクリメントデータポインタモード
では、クロックM2の期間でデータポインタアドレス発
生回路(5)よりオートマチックインクリメントデータ
ポインタモードを表わすデータポインタアドレスが発生
され、すなわちタイマ(41のアドレスが発生され、バ
ス+8)、 (9)を介してタイマ(勾に供給される。
On the other hand, in the automatic increment data pointer mode in which the control signal from the control register (7) is "11", a data pointer address representing the automatic increment data pointer mode is generated by the data pointer address generation circuit (5) during the period of clock M2. , that is, the address of timer (41) is generated and supplied to timer (41) via bus +8, (9).

そして、クロック M3でそのアドレスの示すタイマ(
4)の内容が読み出されてRAMアドレスラッチ回路(
2)にラッチされる。
Then, using clock M3, the timer (
4) is read out and the RAM address latch circuit (
2) is latched.

更に、クロックMOでRAMアドレスラッチ回路(2)
の内容がアドレスデコーダ(3)でデコードされてRA
 M (1)に供給され、且つこの時タイマの内容は1
つ増加され、このRA M (1)より対象データがバ
ス(8)側に取り出される。そして、この取り出された
対象データは所要の信号処理を受けてクロックM1で命
令にもよるが例えばその演算結果がストアされる。この
オートマチックインクリメントデータポインタモードで
は、タイマ(4)の内容がM3で取り出された後MOで
1つ自動的に増加されるので、タイマ(4)はオートマ
チックインクリメントデータポインタとして働く。
Furthermore, the RAM address latch circuit (2) is clocked by the clock MO.
The contents of are decoded by address decoder (3) and sent to RA.
M (1), and at this time the timer content is 1
The target data is taken out from this RAM (1) to the bus (8) side. The retrieved target data is subjected to necessary signal processing, and depending on the instruction, for example, the calculation result is stored at clock M1. In this automatic increment data pointer mode, timer (4) works as an automatic increment data pointer because the contents of timer (4) are automatically incremented by one in MO after being retrieved in M3.

第3図はデータポインタアドレス発生回路(5)の具体
的回路の一例を示すもので、同図において、ラインPO
〜P7が設けられ、これはバス(8)に相当する。ライ
ンPOと接地(GND)間に直列に電界効果トランジス
タ(以下、FETと称する)(10) 、  (11)
が接続され、同様にラインP5と接地間にFET (1
2) 、  (13) 、ライン璽と接地間にFET 
(14) 、  (15) 、ラインP7と接地間にF
ET (16) 、  (17)が接続される。FET
(10) 、  (12) 、  (14) 、  (
16)の各ゲート端子は共通接続されてインバータ(1
8)の出方側に接続され、このインバータ(18)の入
力側はナンド回路(19)の出力端に接続される。ナン
ド回路(19)の一方の入力端は端子(20)に接続さ
れ、この端子(20)には命令デコーダ(6)(第1図
)からの信号DPIRが供給され、地方の入力端にはク
ロックM2が供給される。
FIG. 3 shows an example of a specific circuit of the data pointer address generation circuit (5).
~P7 is provided, which corresponds to bus (8). Field effect transistors (hereinafter referred to as FETs) are connected in series between the line PO and ground (GND) (10), (11)
is connected, and similarly FET (1
2), (13), FET between line and ground
(14), (15), F between line P7 and ground
ET (16) and (17) are connected. FET
(10), (12), (14), (
Each gate terminal of the inverter (16) is commonly connected to the inverter (1
8), and the input side of this inverter (18) is connected to the output end of the NAND circuit (19). One input end of the NAND circuit (19) is connected to a terminal (20), to which the signal DPIR from the instruction decoder (6) (Fig. 1) is supplied, and to the local input end. Clock M2 is supplied.

また、制御レジスタ(7)(第1図)から制御信号AI
ITDが供給される端子(21)がインバータ(22)
を介してFET(11)のゲート端子に接続されると共
に直接FET (13) 、  (15) 、  (1
7)のゲート端子に接続される。
In addition, the control signal AI is sent from the control register (7) (Fig. 1).
The terminal (21) to which ITD is supplied is the inverter (22)
is connected to the gate terminal of FET (11) through FET (13), (15), (1
7) is connected to the gate terminal.

いま、ラインP1〜P4のレベルは“1”にプリチャー
ジされた状態にあり、ラインPO,P5〜P7のレベル
も、通常は“1”にプリチャージされた状態にある。端
子(21)からの制御信号AUTOが“01である通常
モードのときはインバータ(22)の出力が1″″とな
りFET(11)がオンし、一方FET=(13) 、
  (15) 、  (17)はオフする。そして、端
子(20)に供給される信号DPIRが11″である間
接指定アドレスモードのときはクロックM2が供給され
た時点でナンド回路(19)の出力が“O”となり、イ
ンバータ(18)の出力が1”となる、この“l”の信
号がFB’r (10) 。
Currently, the levels of lines P1 to P4 are precharged to "1", and the levels of lines PO and P5 to P7 are also normally precharged to "1". In the normal mode when the control signal AUTO from the terminal (21) is "01", the output of the inverter (22) becomes 1'' and the FET (11) turns on, while the FET=(13),
(15) and (17) are turned off. In the indirect address mode in which the signal DPIR supplied to the terminal (20) is 11'', the output of the NAND circuit (19) becomes "O" when the clock M2 is supplied, and the output of the inverter (18) becomes "O". This "l" signal whose output becomes "1" is FB'r (10).

(12) 、  (14) 、  (16)のゲート端
子に供給される。この結果、オン中のFET(11)に
接続されているFET(10)につながるラインPOの
レベルが01となり、残りのラインPI〜P7のレベル
は1”である、これを正論理で考えるとラインPOのレ
ベルが”1”となり、ラインP1〜P7のレベルが@θ
″となる。そして、これを16進法で考えると(P7 
Pa P5 P4 ) −(0000) 。
It is supplied to the gate terminals of (12), (14), and (16). As a result, the level of the line PO connected to the FET (10) connected to the FET (11) that is on becomes 01, and the levels of the remaining lines PI to P7 are 1''. Considering this in terms of positive logic, The level of line PO becomes “1” and the level of lines P1 to P7 becomes @θ
''.If we consider this in hexadecimal notation (P7
Pa P5 P4 ) −(0000).

(Pa P2 PI PO)→(0001)より〔O1
〕となる。
(Pa P2 PI PO) → (0001) [O1
].

つまり、通常モードではデータポインタアドレスを〔0
1〕とすると、データポインタアドレス発生回路(5)
よりデータポインタアドレス〔01〕が発生されること
になる。
In other words, in normal mode, the data pointer address is set to [0
1], the data pointer address generation circuit (5)
Thus, data pointer address [01] is generated.

次に端子(21)からの制御信号^υTDが“1”であ
るオートマチックインクリメントデータポインタモード
のときはFET:T(11)がオフし、FET(13)
 、  (15) 、  (17)がオンする。そして
、端子(20)に供給される信号0PIRが“1″であ
る間接指定アドレスモードでクロックM2が供給される
と、FET (10) 、  (12) 、  (14
) 、  (16)のゲート端子に“1”の信号が供給
される。この結果、オン中のFET (13) 、  
(15) 、  (17)に接続されているFET (
12) 、  (14) 、  (16)につながるラ
インP5〜P7のレベルが“0”となり、残りのライン
PO〜P4のレベルは“1”である。
Next, when the control signal ^υTD from the terminal (21) is "1" in automatic increment data pointer mode, FET:T (11) is turned off, and FET (13)
, (15) and (17) are turned on. Then, when the clock M2 is supplied in the indirect designation address mode in which the signal 0PIR supplied to the terminal (20) is "1", the FETs (10), (12), (14
), a signal of "1" is supplied to the gate terminals of (16). As a result, the ON FET (13),
(15), (17) are connected to FET (
The levels of lines P5 to P7 connected to 12), (14), and (16) are "0", and the levels of the remaining lines PO to P4 are "1".

これを上述同様正論理で考えるとラインP5−P7のレ
ベルが′″1′″となり、ラインPO〜P4のレベルが
@0”となる、そして、これを16進法で考えると(P
7 Pa P5 P4 )→(1110)、(P3P2
PI PO)→(0000)より(EO)となる。
If we consider this in positive logic as above, the level of lines P5-P7 will be ``1'', and the level of lines PO-P4 will be @0'', and if we consider this in hexadecimal notation (P
7 Pa P5 P4 ) → (1110), (P3P2
PI PO)→(0000) becomes (EO).

つまり、オートマチックインクリメントデータポインタ
モードではデータポインタアドレスをCE O)とする
と、データポインタアドレス発生回路(5)よりデータ
ポインタアドレス〔EO〕が発生されることになる。
That is, in the automatic increment data pointer mode, if the data pointer address is CEO), the data pointer address [EO] is generated by the data pointer address generation circuit (5).

第4図はタイマ(4とその周辺の制御回路の具体的回路
の一例を示すもので、タイマ(勾としては例えば8ビツ
トのラッチ付バイナリカウンタが用いられる、  (3
1,(32)は夫々信号DPIR,AUTDカ供給され
る端子であって、これはアンド回路、(33)の各入力
端に接続され、このアンド回路(33)の残りの入力端
にクロックMOが供給される。また、端子(32)がイ
ンバータ(34)を介してアンド回路(35)の一方の
入力端に接続され、アンド回路(35)の残りの各入力
端にクロックM2及び通常のタイマとして動作する時に
必要なりロック制御信号C1が供給される。アンド回路
(33) 、  (35)の各出力端はノア回路(36
)の各入力端に夫々接続され、ノア回路(36)の出力
端はインバータ(37)を介してタイマ(4)のクロッ
ク端子に接続される。
FIG. 4 shows an example of a specific circuit of a timer (4) and its peripheral control circuit.
1 and (32) are terminals to which the signals DPIR and AUTD are respectively supplied, which are connected to each input terminal of an AND circuit (33), and the remaining input terminals of this AND circuit (33) are supplied with a clock MO. is supplied. In addition, the terminal (32) is connected to one input terminal of the AND circuit (35) via the inverter (34), and the clock M2 and the other input terminals of the AND circuit (35) are connected to each other when operating as a normal timer. If necessary, a lock control signal C1 is supplied. Each output terminal of the AND circuits (33) and (35) is connected to a NOR circuit (36).
), and the output terminal of the NOR circuit (36) is connected to the clock terminal of the timer (4) via an inverter (37).

また、端子(31) 、  (32)がアンド回路(3
8)の各入力端に接続され、アンド回路(38)の残り
の各入力端にクロックM3及びアドレスデコーダ(3)
(第1図)からの信号TAD (データポインタアドレ
ス〔EO〕をデコードした信号)が供給される。また、
アンド回路(39)が設けられ、各入力端に通常のタイ
マとして動作するときの読み出し信号C3,クロックM
O及び信号TADが供給される。そして、アンド回路(
3B) 、  (39)の各出力端がノア回路(40)
の各入力端に夫々接続され、ノア回路(40)の出力端
がインバータ(41)を介してタイマ(4)の読み出し
端子に接続される。
In addition, the terminals (31) and (32) are connected to the AND circuit (3
8), and a clock M3 and an address decoder (3) are connected to each of the remaining input terminals of the AND circuit (38).
A signal TAD (signal obtained by decoding data pointer address [EO]) from (FIG. 1) is supplied. Also,
An AND circuit (39) is provided, and each input terminal has a readout signal C3 and a clock M when operating as a normal timer.
O and signal TAD are supplied. And the AND circuit (
3B), each output terminal of (39) is a NOR circuit (40)
The output terminal of the NOR circuit (40) is connected to the read terminal of the timer (4) via an inverter (41).

また、ナンド回路(42)が設けられ、各入力端に信号
TAD及び通常のタイマとして動作する時に必要な書き
込み信号C2が供給される。ナンド回路(42)の出力
端はインバータ(43)を介してタイマ(41の書き込
み端子に接続される。
Further, a NAND circuit (42) is provided, and each input terminal is supplied with a signal TAD and a write signal C2 necessary when operating as a normal timer. The output terminal of the NAND circuit (42) is connected to the write terminal of the timer (41) via an inverter (43).

いま、端子(31) 、  (32)に供給される信号
口PIR,ALITDが共に“1″のとき、つまり、間
接指定アドレスモードでオートマチックインクリメント
データポインタモードのとき、アンド回路(38)のゲ
ートが開き、クロックM3が印加された時点でアドレス
デコーダ(3)(第1図)よりデータポインタアドレス
(80)のデコードされた信号TADが供給されると、
アンド回路(38)からの出力“l”がノア回路(40
)を通りインバータ(41)で反転されて′″1°の信
号となり、タイマ(4)の読み出し端子に供給される。
Now, when the signal ports PIR and ALITD supplied to the terminals (31) and (32) are both "1", that is, when the indirect address mode and the automatic increment data pointer mode are set, the gate of the AND circuit (38) is When the decoded signal TAD of the data pointer address (80) is supplied from the address decoder (3) (FIG. 1) at the time when the clock M3 is applied,
The output “l” from the AND circuit (38) is
) and is inverted by the inverter (41) to become a 1° signal, which is supplied to the read terminal of the timer (4).

そしてデータポインタアドレスCB O)に対応した位
置の内容が読み出される。
Then, the contents of the position corresponding to the data pointer address CBO) are read out.

また、信号DPIR,AUT口が共に“1″のとき、ア
ンド回路(33)のゲートが開き、クロックMOが印加
された時点でアンド回路(33)の出力″1”がノア回
路(36)を通りインバータ(37)で反転されて“1
″の信号となりタイマ(41のクロック端子に供給され
、これによりタイマ(4)が1回インクリメントされる
Furthermore, when both the signals DPIR and AUT ports are "1", the gate of the AND circuit (33) opens, and when the clock MO is applied, the output "1" of the AND circuit (33) connects the NOR circuit (36). It is inverted by the inverter (37) and becomes “1”.
'' signal is supplied to the clock terminal of the timer (41), thereby incrementing the timer (4) once.

一方、信号AUTOが0”のとき、つまり通常モードの
ときはインバータ(34)を通った@1″の信号により
アンド回路(35)がゲートを開き、クロックM2.ク
ロック制御信号C1が印加されると、アンド回路(35
)の出力が′l″となり、ノア回路(36) 、インバ
ータ(37)を介してタイマ(4)のクロック端子に供
給されてタイマ(41がインクリメントされる。
On the other hand, when the signal AUTO is 0'', that is, in the normal mode, the AND circuit (35) opens the gate by the @1'' signal passed through the inverter (34), and the clock M2. When the clock control signal C1 is applied, the AND circuit (35
) becomes 'l'', which is supplied to the clock terminal of the timer (4) via the NOR circuit (36) and the inverter (37), and the timer (41) is incremented.

また、アンド回路(39)に読み出し信号C3゜クロッ
クMO,信号TADが供給されると、アンド回路(39
)の出力が61”となり、ノア回路(40) 、インバ
ータ(41)を介してタイマ(4の読み出し端子に供給
され、タイマ(4)の内容が読み出される。
Further, when the AND circuit (39) is supplied with the read signal C3° clock MO and the signal TAD, the AND circuit (39)
) becomes 61'', which is supplied to the read terminal of the timer (4) via the NOR circuit (40) and the inverter (41), and the contents of the timer (4) are read out.

また、ナンド回路(42)に書き込み信号C2゜信号T
ADが供給されると、ナンド回路(39)の出力が“0
′″となり、インバータ(43)で反転されてタイマ(
褐の書き込み端子に供給され、所定位置に最初のデータ
ポインタ値をロードできる。
In addition, the write signal C2° signal T is input to the NAND circuit (42).
When AD is supplied, the output of the NAND circuit (39) becomes “0”.
''' is inverted by the inverter (43) and the timer (
The brown write terminal can be supplied to load the first data pointer value into position.

〔発明の効果〕〔Effect of the invention〕

上述の如くこの発明によれば、間接アドレスレジスタ(
データポインタ)とタイマ(タイマレジスタ)のアドレ
スを同一空間上に配置し、命令実行時データポインタア
ドレス発生回路を制御してどちらかのアドレスを選択し
、タイマが選ばれたときには1回の間接アドレス指定モ
ード時の命令実行時に1回タイマをインクリメントし、
間接アドレスはタイマレジスタの内容となり、それが示
すアドレスの内容が演算対象となる。従って、データポ
インタアドレス発生回路を制御する制御しジスタを設け
、プログラマブルに通常のデータポインタとオートマチ
ックインクリメントデータポインタ(この場合タイマレ
ジスタがデータポインタ)を選択すれば演算内容により
最適な形式を選べることになる。そして、本来のデータ
ポインタのハードウェアは従来の如くバイナリカウンタ
の形式とする必要はなく車なるレジスタでよい、つまり
、ハードウェアを追加することなくデータポインタのオ
ートインクリメント機能を加えることができる。また、
マイクロコンピュータの内部システムの必要性に応じて
柔軟に変更可能となる。
As described above, according to the present invention, the indirect address register (
The addresses of the data pointer) and timer (timer register) are placed in the same space, and when an instruction is executed, the data pointer address generation circuit is controlled to select either address, and when the timer is selected, one indirect address is Increment the timer once when executing an instruction in the specified mode,
The indirect address becomes the contents of the timer register, and the contents of the address indicated by it become the object of the operation. Therefore, by providing a control register to control the data pointer address generation circuit and programmably selecting between a normal data pointer and an automatic increment data pointer (in this case, the timer register is the data pointer), the optimal format can be selected depending on the calculation content. Become. The original hardware of the data pointer need not be in the form of a binary counter as in the past, but may be a register. In other words, the auto-increment function of the data pointer can be added without adding any hardware. Also,
It can be flexibly changed according to the needs of the internal system of the microcomputer.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は第1図の動作説明に供するための線図、第3図及び第
4図は夫々この発明の要部の一例を示す回路構成図であ
る。 (1)はRAM、(2)はRAMアドレスラッチ回路、
(3)はアドレスデコーダ、(4)はタイマ、(5)は
データポインタアドレス発生回路、(6)は命令デコー
ダ、(りは制御レジスタである。 第1図 バス内*  opルアドレス OP−静   t1綬テ
ータ   シ實tu−果スドア      −L。 第3図 P71 −ふ−上一
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a line diagram for explaining the operation of FIG. 1, and FIGS. 3 and 4 each show an example of the main part of the invention. FIG. 3 is a circuit configuration diagram. (1) is RAM, (2) is RAM address latch circuit,
(3) is an address decoder, (4) is a timer, (5) is a data pointer address generation circuit, (6) is an instruction decoder, (and is a control register. Ribbon data Shitu - Fruit - L. Figure 3 P71 - Fu - Upper one

Claims (1)

【特許請求の範囲】[Claims] 間接アドレスレジスタとタイマを内蔵するマイクロコン
ピュータにおいて、上記間接アドレスレジスタとタイマ
のアドレスを同一空間上に配置し、命令が間接指定アド
レモード時で且つ間接指定アドレスが自動的に1個づつ
増加するモード時上記タイマを自動的にインクリメント
する間接アドレスレジスタとして働くようにしたことを
特徴とするマイクロコンピュータ用タイマ装置。
In a microcomputer that has a built-in indirect address register and a timer, a mode in which the addresses of the indirect address register and timer are placed in the same space, the instruction is in the indirect specification address mode, and the indirect specification address is automatically increased by one. A timer device for a microcomputer, characterized in that it functions as an indirect address register that automatically increments the timer.
JP60017127A 1985-01-31 1985-01-31 Timer device for microcomputer Expired - Lifetime JPH07104782B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60017127A JPH07104782B2 (en) 1985-01-31 1985-01-31 Timer device for microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60017127A JPH07104782B2 (en) 1985-01-31 1985-01-31 Timer device for microcomputer

Publications (2)

Publication Number Publication Date
JPS61175821A true JPS61175821A (en) 1986-08-07
JPH07104782B2 JPH07104782B2 (en) 1995-11-13

Family

ID=11935366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60017127A Expired - Lifetime JPH07104782B2 (en) 1985-01-31 1985-01-31 Timer device for microcomputer

Country Status (1)

Country Link
JP (1) JPH07104782B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59178544A (en) * 1983-03-30 1984-10-09 Fujitsu Ltd Memory access circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59178544A (en) * 1983-03-30 1984-10-09 Fujitsu Ltd Memory access circuit

Also Published As

Publication number Publication date
JPH07104782B2 (en) 1995-11-13

Similar Documents

Publication Publication Date Title
US5303354A (en) Data transfer system between registers for microcomputer
US5274792A (en) Information processing apparatus with parallel instruction decoding
JPS61175821A (en) Timer device for microcomputer
JP3593348B2 (en) Integrated circuit
KR910001708B1 (en) Central processing unit
US4747066A (en) Arithmetic unit
US5606709A (en) Register group circuit for data processing system
JP3005402B2 (en) ROM readout switching circuit
EP0416345B1 (en) Instruction decoder for a pipeline processor
US4308590A (en) Method and apparatus for modifying addresses for the memory control of a one-chip microcomputer having an externally expandable memory
JPH0831033B2 (en) Data processing device
JPS6022774B2 (en) Input/output terminal control method
JP2604319Y2 (en) Microcomputer
JP2517154B2 (en) Data processing device
JPS6330658B2 (en)
JP2522063B2 (en) Single-chip micro computer
JPH05303655A (en) Microcomputer
JP2946508B2 (en) Single chip microcomputer
JPH06230958A (en) Processor
JP2000231512A (en) High speed memory copy method and copy circuit
JPH08305564A (en) Microcomputer
JPS62210541A (en) Register selecting system
JP2000132491A (en) Method and system for device control
JPH04372038A (en) Computer system
JPS6320631A (en) Register selecting system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term