JPS59132219A - Oscillating circuit - Google Patents

Oscillating circuit

Info

Publication number
JPS59132219A
JPS59132219A JP58006936A JP693683A JPS59132219A JP S59132219 A JPS59132219 A JP S59132219A JP 58006936 A JP58006936 A JP 58006936A JP 693683 A JP693683 A JP 693683A JP S59132219 A JPS59132219 A JP S59132219A
Authority
JP
Japan
Prior art keywords
program counter
output
frequency
data
duty
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
JP58006936A
Other languages
Japanese (ja)
Inventor
Masanori Yasuda
安田 正憲
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
NEC Corp
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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP58006936A priority Critical patent/JPS59132219A/en
Publication of JPS59132219A publication Critical patent/JPS59132219A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K3/00Circuits for generating electric pulses; Monostable, bistable or multistable circuits
    • H03K3/01Details
    • H03K3/017Adjustment of width or dutycycle of pulses

Abstract

PURPOSE:To set externally the frequency and duty by setting the frequency to the 1st program counter and setting the duty to the 2nd program counter. CONSTITUTION:An output O1 of a program counter 4 is connected to a set signal input terminal S of an FF8, an output O2 of a program counter 5 is connected to a reset signal input terminal R of the FF8 and an output OUT2(Q') of the FF8 is taken as the reset signal input terminal R of the program counter 5, then a value being a variable data N is set to a frequency set buffer 2 and a variable data M is set to a duty setting buffer 3. Further, when the oscillating frequency of a reference signal oscillator 1 is taken as fO, an output of the program counter 4 becomes a frequency of fO/N and the FF8 is set in the frequency interval of fO/N.

Description

【発明の詳細な説明】 本発明はマイクロコンピュータ等の制御によるディジタ
ル回路で構成された周波数及びデユーティを可変とする
発振回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an oscillation circuit that is constructed of a digital circuit controlled by a microcomputer or the like and whose frequency and duty are variable.

従来の発振回路は主にC@R回路で構成されたアナログ
方式である。
Conventional oscillation circuits are of an analog type mainly composed of C@R circuits.

従来の発振回路は、 C−R回路で構成されているが周
波数を可変とする場合主にRを可変とすることで行なつ
ているが、デユーティの可変はなかなかできず、C−R
を多段構成にし、デユーティの設定分C−R回路を備え
ておく必要があり、大がかりで高価なものになってしま
う。
Conventional oscillation circuits are composed of C-R circuits, and when changing the frequency, this is mainly done by making R variable, but it is difficult to change the duty, so C-R
It is necessary to have a multi-stage configuration and to provide C-R circuits for each duty setting, which results in a large-scale and expensive device.

本発明の目的は、周波数及びデユーティの設定を外部よ
り行うことを可能とし、又、マイクロコンピュータ等の
制御のもとて高精度な動作を行い、簡単な回路構成によ
り経済的な発振回路を提供することにある。
An object of the present invention is to provide an economical oscillation circuit that allows frequency and duty settings to be made externally, operates with high precision under the control of a microcomputer, etc., and has a simple circuit configuration. It's about doing.

本発明の発振回路は、第一のデータをラッチするバッフ
ァと、その出力をデータ設定入力とするプログラムカウ
ンタと、第二のデータをラッチするバッファと、その出
力をデータ設定入力とする第二のプログラムカウンタと
、前記第一および第二のプログラムカウンタの出力をそ
れぞれセット入力およびリセット入力とし、二出力の一
方を前記第二のプログラムカウンタへの起動信号として
与え、前記二出力のうちの一つを出力信号とするフリッ
プフロップと、前記第−及び第二のプログラムカウンタ
にクロック信号を供給する基準信号発振器と、前記第−
及び第二のバッファにデータを書き込む為の制御信号を
与える手段と、前記第一および第二のバッファのどちら
にデータを書き込むかを選択する選択回路とを有し、前
記第一のプログラムカウンタに周波数を設定し、前記第
二のプログラムカウンタにデユーティを設定することを
特徴とする。
The oscillation circuit of the present invention includes a buffer that latches first data, a program counter that uses its output as data setting input, a buffer that latches second data, and a second buffer that uses its output as data setting input. a program counter; the outputs of the first and second program counters are used as a set input and a reset input, respectively; one of the two outputs is given as a start signal to the second program counter; a reference signal oscillator for supplying a clock signal to the first and second program counters;
and means for applying a control signal for writing data to the second buffer, and a selection circuit for selecting which of the first and second buffers to write data to, the first program counter The present invention is characterized in that a frequency is set and a duty is set for the second program counter.

第1図の構成において、2を周波数設定用バッファ、3
をデユーティ設定用バッファとしてプログラムカウンタ
4の出力01をフリップフロップ80セツト信号入力端
子Sに接続し、又、プログラムカウンタ5の出力0.を
フリップフロップ8のリセット信号入力端子Rに接続し
、フリップフロップ8の出力0UT2(Q)をプログラ
ムカウンタ5のリセット信号人力Rとした場合周波数設
定用バッファ2に可変値データNなる値を設定し、デユ
ーティ設定用バッファ3に可変値データMなる値を設定
したとき、基準信号発振器1の発振周波数をfoとする
と、プログラムカウンタ4の出力はfo/Nなる周波数
となり、フリップフロップ8をfo/’Hの周波数間隔
でセットすることになる。この時フリップフロップ8は
プログラムカウンタ4よりハイレベル(以下、“H’ 
)のパルスが印加された時に出力0UTIは@H″とな
り0UT2はロウレベル(以下′L”)となる。プログ
ラムカウンタ5は0UT2が′L”の時に能動状態とな
るものとすると”/fo/M後にフリップフロップ8に
対しでH#なるパルスを出力することになる。フリップ
フロップ8はこの信号によりリセットされ出力0UTI
をIt L nに出力0UT2を“H”に反転させ、プ
ログラムカウンタ5はフリップフロップ8の0UT2が
H#に転じた九めにカウントを停止する。プログラムカ
ウンタ4は以後カウントを続け、前のセット信号発生時
よJ)1/fo/N後に新たなセット信号を発生させる
In the configuration shown in Figure 1, 2 is a frequency setting buffer, 3
The output 01 of the program counter 4 is connected to the set signal input terminal S of the flip-flop 80, and the output 0. of the program counter 5 is used as a duty setting buffer. is connected to the reset signal input terminal R of the flip-flop 8, and when the output 0UT2 (Q) of the flip-flop 8 is used as the reset signal R of the program counter 5, a value of variable value data N is set in the frequency setting buffer 2. , when variable value data M is set in the duty setting buffer 3, and the oscillation frequency of the reference signal oscillator 1 is fo, the output of the program counter 4 becomes a frequency of fo/N, and the flip-flop 8 becomes fo/'. It will be set at frequency intervals of H. At this time, the flip-flop 8 is at a higher level than the program counter 4 (hereinafter referred to as "H").
) is applied, the output 0UTI becomes @H'' and 0UT2 becomes low level (hereinafter referred to as 'L'). Assuming that the program counter 5 becomes active when 0UT2 is 'L', it will output a pulse of H# to the flip-flop 8 after '/fo/M'. Flip-flop 8 is reset by this signal and outputs 0UTI.
It inverts the output 0UT2 to "H" at It L n, and the program counter 5 stops counting at the ninth time when 0UT2 of the flip-flop 8 changes to H#. The program counter 4 continues counting and generates a new set signal 1/fo/N after the previous set signal was generated.

