JPH0671208B2 - 1-chip microcomputer - Google Patents

1-chip microcomputer

Info

Publication number
JPH0671208B2
JPH0671208B2 JP1161779A JP16177989A JPH0671208B2 JP H0671208 B2 JPH0671208 B2 JP H0671208B2 JP 1161779 A JP1161779 A JP 1161779A JP 16177989 A JP16177989 A JP 16177989A JP H0671208 B2 JPH0671208 B2 JP H0671208B2
Authority
JP
Japan
Prior art keywords
signal
circuit
oscillation
rectangular wave
outputs
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 - Fee Related
Application number
JP1161779A
Other languages
Japanese (ja)
Other versions
JPH0327624A (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.)
Rohm Co Ltd
Original Assignee
Rohm 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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP1161779A priority Critical patent/JPH0671208B2/en
Publication of JPH0327624A publication Critical patent/JPH0327624A/en
Publication of JPH0671208B2 publication Critical patent/JPH0671208B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • Transmitters (AREA)

Description

【発明の詳細な説明】 (a)産業上の利用分野 この発明はリモートコントロール送信機などに用いられ
る1チップマイクロコンピュータに関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a one-chip microcomputer used in a remote control transmitter or the like.

(b)従来の技術 従来、例えば赤外線を用いたリモートコントロール装置
において、送信機は、押しボタンスイッチなどの操作に
応じて、特定のキャリア周波数で赤外線発光ダイオード
を駆動するとともに、送信すべきコードデータに応じて
出力を断続して赤外線パルス信号列を発生するように構
成されている。
(B) Conventional Technology Conventionally, for example, in a remote control device using infrared rays, a transmitter drives an infrared light emitting diode at a specific carrier frequency according to an operation of a push button switch or the like, and transmits code data to be transmitted. In response, the output is intermittently generated to generate an infrared pulse signal train.

前記キャリア周波数としては、例えば40kHz、37.9kHz,3
6.7kHzなどメーカー毎あるいはセット毎に異なったキャ
リア周波数が採択されている。このように所定周波数の
矩形波信号を扱う制御回路は、例えばリモートコントロ
ール送信機用ICなど専用のICを除いて、一般にマイクロ
コンピュータによって演算および信号処理が行われ、前
記キャリア信号のような所定の矩形波信号はマイクロコ
ンピュータのシステムクロックを整数分周することによ
って作成されている。例えば、40kHzの矩形波信号を用
いる場合にはシステムクロックを480kHzとし、これを1/
12分周することにより発生させ、37.9kHzの矩形波信号
を用いる場合には、システムクロックを455kHzとし、こ
れを1/12分周することによって発生させ、また36.7kHz
の矩形波信号を用いる場合には、システムクロックを44
0kHzとし、これを1/12分周することによって発生させて
いる。
The carrier frequency is, for example, 40 kHz, 37.9 kHz, 3
Different carrier frequencies such as 6.7 kHz are adopted for each manufacturer or each set. In this way, the control circuit that handles a rectangular wave signal of a predetermined frequency is generally operated and signal-processed by a microcomputer, except for a dedicated IC such as an IC for a remote control transmitter, and a predetermined signal such as the carrier signal. The rectangular wave signal is created by dividing the system clock of the microcomputer by an integer. For example, when using a 40 kHz square wave signal, set the system clock to 480 kHz and set this to 1 /
Generated by dividing by 12, and when using a rectangular wave signal of 37.9 kHz, set the system clock to 455 kHz and divide by 1/12 to generate 36.7 kHz.
When using the square wave signal of
It is set to 0kHz and is generated by dividing this by 1/12.

(c)発明が解決しようとする課題 例えば、前述の赤外線リモートコントロール装置におい
て、送信機用1チップマイクロコンピュータは、各セッ
トメーカーが採用している複数のキャリア周波数の何れ
にも対応できるようにすることが重要である。このこと
は同一品種のLSIを大量生産することによってコストダ
ウンする場合、また、同一のリモコン送信機を用いて複
数のセットをコントロールする場合に必要となる。
(C) Problem to be Solved by the Invention For example, in the infrared remote control device described above, the one-chip microcomputer for the transmitter is adapted to be compatible with any of a plurality of carrier frequencies adopted by each set manufacturer. This is very important. This is necessary when the cost is reduced by mass-producing the same type of LSI, and when the same remote control transmitter is used to control a plurality of sets.

