JPH0475690B2 - - Google Patents

Info

Publication number
JPH0475690B2
JPH0475690B2 JP58045319A JP4531983A JPH0475690B2 JP H0475690 B2 JPH0475690 B2 JP H0475690B2 JP 58045319 A JP58045319 A JP 58045319A JP 4531983 A JP4531983 A JP 4531983A JP H0475690 B2 JPH0475690 B2 JP H0475690B2
Authority
JP
Japan
Prior art keywords
register
shift
repetition period
adder
contents
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
Application number
JP58045319A
Other languages
Japanese (ja)
Other versions
JPS59172827A (en
Inventor
Hiromitsu Yagi
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP58045319A priority Critical patent/JPS59172827A/en
Publication of JPS59172827A publication Critical patent/JPS59172827A/en
Publication of JPH0475690B2 publication Critical patent/JPH0475690B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/64Generators producing trains of pulses, i.e. finite sequences of pulses
    • H03K3/72Generators producing trains of pulses, i.e. finite sequences of pulses with means for varying repetition rate of trains

Landscapes

  • Manipulation Of Pulses (AREA)

Description

【発明の詳細な説明】 技術分野 本発明は半導体回路に関し、より詳細には、
CPUにより制御されるデイジタル回路に於いて
周波数を連続的に変化させる場合に適用され得る
掃引発振回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to semiconductor circuits, and more particularly, to semiconductor circuits.
This invention relates to a sweep oscillation circuit that can be applied to continuously change the frequency in a digital circuit controlled by a CPU.

従来技術 CPUにより制御されるデイジタル回路に於い
て、周波数が連続的に変化する様な信号を得る場
合、プログラマブルタイマー/カウンタ用ICを
使用してソフトウエア(プログラム)により一定
時間毎に周波数の切換を行なうという方法がある
が、この方法ではCPU及びソフトウエアに対す
る負担が大きくなつてしまうという問題があつ
た。
Prior Art When obtaining a signal whose frequency changes continuously in a digital circuit controlled by a CPU, a programmable timer/counter IC is used to switch the frequency at fixed intervals by software (program). There is a method to do this, but this method has the problem of increasing the burden on the CPU and software.

目 的 本発明は、CPU及びソフトウエアに負担をか
けることなく、ハードウエアによつて所望の掃引
発振を行なうことを目的とする。
Purpose The present invention aims to perform desired sweep oscillation using hardware without placing a burden on the CPU and software.

構 成 本発明の構成について、以下、具体的な実施例
に基づいて説明する。第1図は本発明の回路構成
を示すブロツク図であり、CPUを有し複数レジ
スタにプログラマブルに所定のデータを設定する
ことが可能な半導体回路に於ける、掃引発振回路
を示している。CPUからの掃引発振に関するデ
ータは、データバス11により4個のレジスタ1
〜4まで送出され、書込信号12により各レジス
タ1〜4に書込まれる。第1レジスタ1の出力信
号はシフトレジスタ5の入力及び加算器6の一方
の入力に接続される。加算器6のもう一方の入力
にはシフトレジスタ5の出力信号が接続されてい
る。シフトレジスタ5は、シフト回数制御部2′
により第2レジスタ2に設定された回数分シフト
される。又、加算器6は符号制御部3′により、
第3レジスタに設定された内容に応じて加算か減
算かを制御される。タイマー8は第4レジスタ4
に設定された時間毎に切換信号を発生し、この切
換信号のタイミングで加算器6は加算(減算)を
実行する。加算器6の出力信号はカウンタ7の入
力に接続されており、カウンタ7は不図示の基準
発振器からのクロツク信号9をカウントして加算
器6の出力値と等しくなつたら出力信号10とし
てパルスを1個発生する。
Configuration The configuration of the present invention will be described below based on specific examples. FIG. 1 is a block diagram showing the circuit configuration of the present invention, showing a sweep oscillation circuit in a semiconductor circuit having a CPU and capable of programmably setting predetermined data in a plurality of registers. Data related to sweep oscillation from the CPU is transferred to four registers 1 via data bus 11.
-4 are sent out and written to each register 1-4 by write signal 12. The output signal of the first register 1 is connected to an input of a shift register 5 and one input of an adder 6. The output signal of the shift register 5 is connected to the other input of the adder 6. The shift register 5 includes a shift number control section 2'
is shifted by the number of times set in the second register 2. Further, the adder 6 is controlled by the sign control section 3'.
Addition or subtraction is controlled depending on the contents set in the third register. Timer 8 is the fourth register 4
A switching signal is generated every set time, and the adder 6 executes addition (subtraction) at the timing of this switching signal. The output signal of the adder 6 is connected to the input of a counter 7, and the counter 7 counts the clock signal 9 from a reference oscillator (not shown) and outputs a pulse as the output signal 10 when the clock signal 9 becomes equal to the output value of the adder 6. One occurs.

次に第1図のブロツク図及び第2図のタイミン
グチヤート図を参考に動作の説明を行なう。ま
ず、CPUによつて第1〜第4レジスタに、パル
スの繰返し周期の初期値Ta0、シフト数n、変化
の向き+又は−、タイマー値Tbが設定される。
タイマー8がTbのタイマーとして動作を開始す
る。同時にシフトレジスタ5が第2レジスタ2に
設定された回数nだけシフトされ、その結果2n
による除算が行なわれる。尚、シフトレジスタ5
はこの段階ではオールゼロに初期化されているも
のとし、従つてシフト後もオールゼロのままであ
る。Tb時間後にタイマー8から切換信号がでる
と、加算器6によつて第1レジスタ1の内容Ta0
とシフトレジスタ5の内容オールゼロが加算され
る。この加算の際、第3レジスタ3に設定された
符号が正ならば加算を行ない、負ならば減算を行
なうようにする。本例では正符号とする。しかし
この段階ではシフトレジスタ5はオールゼロであ
るから、結局加算器6の出力値は繰返し周期の初
期値Ta0となる。次に、カウンタ7は加算器6の
出力値Ta0になるまでクロツク信号9の個数をカ
ウントしてから出力信号10として1パルスを発
生する。その後カウンタ7は、クロツク信号9を
加算器6の出力値Ta0と等しくなるまでカウント
して1パルスを発生するという動作を連続して実
行する。即ち、出力信号10として、繰返し周期
Ta0のパルス列が発生することになる。一方、第
1レジスタ1とシフトレジスタ5には、加算器6
の出力値Ta0が新たにロードされ、シフトレジス
タ5はn回分シフトされる。即ち、出力信号10
として繰返し周期Ta0のパルス列が発生している
間に、第1レジスタ1の内容はTa0、シフトレジ
スタ5の内容はTa0/2nに更新される。その後タ
イマー8からTb時間経過後に切換信号が発生す
ると、加算器6は、第1レジスタ1の内容Ta0
シフトレジスタの内容Ta0/2nを加算して、出力
値Ta1=Ta0+Ta0/2nを出力する。その結果カ
ウンタ7はクロツク信号9を加算器6の更新され
た出力値Ta1=Ta0+Ta0/2nまでカウントして
1パルス発生する様になる。即ち、出力信号10
として繰返し周期Ta0のパルス列をTb時間に亘
つて発生した後、繰返し周期をTa1=Ta0
Ta0/2nに更新してパルス列を発生する。ここで
再び、第1レジスタ1とシフトレジスタ5には加
算器6の出力値Ta1が新たにロードされ、シフト
レジスタ5はn回シフトされてTa1/2nとなる。
Next, the operation will be explained with reference to the block diagram of FIG. 1 and the timing chart of FIG. 2. First, the initial value Ta 0 of the pulse repetition period, the number of shifts n, the direction of change + or -, and the timer value Tb are set in the first to fourth registers by the CPU.
Timer 8 starts operating as a timer for Tb. At the same time, the shift register 5 is shifted by the number n set in the second register 2, resulting in 2 n
Division is performed. In addition, shift register 5
is initialized to all zeros at this stage, and therefore remains all zeros even after the shift. When a switching signal is output from the timer 8 after time Tb, the adder 6 changes the contents of the first register 1 to Ta 0
and the contents of shift register 5, all zeros, are added. During this addition, if the sign set in the third register 3 is positive, addition is performed, and if it is negative, subtraction is performed. In this example, it is a positive sign. However, at this stage, the shift register 5 is all zero, so the output value of the adder 6 ends up being the initial value Ta 0 of the repetition period. Next, the counter 7 counts the number of clock signals 9 until the output value Ta 0 of the adder 6 is reached, and then generates one pulse as the output signal 10. Thereafter, the counter 7 continuously counts the clock signal 9 until it becomes equal to the output value Ta0 of the adder 6 and generates one pulse. That is, as the output signal 10, the repetition period
A pulse train of Ta 0 will be generated. On the other hand, an adder 6 is provided in the first register 1 and shift register 5.
The output value Ta 0 of is newly loaded, and the shift register 5 is shifted n times. That is, the output signal 10
While a pulse train with a repetition period Ta 0 is being generated, the contents of the first register 1 are updated to Ta 0 and the contents of the shift register 5 are updated to Ta 0 /2 n . Thereafter, when a switching signal is generated from the timer 8 after a period of Tb has elapsed, the adder 6 adds the content Ta 0 of the first register 1 and the content Ta 0 /2 n of the shift register to obtain an output value Ta 1 =Ta 0 +Ta Outputs 0/2 n . As a result, the counter 7 counts the clock signal 9 up to the updated output value Ta 1 =Ta 0 +Ta 0 / 2n of the adder 6 and generates one pulse. That is, the output signal 10
After generating a pulse train with a repetition period Ta 0 for Tb time, the repetition period is Ta 1 = Ta 0 +
Update Ta 0 /2 n and generate a pulse train. Here, the output value Ta 1 of the adder 6 is newly loaded into the first register 1 and the shift register 5, and the shift register 5 is shifted n times to become Ta 1 /2 n .

ところで、タイマー8はTb時間毎に切換信号
を発生するから、第1レジスタ1とシフトレジス
タ5の内容は次々に更新され加算される。その結
果第2図の出力波形図に示すように出力信号10
のパルス繰返し周期はTb時間毎に変化し、 Ta0=Ta0 Ta1=Ta0+Ta0/2n Ta2=Ta1+Ta1/2n 〓 Tam=Tan-1+Tan-1/2n となり、周波数が次々に変化して行く掃引発振が
得られる。本例では周波数は次第に低くなるが、
第3レジスタ3に負符号を設定することにより、
周波数を次第に高くすることも可能である。
By the way, since the timer 8 generates a switching signal every Tb time, the contents of the first register 1 and the shift register 5 are updated and added one after another. As a result, as shown in the output waveform diagram of Fig. 2, the output signal 10
The pulse repetition period of changes every Tb time, Ta 0 = Ta 0 Ta 1 = Ta 0 + Ta 0 /2 n Ta 2 = Ta 1 + Ta 1 /2 n 〓 Tam = Tan -1 + Ta n-1 /2 n , and a sweep oscillation in which the frequency changes one after another is obtained. In this example, the frequency gradually decreases,
By setting a negative sign in the third register 3,
It is also possible to gradually increase the frequency.

効 果 本発明により、周波数の初期値、周波数変化量
及び変化の方向に相当するデータをレジスタに設
定するだけで、所望の掃引発振がハードウエアに
よつて実行されるようになり、掃引発振の際の
CPU及びソフトウエアにかかる負担を殆どなく
することができる。
Effects According to the present invention, by simply setting data corresponding to the initial value of the frequency, the amount of frequency change, and the direction of change in the register, the desired sweep oscillation can be executed by hardware. When
The burden on the CPU and software can be almost eliminated.

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

第1図は本発明の回路の構成を示すブロツク
図、第2図は第1図に於ける出力信号10の波形
図である。 符号の説明、1……第1レジスタ、2……第2
レジスタ、3……第4レジスタ、4……第4レジ
スタ、5……シフトレジスタ、6……加算器、7
……カウンタ、8……タイマー、9……クロツク
信号、10……出力信号。
FIG. 1 is a block diagram showing the configuration of the circuit of the present invention, and FIG. 2 is a waveform diagram of the output signal 10 in FIG. 1. Explanation of symbols, 1...First register, 2...Second
Register, 3... Fourth register, 4... Fourth register, 5... Shift register, 6... Adder, 7
... Counter, 8 ... Timer, 9 ... Clock signal, 10 ... Output signal.

Claims (1)

【特許請求の範囲】 1 周期的矩形パルス列の繰返し周期を基準発振
器からのクロツク信号数として設定する第1レジ
スタと、 繰返し周期の変化量を前記第1レジスタのシフ
トによる除算により決定する為のシフト回数を設
定する第2レジスタと、 繰返し周期の変化の正負を決定する符号を設定
する第3レジスタと、 一定の繰返し周期により連続してパルス列を発
生し続ける時間を設定する第4レジスタと、 前記第1レジスタの内容を第2レジスタに設定
された回数分だけシフトする為のシフトレジスタ
と、 前記第1レジスタと前記シフトレジスタの内容
を前記第3レジスタに設定された符号に従つて加
算する為の加算器と、 前記加算器の内容に従つて前記基準発信器から
のクロツク信号パルス数をカウントしてパルス列
を発生する為のカウンタと、 前記第4レジスタに設定された時間毎に切換信
号を発生するタイマー とからなることを特徴とする掃引発振回路。
[Scope of Claims] 1. A first register for setting the repetition period of the periodic rectangular pulse train as the number of clock signals from the reference oscillator, and a shift for determining the amount of change in the repetition period by division by the shift of the first register. a second register that sets the number of times; a third register that sets a sign that determines whether the change in repetition period is positive or negative; and a fourth register that sets the time for which the pulse train continues to be generated in a constant repetition period; a shift register for shifting the contents of the first register by the number of times set in the second register; and a shift register for adding the contents of the first register and the shift register according to the sign set in the third register. a counter for counting the number of clock signal pulses from the reference oscillator according to the contents of the adder to generate a pulse train; and generating a switching signal at every time set in the fourth register. A sweep oscillation circuit comprising a timer that generates a signal.
JP58045319A 1983-03-19 1983-03-19 Sweep oscillating circuit Granted JPS59172827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58045319A JPS59172827A (en) 1983-03-19 1983-03-19 Sweep oscillating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58045319A JPS59172827A (en) 1983-03-19 1983-03-19 Sweep oscillating circuit

Publications (2)

Publication Number Publication Date
JPS59172827A JPS59172827A (en) 1984-09-29
JPH0475690B2 true JPH0475690B2 (en) 1992-12-01

Family

ID=12715980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58045319A Granted JPS59172827A (en) 1983-03-19 1983-03-19 Sweep oscillating circuit

Country Status (1)

Country Link
JP (1) JPS59172827A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004153813A (en) * 2002-10-09 2004-05-27 Fuji Electric Fa Components & Systems Co Ltd Pulse generating apparatus, pulse generating method, control program, and storage medium

Also Published As

Publication number Publication date
JPS59172827A (en) 1984-09-29

Similar Documents

Publication Publication Date Title
US5592659A (en) Timing signal generator
JPS61157022A (en) Frequency multiplier
JP3523362B2 (en) Clock circuit and processor using the same
JPH0475690B2 (en)
JPH1198007A (en) Frequency divider
JPS6356565B2 (en)
JPS6312424B2 (en)
JPH01136203A (en) Digital primary holding circuit
JP2590838B2 (en) Pulse oscillation circuit
JPH0332115Y2 (en)
JP3011047B2 (en) Phase comparison circuit
KR100213584B1 (en) Frequency multiplying circuit and method for pulse signal train
RU2044403C1 (en) Phase synchronization unit
JPH07226674A (en) Digital oscillation circuit
JPS6053976B2 (en) frequency shift modulator
JPH0770996B2 (en) Method and apparatus for converting a write clock with a gear to a read clock without a gear.
JPH0723758Y2 (en) Zero-zero switch mechanism
JP2668531B2 (en) Digital hysteresis circuit
JPS588612B2 (en) digital phase comparator
JPH06152347A (en) Multi-phase clock generating circuit
JPS5815323A (en) Phase shifting circuit
JPH0691425B2 (en) Frequency divider using D-type flip-flop
JPH05275931A (en) Variable frequency oscillating circuit
JPH06204857A (en) Oscillation circuit
JPS6398213A (en) Power-on reset circuit