したがって、出力0UTI端子からは周波数fo/N。Therefore, the frequency fo/N is output from the output 0UTI terminal.

デユーティM/Nなるパルスが発生することになる。又
、出力0UT2からは周波数fO/N 、デー−ティ(
M−N)/Nなるパルスが麩生する。
A pulse with duty M/N will be generated. Also, from the output 0UT2, the frequency fO/N and the data (
A pulse of MN)/N is generated.

本発明によれば、発振回路をディジタル化し、マイクロ
コンビーータ等の制御により周波数及びデユーティを可
変としたことにより、各種の装置に安価な組込み型可変
発振器として利用可能となる。
According to the present invention, by digitizing the oscillation circuit and making the frequency and duty variable by controlling a microconbeater or the like, it can be used as an inexpensive built-in variable oscillator in various devices.

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

第1図は本発明の実施例を示す構成図、第2図a −e
は第1図の動作を示す波形図である。 1・・・・・・基準信号発振器、2・・・・・・バッフ
ァ、3・・・・・・バッファ、4・・・・・・プログラ
ムカウンタ、5・・・・・・プログラムカウンタ、6・
・・・・・データ信号線群、7・・・・・・データ信号
線群、8・・・・・・フリップフロップ、9・・・・・
・データバス、10・・・・・・アドレスバス、11・
・・・・・選択回路、12・・・・・・制御線。 第、1 目 第2 図
Fig. 1 is a configuration diagram showing an embodiment of the present invention, Fig. 2 a - e
2 is a waveform chart showing the operation of FIG. 1. FIG. 1... Reference signal oscillator, 2... Buffer, 3... Buffer, 4... Program counter, 5... Program counter, 6・
...Data signal line group, 7...Data signal line group, 8...Flip-flop, 9...
・Data bus, 10...Address bus, 11・
...Selection circuit, 12...Control line. Part 1, Figure 2