ところが、一般に、システムクロック信号を分周するこ
とによって所定周波数の矩形波信号を作成する装置にお
いては、矩形波の周波数はシステムクロック信号の周波
数と分周比によってのみ定まり、周波数が近接してい
て、且つ異なる周波数信号を発生させる、といったこと
はできなかった。すなわち、一つの目的とする周波数を
実現するようなシステムクロックを決定した時点で、他
に実現することのできる周波数が決定してしまうため、
飛び飛びの周波数しか発生させることができなかった。
すなわち、単一のシステムクロックで実現することので
きる2つの矩形波信号の周波数の比は、最も近接させて
もn:n+1(n=1,2,3,・・・)である。
However, generally, in a device that creates a rectangular wave signal of a predetermined frequency by dividing the system clock signal, the frequency of the rectangular wave is determined only by the frequency of the system clock signal and the division ratio, and the frequencies are close to each other. It was not possible to generate different frequency signals. That is, at the time when the system clock that realizes one target frequency is determined, the frequency that can be realized in another is determined.
It was possible to generate only discrete frequencies.
That is, the ratio of the frequencies of the two rectangular wave signals that can be realized by a single system clock is n: n + 1 (n = 1,2,3, ...) Even if they are closest to each other.

たとえば、一般的なリモートコントロール送信機に用い
られるクロック周波数は400〜500kHzであり、キャリア
周波数は30〜40kHzであるので、一例としてクロック周
波数を440kHzとし、これを1/11に分周すると40kHz、1/1
2分周すると36.7kHzが得られるが、例えば37.9kHzなど
の近接した他の周波数のキャリア信号を得ることは出来
なかった。
For example, the clock frequency used for a general remote control transmitter is 400 to 500 kHz, and the carrier frequency is 30 to 40 kHz, so the clock frequency is 440 kHz as an example, and when this is divided into 1/11, 40 kHz, 1/1
Dividing the frequency by 2 gives 36.7kHz, but could not obtain carrier signals of other frequencies close to each other, such as 37.9kHz.

そこで、従来は、例えばシステムクロックの周波数を2M
Hzや4MHzなどの高い周波数にし、このクロック周波数を
基に整数分周して所定周波数のキャリア信号を発生させ
ていた。
Therefore, in the past, for example, the system clock frequency was set to 2M.
A high frequency such as Hz or 4 MHz was generated, and an integer frequency division was performed based on this clock frequency to generate a carrier signal of a predetermined frequency.

しかしながら、このようにシステムクロック周波数を高
くすれば、その周波数に略比例して消費電流も増大する
ため、電池の寿命が短くなり、また、従来通りの寿命を
確保しようとすると、大容量の電池が必要となり、リモ
コン送信機全体が大型化する。さらに、高いクロック周
波数で作動する高価な1チップマイクロコンピュータを
用いなければならず、装置全体がコスト高になるという
問題があった。
However, if the system clock frequency is increased in this way, the current consumption also increases substantially in proportion to the frequency, which shortens the life of the battery, and when trying to secure the conventional life, a large-capacity battery is used. Is required, and the entire remote control transmitter becomes large. Furthermore, an expensive one-chip microcomputer that operates at a high clock frequency must be used, which causes a problem that the cost of the entire device becomes high.

この発明の目的は、システムクロック周波数を特に高く
することなく、周波数の近接する複数種の矩形波信号を
発生させるようにして、前記従来の問題点を解消した、
1チップマイクロコンピュータを提供することにある。
An object of the present invention is to eliminate the above-mentioned conventional problems by generating a plurality of types of rectangular wave signals having frequencies close to each other without increasing the system clock frequency.
It is to provide a one-chip microcomputer.

(d)課題を解決するための手段 この発明の1チップマイクロコンピュータは、発振制御
信号の状態に応じて発振または発振停止を行い、発振状
態でそれぞれ異なる周波数の矩形波信号を発生するとと
もに、そのうち一つの矩形波信号をシステムクロック信
号として出力する複数の発振回路と、 分周比設定信号に応じた分周比で入力信号を分周する分
周回路と、 選択信号に応じて前記複数の発振回路のうち単一の出力
を前記分周回路へ前記入力信号として選択的に供給する
矩形波信号選択回路と、 前記矩形波信号選択回路へ前記選択信号を出力し、前記
分周回路へ前記分周比設定信号を出力し、前記各発振回
路へ前記発振制御信号を出力するラッチ回路と、 外部から入力される信号を検出して、前記システムクロ
ック信号を出力する発振回路に対し発振制御信号を与
え、該発振回路を発振状態にするシステムクロック信号
起動回路と、 CPUの実行するプログラムを予め書き込んだROMと、 前記システムクロック信号に同期して前記ROMの内容を
読み出し、ROMに予め書き込まれている前記プログラム
を実行して、前記選択信号の発生用データと前記分周比
設定信号の発生用データおよび前記発振制御信号の発生
用データを前記ラッチ回路にそれぞれ設定するCPUとを
備えて成る。
(D) Means for Solving the Problem The one-chip microcomputer of the present invention oscillates or stops oscillation in accordance with the state of the oscillation control signal, generates rectangular wave signals of different frequencies in the oscillated state, and A plurality of oscillator circuits that output one rectangular wave signal as a system clock signal, a divider circuit that divides the input signal with a dividing ratio that corresponds to the dividing ratio setting signal, and a plurality of oscillators that respond to the selection signal. A rectangular wave signal selection circuit that selectively supplies a single output of the circuit to the frequency dividing circuit as the input signal, and outputs the selection signal to the rectangular wave signal selection circuit, and outputs the selection signal to the frequency dividing circuit. A latch circuit that outputs a frequency ratio setting signal and outputs the oscillation control signal to each oscillation circuit, and an oscillation that detects a signal input from the outside and outputs the system clock signal. A system clock signal start-up circuit that gives an oscillation control signal to the circuit to bring the oscillation circuit into an oscillating state, a ROM in which a program executed by the CPU is written in advance, and the contents of the ROM are read in synchronization with the system clock signal , The program previously written in the ROM is executed to set the generation data of the selection signal, the generation data of the division ratio setting signal, and the generation data of the oscillation control signal in the latch circuit, respectively. It is equipped with a CPU.

(e)作用 この発明の1チップマイクロコンピュータにおいては、
複数の発振回路は、それぞれ発振制御信号の状態に応じ
て発振または発振停止し、発振状態でそれぞれ異なる周
波数の矩形波信号を発生し、その内の一つをシステムク
ロック信号として出力する。分周回路は分周比設定信号
に応じた分周比で入力信号を分周し、矩形波信号選択回
路は選択信号に応じて複数の発振回路のうちの単一の出
力を分周回路へ選択的に供給する。ラッチ回路は前記矩
形波信号選択回路に対して前記選択信号を出力し、前記
分周回路に対して前記分周比設定信号を出力し、さらに
各発振回路に対して前記発振制御信号を出力する。シス
テムクロック信号起動回路は、外部から入力される信号
を検出して、前記システムクロック信号を出力する発振
回路に対して発振制御信号を与え、該発振回路を発振状
態にする。ROMにはCPUの実行するプログラムが予め書き
込まれていて、CPUは前記システムクロック信号に同期
して前記ROMの内容を読み出し、そのプログラムを実行
して、前記ラッチ回路に対し前記選択信号の発生用デー
タと前記分周比設定信号の発生用データおよび前記発振
制御信号の発生用データをそれぞれ設定する。このよう
に作用するため、前記ラッチ回路に対する前記選択信号
の発生用データまたは前記分周比設定信号の発生用デー
タを変えることによって、単一の周波数から矩形波信号
を発生する場合に比較して、発振回路の発振周波数を高
めることなく、周波数の近接した複数種の矩形波信号が
容易に得られるようになり、しかも実際に用いる矩形波
信号を発生する発振回路のみを発振状態とし、他の発振
回路を発振停止状態にすることができるため、無駄な電
力消費が有効に抑えられる。さらに、前記システムクロ
ック信号を出力する発振回路は、外部から何らかの信号
が入力されたとき、システムクロック信号起動回路の作
用により自動的に発振状態となるため、それまでの外部
から信号が入力されない状態ではシステムクロックが発
生されず、この1チップマイクロコンピュータ全体がス
リープ状態となってその電力消費は極限状態に抑えられ
る。そのため全体の消費電力が低減し、例えば赤外線リ
モートコントロール送信機など電池を電源とする機器に
そのまま容易に適用できる。
(E) Action In the one-chip microcomputer of the present invention,
The plurality of oscillating circuits oscillate or stop oscillating according to the state of the oscillation control signal, generate rectangular wave signals of different frequencies in the oscillating state, and output one of them as a system clock signal. The frequency divider circuit divides the input signal with a frequency division ratio according to the frequency division ratio setting signal, and the rectangular wave signal selection circuit outputs a single output of the plurality of oscillation circuits to the frequency division circuit according to the selection signal. Supply selectively. The latch circuit outputs the selection signal to the rectangular wave signal selection circuit, outputs the division ratio setting signal to the frequency division circuit, and further outputs the oscillation control signal to each oscillation circuit. . The system clock signal starting circuit detects a signal input from the outside, gives an oscillation control signal to an oscillation circuit that outputs the system clock signal, and brings the oscillation circuit into an oscillating state. A program executed by the CPU is previously written in the ROM, and the CPU reads the contents of the ROM in synchronization with the system clock signal and executes the program to generate the selection signal for the latch circuit. Data, data for generating the frequency division ratio setting signal, and data for generating the oscillation control signal are set respectively. Because of this operation, by changing the generation data of the selection signal or the generation data of the division ratio setting signal for the latch circuit, as compared with the case of generating a rectangular wave signal from a single frequency. , It becomes possible to easily obtain a plurality of types of rectangular wave signals having frequencies close to each other without increasing the oscillation frequency of the oscillation circuit, and only the oscillation circuit that generates the actually used rectangular wave signal is in the oscillating state. Since the oscillation circuit can be put into the oscillation stop state, wasteful power consumption can be effectively suppressed. Furthermore, the oscillation circuit that outputs the system clock signal automatically enters an oscillation state by the action of the system clock signal starting circuit when any signal is input from the outside, so that no signal is input from the outside until then. In this case, the system clock is not generated, and the entire one-chip microcomputer enters the sleep state, and its power consumption is suppressed to the limit. Therefore, the overall power consumption is reduced, and the device can be easily applied as it is to a device using a battery as a power source, such as an infrared remote control transmitter.