Claims (1)

【特許請求の範囲】[Claims] 第一のデータをラッチするバッファと、その出力をデー
タ設定入力とするプログラムカウンタと、第二のデータ
をラッチするバッファと、その出方ヲテータ設定入力と
する第二のプログラムカウンタと、前記第一および第二
のプログラムカウンタの出力をそれぞれセット入力およ
びリセット入力とし、二出力の一方を前記第二のプログ
ラムカウンタべの起動信号として与え、前記二出力のう
ちの一つを出力信号とするフリップフロップと、前記第
−及び第二のプログラムカウンタにクロック信号を供給
する基準信号発振器と、前記第−及び第二のバッファに
データを書き込む制御信号を与える手段と、前記第一お
よび第二のバッファのどちらにデータを書き込むかを選
択する選択回路とを有し、前記第一のプログラムカウン
タに周波数を設定し、前記第二のプログラムカウンタに
デユーティを設定することを特徴とする発振回路。
a buffer that latches first data; a program counter that uses its output as a data setting input; a buffer that latches second data; a second program counter that uses its output as a setting input; and a flip-flop in which the output of the second program counter is used as a set input and a reset input, respectively, one of the two outputs is given as a start signal to the second program counter, and one of the two outputs is used as an output signal. a reference signal oscillator for providing a clock signal to the first and second program counters; means for providing a control signal for writing data to the first and second buffers; An oscillation circuit comprising: a selection circuit for selecting which one to write data to, and setting a frequency to the first program counter and a duty to the second program counter.
JP58006936A 1983-01-19 1983-01-19 Oscillating circuit Pending JPS59132219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58006936A JPS59132219A (en) 1983-01-19 1983-01-19 Oscillating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58006936A JPS59132219A (en) 1983-01-19 1983-01-19 Oscillating circuit

Publications (1)

Publication Number Publication Date
JPS59132219A true JPS59132219A (en) 1984-07-30

Family

ID=11652134

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58006936A Pending JPS59132219A (en) 1983-01-19 1983-01-19 Oscillating circuit

Country Status (1)

Country Link
JP (1) JPS59132219A (en)

Similar Documents

Publication Publication Date Title
JPS59132219A (en) Oscillating circuit
JPS6312424B2 (en)
JPS60263523A (en) Microprocessor
JPH0633716Y2 (en) Frequency variable device
JPH0546355Y2 (en)
JPH0385012A (en) Pulse generating circuit
JPH0548432A (en) 1/3 frequency divider circuit
JPS6359017A (en) Pulse generating circuit
JP3051937B2 (en) Variable counting pulse signal generator
JPH05259895A (en) Frequency divider of odd number frequency division ratio
JPH0691425B2 (en) Frequency divider using D-type flip-flop
JP2616230B2 (en) Asynchronous counter circuit
JPH049336B2 (en)
JP3382329B2 (en) Odd counter circuit
JPS60162303A (en) Sine wave generating circuit
JPS6228823A (en) Signal switching circuit
JPS60102690U (en) Radiation measuring instrument noise prevention circuit
JPS6012875B2 (en) digital phase shifter
JPH0555883A (en) Timer circuit
JPH0677228B2 (en) Clock signal generation circuit
JPH0191528A (en) High speed prescaler circuit
JPH03106124A (en) Frequency 3-divider circuit
JPH0475690B2 (en)
JPH0653820A (en) Clock frequency dividing circuit
JPS59147197U (en) Reverberation effect device