また、システムクロックは単一の発振回路から供給され
るため、矩形波信号の周波数選択に無関係に一定のシス
テムクロックで作動させることができる。このため、例
えばシステムクロック信号の周波数自体を切り替える場
合のように、切替時に異常なクロック信号(ノイズ)が
生じることがない。
Further, since the system clock is supplied from a single oscillation circuit, it is possible to operate with a constant system clock regardless of frequency selection of the rectangular wave signal. Therefore, unlike the case of switching the frequency itself of the system clock signal, an abnormal clock signal (noise) does not occur at the time of switching.

(f)実施例 この発明の実施例である赤外線リモートコントロール送
信機のブロック図を第1図に示す。
(F) Embodiment FIG. 1 shows a block diagram of an infrared remote control transmitter which is an embodiment of the present invention.

第1図において20は1チップマイクロコンピュータであ
り、その外部にセラミック発振子21,22、キースイッチ2
3および赤外線発光ダイオード25を駆動する駆動回路24
などを接続している。1チップマイクロコンピュータ20
内の構成は以下のとおりである。
In FIG. 1, reference numeral 20 is a one-chip microcomputer, and externally, ceramic oscillators 21, 22 and a key switch 2 are provided.
Driving circuit 24 for driving 3 and infrared light emitting diode 25
Etc. are connected. 1-chip microcomputer 20
The internal structure is as follows.

コンデンサC1,C2はそれぞれ電位固定用のコンデンサ、R
1はダンピング抵抗、R2は帰還抵抗、1は一方の入力端
子aが“H"レベルであるとき反転増幅器として作動する
NANDゲートである。これらの回路と外部に接続されたセ
ラミック発振子21とによって矩形波発振回路を構成す
る。同様にコンデンサC3,C4、抵抗R3,R4、NANDゲート2
およびセラミック発振子22とによって他の矩形波発振回
路を構成している。この2つの発振回路の発振周波数は
主として外部に接続するセラミック発振子21,22の共振
周波数によって定まり、ここではセラミック発振子21お
よび22はそれぞれ455kHzおよび440kHzに共振する。フリ
ップフロップ6は後述するようにキースイッチ23の操作
によりセットされ、内部コントトールラッチ10からの信
号によりリセットされる。ANDゲート3,4およびインバー
タ7は前記2つの発振回路の出力の何れか一方をORゲー
ト5へ出力するゲート回路である。このANDゲート3,4、
インバータ7、ORゲート5および内部コントロールラッ
チ10が本発明に係る矩形波信号選択回路に相当する。分
周回路8はORゲート5の出力信号を設定された分周比で
分周して所定周波数の矩形波信号を出力する回路であ
り、多段フリップフロップによる分周器とプリセットレ
ジスタより構成している。ANDゲート9は分周回路8よ
り出力される矩形波信号を信号cにより断続し、信号出
力端子OUTより出力する。CPU11はROM12に予め書き込ま
れているプログラムを実行して各種演算を行い、また内
部コントロールラッチ10を介して分周回路8に対して分
周比を設定するとともに、制御信号b,c,rを出力する。R
AM13はキー読取やパルス信号列発生時などにワーキング
エリアとして用いる。I/Oポート14はキースイッチ23に
対してキーストローブ信号を発生し、そのリターン信号
を受ける。
Capacitors C1 and C2 are capacitors for fixing the potential and R, respectively.
1 is a damping resistor, R2 is a feedback resistor, 1 is an inverting amplifier when one input terminal a is at "H" level
It is a NAND gate. These circuits and the ceramic oscillator 21 connected to the outside form a rectangular wave oscillation circuit. Similarly, capacitors C3, C4, resistors R3, R4, NAND gate 2
And the ceramic oscillator 22 constitutes another rectangular wave oscillation circuit. The oscillation frequencies of these two oscillation circuits are mainly determined by the resonance frequencies of the ceramic oscillators 21 and 22 connected to the outside, and here the ceramic oscillators 21 and 22 resonate at 455 kHz and 440 kHz, respectively. The flip-flop 6 is set by operating the key switch 23 as described later and reset by a signal from the internal control latch 10. The AND gates 3 and 4 and the inverter 7 are gate circuits that output either one of the outputs of the two oscillation circuits to the OR gate 5. This AND gate 3,4,
The inverter 7, the OR gate 5, and the internal control latch 10 correspond to the rectangular wave signal selection circuit according to the present invention. The frequency dividing circuit 8 is a circuit that divides the output signal of the OR gate 5 by a set frequency dividing ratio and outputs a rectangular wave signal of a predetermined frequency. The frequency dividing circuit 8 is composed of a frequency divider using a multistage flip-flop and a preset register. There is. The AND gate 9 interrupts the rectangular wave signal output from the frequency dividing circuit 8 by the signal c, and outputs it from the signal output terminal OUT. The CPU 11 executes a program previously written in the ROM 12 to perform various calculations, sets a frequency division ratio for the frequency dividing circuit 8 via the internal control latch 10, and outputs control signals b, c, r. Output. R
AM13 is used as a working area when reading a key or generating a pulse signal train. The I / O port 14 generates a key strobe signal to the key switch 23 and receives the return signal.

第1図に示した赤外線リモートコントロール送信器の全
体の動作は次のとおりである。
The overall operation of the infrared remote control transmitter shown in FIG. 1 is as follows.

まず、キースイッチが操作されていない待機状態ではフ
リップフロップ6がリセット状態であり、信号aが“L"
であって、NANDゲート1の出力が常に“H"レベルとな
る。従ってセラミック発振子21を用いた発振回路は発振
動作を停止していて、システムクロックも供給されな
い。また、このとき内部コントロールラッチ10の出力信
号bが“L"レベルの状態に保持されているため、セラミ
ック発振子22を用いた発振回路も発振動作を停止しても
よい。したがってC-MOS回路から構成されている1チッ
プマイクロコンピュータ20には殆ど消費電流が流れな
い。
First, in the standby state where the key switch is not operated, the flip-flop 6 is in the reset state, and the signal a is "L".
Therefore, the output of the NAND gate 1 is always at "H" level. Therefore, the oscillation circuit using the ceramic oscillator 21 stops the oscillation operation, and the system clock is not supplied. At this time, since the output signal b of the internal control latch 10 is held at the "L" level state, the oscillation circuit using the ceramic oscillator 22 may also stop the oscillation operation. Therefore, almost no current flows through the one-chip microcomputer 20 composed of the C-MOS circuit.

この状態で、キースイッチ23が何れかのキーが操作され
たなら、フリップフロップ6が直接セットされ、信号a
が“H"レベルになる。これによりNANDゲート1が反転増
幅器として作用し、セラミック発振子21を用いた発振回
路が発振動作を行い、矩形波信号をシステムクロックと
して供給する。これによりCPU11はROM12に予め書き込ま
れているプログラムを所定番地から実行を開始する。例
えば、先ずI/Oポート14を介してキースイッチ23に対し
キーストローブ信号を発生し、そのリターン信号を読み
込むことによって操作されたキーを特定し、そのキーに
応じた処理を行う。例えばキャリア周波数37.9kHzで発
光ダイオード25を駆動させる場合には、内部コントロー
ルラッチ10の制御信号bを“L"レベルにするとともに、
分周回路8に分周比1/12を設定する。さらに制御信号c
を送信データに基づいて出力する。これにより、セラミ
ック発振子21を用いた発振回路による455kHzの矩形波信
号がANDゲート3およびORゲート5を介して分周回路8
に入力される。分周回路8は、その入力信号を1/12分周
して37.9kHzの矩形波信号をANDゲート9の1入力へ与え
る。また、例えば40kHzのキャリア周波数で発光ダイオ
ードを駆動させる場合には、内部コントロールラッチ10
の制御信号bを“H"レベルにするとともに分周回路8に
分周比1/11を設定する。これによりNANDゲート2が反転
増幅器として作動し、セラミック発振子22を用いた発振
回路が440kHzの矩形波を発生し、これがANDゲート4お
よびORゲート5を介して分周回路8へ供給される。更
に、同様にして例えば36.7kHzのキャリア周波数で発光
ダイオードを駆動させる場合には、制御信号bを“H"レ
ベルにするとともに、分周回路8に分周比1/12を設定す
る。
In this state, if any key of the key switch 23 is operated, the flip-flop 6 is directly set and the signal a
Becomes “H” level. As a result, the NAND gate 1 acts as an inverting amplifier, the oscillation circuit using the ceramic oscillator 21 performs an oscillating operation, and supplies a rectangular wave signal as a system clock. As a result, the CPU 11 starts executing the program previously written in the ROM 12 from a predetermined address. For example, first, a key strobe signal is generated to the key switch 23 via the I / O port 14, the operated key is specified by reading the return signal, and a process corresponding to the key is performed. For example, when driving the light emitting diode 25 at a carrier frequency of 37.9 kHz, the control signal b of the internal control latch 10 is set to "L" level and
The dividing ratio 1/12 is set in the dividing circuit 8. Further control signal c
Is output based on the transmission data. As a result, the rectangular wave signal of 455 kHz generated by the oscillation circuit using the ceramic oscillator 21 is divided by the AND gate 3 and the OR gate 5 into the frequency dividing circuit 8
Entered in. The frequency dividing circuit 8 divides the input signal by 1/12 and supplies a rectangular wave signal of 37.9 kHz to one input of the AND gate 9. For example, when driving a light emitting diode with a carrier frequency of 40 kHz, the internal control latch 10
The control signal b is set to the "H" level and the frequency dividing ratio is set to 1/11 in the frequency dividing circuit 8. As a result, the NAND gate 2 operates as an inverting amplifier, the oscillation circuit using the ceramic oscillator 22 generates a rectangular wave of 440 kHz, and this is supplied to the frequency dividing circuit 8 via the AND gate 4 and the OR gate 5. Further, in the same manner, when the light emitting diode is driven at a carrier frequency of 36.7 kHz, for example, the control signal b is set to the “H” level and the frequency dividing circuit 8 is set to the frequency dividing ratio 1/12.

キー操作が継続して行われている時は、通常、キーの読
込と送信を交互に行い、キー操作が終了するまで繰り返
す。また、許可されていないキー操作を認識した時は送
信せずに、正しいキー操作が行われるか、キー操作が終
了するまで、キーの読込を繰り返す。このようにキーの
読込などを行って送信していない状態では、制御信号b
を“L"レベルにしてセラミック発振子21を用いた発振回
路のみ発振させることによって、回路全体の消費電流を
抑える。
When the key operation is continuously performed, the key reading and the key transmission are normally performed alternately, and the operation is repeated until the key operation is completed. Further, when the unauthorized key operation is recognized, the key reading is repeated without transmitting the key operation until the correct key operation is performed or the key operation is completed. In this manner, when the key is read and the data is not transmitted, the control signal b
Is set to the “L” level and only the oscillation circuit using the ceramic oscillator 21 is oscillated to suppress the current consumption of the entire circuit.

一連の送信が終了すれば、I/Oポート10の制御信号rを
“H"レベルにする。これによりフリップフロップ6がリ
セットされ、セラミック発振子21を用いた発振回路も動
作を停止し、待機状態に戻る。
When a series of transmission is completed, the control signal r of the I / O port 10 is set to "H" level. As a result, the flip-flop 6 is reset, the oscillation circuit using the ceramic oscillator 21 also stops operating, and returns to the standby state.

異常に示した例では2つの発振回路を設けた例であった
が、さらに多くの発振回路を設けることもできる。4つ
の発振回路を選択的に用いる例を第2図に示す。第2図
はその主要部の回路であり、21、31,32および33はそれ
ぞれ発振周波数の異なるセラミック発振子である。セラ
ミック発振子21を用いた発振回路の出力は第1図に示し
た例と同様にシステムクロックとして用いられる。デコ
ーダ42は内部コントロールラッチ43の出力をデコードし
て、信号S0〜S3の何れか一つを“H"レベルにする。NAND
ゲート34,35および36はデコーダ42の出力信号S1,S2およ
びS3が“H"レベルのときそれぞれ反転増幅器として作動
する。従ってセラミック発振子31,32,33とNANDゲート3
4,35,36とその他のコンデンサおよび抵抗からなる発振
回路は、デコーダ42から出力される信号S1,S2,S3により
選択的に作動される。ANDゲート37,38,39および40は、
デコーダ42から出力される信号S0,S1,S2およびS3により
それぞれ前記4つの発振回路の出力を選択的にORゲート
41へ出力する。このようにして異なった周波数の矩形波
信号を分周回路8へ選択的に入力することができる。
In the abnormal example, two oscillator circuits are provided, but more oscillator circuits can be provided. An example of selectively using four oscillator circuits is shown in FIG. FIG. 2 shows the circuit of the main part, and 21, 31, 32 and 33 are ceramic oscillators having different oscillation frequencies. The output of the oscillation circuit using the ceramic oscillator 21 is used as a system clock as in the example shown in FIG. The decoder 42 decodes the output of the internal control latch 43 and sets any one of the signals S0 to S3 to "H" level. NAND
The gates 34, 35 and 36 operate as inverting amplifiers when the output signals S1, S2 and S3 of the decoder 42 are at "H" level. Therefore, the ceramic oscillator 31, 32, 33 and the NAND gate 3
The oscillator circuit composed of 4,35,36 and other capacitors and resistors is selectively operated by the signals S1, S2, S3 output from the decoder 42. AND gates 37, 38, 39 and 40 are
The signals S0, S1, S2, and S3 output from the decoder 42 selectively OR gates the outputs of the four oscillation circuits.
Output to 41. In this way, rectangular wave signals having different frequencies can be selectively input to the frequency dividing circuit 8.

(g)発明の効果 この発明によれば、システムクロック周波数を特に高め
るこなく、近接する周波数で数種類の矩形波を発生させ
ることができる。このため、例えば赤外線リモコン送信
機のコントローラに適用することによって、キャリア周
波数の異なる信号形式にも対応させることができ、しか
も消費電流の少ない小型で安価な装置を構成することが
できるようになる。しかも、システムクロック信号を発
生する発振回路自体を複数組設けるのではないため、シ
ステムクロック信号の切換時に生じる異常なクロック信
号の発生を防止するための特別な回路も必要ではなく、
簡潔な回路で構成することができる。
(G) Effect of the Invention According to the present invention, it is possible to generate several types of rectangular waves at adjacent frequencies without particularly increasing the system clock frequency. Therefore, for example, by applying it to a controller of an infrared remote control transmitter, it is possible to adapt to signal formats with different carrier frequencies, and to configure a small-sized and inexpensive device with low current consumption. Moreover, since a plurality of sets of oscillation circuits themselves for generating the system clock signal are not provided, a special circuit for preventing the generation of an abnormal clock signal that occurs at the time of switching the system clock signal is not necessary.
It can be constructed with a simple circuit.

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

第1図はこの発明の実施例である赤外線リモートコント
ロール送信機のブロック図である。第2図は他の実施例
に係る赤外線リモートコントロール送信機の主要部の回
路図である。
FIG. 1 is a block diagram of an infrared remote control transmitter which is an embodiment of the present invention. FIG. 2 is a circuit diagram of a main part of an infrared remote control transmitter according to another embodiment.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】発振制御信号の状態に応じて発振または発
振停止を行い、発振状態でそれぞれ異なる周波数の矩形
波信号を発生するとともに、そのうち一つの矩形波信号
をシステムクロック信号として出力する複数の発振回路
と、 分周比設定信号に応じた分周比で入力信号を分周する分
周回路と、 選択信号に応じて前記複数の発振回路のうち単一の出力
を前記分周回路へ前記入力信号として選択的に供給する
矩形波信号選択回路と、 前記矩形波信号選択回路へ前記選択信号を出力し、前記
分周回路へ前記分周比設定信号を出力し、前記各発振回
路へ前記発振制御信号を出力するラッチ回路と、 外部から入力される信号を検出して、前記システムクロ
ック信号を出力する発振回路に対し発振制御信号を与
え、該発振回路を発振状態にするシステムクロック信号
起動回路と、 CPUの実行するプログラムを予め書き込んだROMと、 前記システムクロック信号に同期して前記ROMの内容を
読み出し、ROMに予め書き込まれている前記プログラム
を実行して、前記選択信号の発生用データと前記分周比
設定信号の発生用データおよび前記発振制御信号の発生
用データを前記ラッチ回路にそれぞれ設定するCPUとを
備えて成る1チップマイクロコンピュータ。
1. A plurality of devices that oscillate or stop oscillating according to the state of an oscillation control signal, generate rectangular wave signals of different frequencies in the oscillated state, and output one of the rectangular wave signals as a system clock signal. An oscillator circuit, a divider circuit that divides an input signal with a dividing ratio according to a dividing ratio setting signal, and a single output of the plurality of oscillator circuits according to a selection signal to the dividing circuit. A rectangular wave signal selection circuit that selectively supplies as an input signal, outputs the selection signal to the rectangular wave signal selection circuit, outputs the division ratio setting signal to the frequency dividing circuit, and outputs the frequency dividing ratio setting signal to each of the oscillation circuits. A latch circuit that outputs an oscillation control signal and a system that detects an externally input signal and supplies the oscillation control signal to the oscillation circuit that outputs the system clock signal to bring the oscillation circuit into an oscillation state. A clock signal starting circuit, a ROM in which a program to be executed by the CPU is written in advance, the contents of the ROM are read in synchronization with the system clock signal, the program written in the ROM is executed, and the selection signal And a CPU for setting the generation data of the division ratio setting signal and the generation data of the oscillation control signal in the latch circuit, respectively.
JP1161779A 1989-06-23 1989-06-23 1-chip microcomputer Expired - Fee Related JPH0671208B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1161779A JPH0671208B2 (en) 1989-06-23 1989-06-23 1-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1161779A JPH0671208B2 (en) 1989-06-23 1989-06-23 1-chip microcomputer

Publications (2)

Publication Number Publication Date
JPH0327624A JPH0327624A (en) 1991-02-06
JPH0671208B2 true JPH0671208B2 (en) 1994-09-07

Family

ID=15741748

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1161779A Expired - Fee Related JPH0671208B2 (en) 1989-06-23 1989-06-23 1-chip microcomputer

Country Status (1)

Country Link
JP (1) JPH0671208B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05335937A (en) * 1992-05-28 1993-12-17 Mitsubishi Electric Corp Frequency divider circuit
JP4640040B2 (en) * 2005-03-22 2011-03-02 パナソニック電工株式会社 Wireless transmission device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59157354U (en) * 1983-04-05 1984-10-22 日本無線株式会社 Tone generation circuit of selection signal calling device
JPS60210051A (en) * 1984-04-02 1985-10-22 Mitsubishi Electric Corp Fsk modulator

Also Published As

Publication number Publication date
JPH0327624A (en) 1991-02-06

Similar Documents

Publication Publication Date Title
US4864255A (en) Oscillator capable of quickly supplying a stable oscillation signal
GB2329741A (en) Liquid crystal display driver
JPS58205226A (en) Microcomputer incorporating stand-by function
KR960024805A (en) Clock generator
JPH0671208B2 (en) 1-chip microcomputer
US4965535A (en) Multiple speed oscillator
JPS5943766B2 (en) semiconductor integrated circuit
JPH06232703A (en) Oscillator
JPS5943765B2 (en) semiconductor integrated circuit
SU1397737A1 (en) Device for regulating level of sound pressure of electroacoustic converter of electronic time piece
JPH0426221A (en) Oscillation circuit
JPH10210577A (en) Remote control transmitter
JP3346019B2 (en) Transceiver
KR200145481Y1 (en) A flag setting circuit for a microcontroller
KR910002117A (en) Semiconductor integrated circuit device
JPS60105026A (en) Microcomputer
JPH0117054Y2 (en)
KR910008933A (en) Semiconductor devices
JPH0398186A (en) Reader/writer for ic card
JPH0785556B2 (en) Remote control transmitter
JPS6195694A (en) Remote control signal generating device
JPS61195134U (en)
JPH0540183A (en) Real time clock
JPH04105108A (en) Clock generating circuit
JPH06338781A (en) Semiconductor device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees