JPS63157254A - Single chip microcomputer - Google Patents

Single chip microcomputer

Info

Publication number
JPS63157254A
JPS63157254A JP61304458A JP30445886A JPS63157254A JP S63157254 A JPS63157254 A JP S63157254A JP 61304458 A JP61304458 A JP 61304458A JP 30445886 A JP30445886 A JP 30445886A JP S63157254 A JPS63157254 A JP S63157254A
Authority
JP
Japan
Prior art keywords
ram
power supply
cpu
data
rom
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
JP61304458A
Other languages
Japanese (ja)
Inventor
Satoru Masaki
正木 悟
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61304458A priority Critical patent/JPS63157254A/en
Publication of JPS63157254A publication Critical patent/JPS63157254A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7839Architectures of general purpose stored program computers comprising a single central processing unit with memory
    • G06F15/7842Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)

Abstract

PURPOSE:To protect the storage contents of a RAM when a power supply is cut off by transferring collectively data to an EEPROM from the RAM with stand-by start within the RAM. CONSTITUTION:When the power supply voltage drops, a power supply voltage detecting circuit 31 detects this voltage drop and a stand-by control circuit 30 is started to send a control signal to a nonvolatile RAM 24. Then all storage contents of a RAM 24a storing various data within the RAM 24 are collectively transferred to a rewritable ROM 24b by the control signal. These storage contents are held although the power supply of a computer is completely cut off.

Description

【発明の詳細な説明】[Detailed description of the invention]

〔慨公〕 本発明はマイク 〔Republic〕 The invention is a microphone

【Jコンビl−夕であって、不揮発+I
UItAMを内蔵し、スタンバイ起IF、11で本揮発
竹RA M内のCP Uアクセス’iiJ能なRAMが
ら一:さ換え可能な170Mに一括f−タ転送を11な
うことにより、電源′&断助のRAMの記憶内容を保i
、Gする。 〔Pl業1の利用分野〕 本発明はシングルヂッI・マイク[1:1ンピ1−タに
関し、CPU、ROM、RAMを内蔵するシングルチッ
プ・マイク[1コンピユータに関づる。 シングルチップ・マイク1]:」ンビL−夕は東16回
路1チップ内にC1)Ll、 ROM、RAM、I10
ボート等を全て内蔵している。 (従来の技術〕 従来より、シングルf−ツブ・マイク【】」ンビl−ウ
の中にはコンプリメンタリ−MOS(以1ζrC−MO
8Jという)構成のマイクロコンピュータがある。 C−MO8構成のマイクロコンビコータ夕では、スタン
バイ制御回路を設けることによってマイク11]ンピ:
1−夕の動作が必要ないとき、CPU。 クロック発生器等の動作を停止させて、マイクロコンビ
1−夕の消費電流を通常動作時の数TrLAから数μ八
に減少さ1!でいる。 〔発明が解決しようとする問題点〕 しかるに、従来のシングルチップ・マイクロコンビコー
タでは、電源が完全に遮断した82@には、内+& R
A Mの記憶内容が消失してしまう4゜十記′tP1源
遮断In O) RA M記憶内容を保護しようとした
場合、マイクロコンピュータに不揮発t’1.RAMを
接続することが考えられる。不揮発性RAMとはスタテ
ィックRAMとエレクトリック・イレーザブル・ROM
と有し、両者間でデータの転送が可能なメモリである。 しかし、上記の構成をとっても不揮発性RAM内のスフ
シーイックRAMからエレクトリック・イレーザブル・
ROMへのデータ転送には略10g+sccを要し、ま
た上記データ転送の制御はマイク[1]ンピコークのC
PUで行なわれなければならない。 電源宙ハの低下を検出した後CP tJでデータ転送制
御信号を生成するにはある程度の時間を要し、これによ
って不揮発t’lRAM内のデータ転送を開始すると、
このデータ転送が終rするtrnに−hlI≦!電1F
がOVまで低下してしまい、スタティック17ΔMの記
憶内容を保護できないおそれがあるとい・)問題点があ
った。 本発明は、士2の魚に鑑みて/rされたものであり、電
源遮断113のRA Mの記憶内′ηを保護するシング
ルチップ・マイクロコンビ−L−夕を提供することを[
1的とする。 〔問題点を解決するための手段〕 本発明のシングルチップ・マイクロコンピュータは、C
F)LJ(21)でアクビスiii能なRAM(24a
)とRAM(24a)に対応した書き換え可能なROM
(24b)とで一括Y−タ転送を行なう不揮Rf’lR
AM(2’l)を有し、スタンバイ制御回路(30)の
起動によりCPU(21)でアク廿ス可1走なRAM 
(24a)の記憶データを古さ換え可能なROM(24
b)に一括して転送する。 (作用) 本発明においては、雷源電■が低下したとき、その検出
信号によってスタンバイ制御回路(30)が起動される
と、不揮発t’lRAM(24)を構成しCPU(21
)から7クレスされて各種データを記憶しているRAM
(24a)の全記憶内容が同じく不揮発性RAMを構成
する。惠:き換え可能イヱROM(24b)に一括して
転送され、マイクロコンピュータの′、fi源が完全に
遮断されてら筺持される。 〔実施例〕 第1図は本発明のシングルチップ・マイクロ」ンピ、1
−りのブロック系統図を示ず1゜同図中、マイクロコン
ピュータ20はC−MO8構成で、゛ト導体1デツプに
構成されている。。 マイクロコンピュータ20内のCPU21はパスライン
22を介してROM23.不揮発11R△M24.11
0ボー1〜25夫々と)g続されている。 C1)jJ21はり「1ツク発1°器26よりクロック
信号をOt給されて動作を行ない、r< OM 23に
出納されCいるブ【1グラムを順次読み出して実行し、
その実行の際に不揮発性RAM24にγ−タの古さ込み
及び読み出しをtjない、また1、10ボート25を介
しく入出力端子27よりデータの入出力を行イjう。 上記の不揮5et’lRAM24はスタティックRAM
(以下1’ S r< A M Jという)24aとエ
レクトリック・イレーザブル・プロゲラ゛ンブル1≧O
M(以下1−E2PRO〜1」という)24bとにり構
成されでいる。SRAM271aとE211ROM24
bとは人々の記憶領域が1対1にり・l応しており、両
と間のデータ転送は−・括して行/、1われる。1ただ
しSRAM24aからE2PROM24bへのデータの
書き込みは略10IIISeCを要し、E2PROM2
4bからSRAM24aへのデータの書き込みは数10
0μsecである。また、不f’!fe竹RAM2/I
内でCPU21が直接アクセス可能であるのはSRAM
24arあり、E2 PROM24bは古き換え可能な
退避用の所謂シ1シト−ROMである。 スタンバイ制御回路30はCPU21よりスタンバイ起
動要求があったとき、又は電源電圧検出回路31が?イ
クロコンピュータ20に供給される電源の電圧低下を検
出した検出信号を供給され゛たとさに起動する。スタン
バイ制御回路30はシーケンリーの一秤であり、クロッ
ク信号よりスタンバイ起動を行なう制御信号を生成して
不揮発性RAM24及びCPU 21 、クロック発生
器26等のマイクロコンビニL−タ全回路夫々に供給す
る。 これによってSRAM24aのデータが一括してE2P
ROM24bに転送されて保持され、CPU 21 、
クロック発生器26雪の全回路はその動作を−It、’
+ f’? +tする。また、スタンバイを一ドによっ
てはり1゛1ツク光牛器26は動作を4続する場合らあ
る。 また、スタンバイ制御回路30は、スタンバイ動作中に
、喘r32よりスタンバイ解除要求があったときスタン
バイ解除を?−iなう制υl仁″I〕を(1成して不揮
発f1. RA M 24及びC「)1ノ21.り[1
ツクR’1−Z26等の全回路人々に供給する。 これに」、つUCP(J21.クロック発!)、 ’l
: 26秀の全回路はその動作を再開し、E’PROM
24bのデータが一括してSRAM24aに転送されて
CPU21によるアクセスが可能となる。。 ここで、マイクロコンピュータ20のdil+ f’中
にその電源電圧が′:jI2図(Δ)に示す如く変化し
たとき、電源型圧検出回′tA31は同図(B)に承り
如き検出<ig号をスタンバイ制υU回路30に供給づ
る。このため、スタンバイυ1011回路30は同図(
C)に示す制御信号を不揮発+!I RA M 24に
供給し、不揮発性RAM24内C第2図(D)に示す如
く、SRAM24aのデータが1三2PROM24bに
転送される。また、CPU21は同図(E)に示す如く
上記制御1n号の立上がり時より佇止(ホールト)状態
となり、電源電1rがOVとなるとノ1作fJ+状態と
なる。 また、雷源電Ltが所定(flVccとなった後、端子
32より第2図(1:)に示す如きスタンバイ解除信号
が入来するど、E2PROM24bのデータがSRAM
24aに転送され、かツCPU 21は作動を開始り−
る。 この、にうに、CPU21C不揮発竹RAMのデータ転
送υ!御仁号を生成するのではなく、スタンバイ制御回
路30で直接不揮発性RAM24のデータ転送制御4w
 n e 44成するので、電源が遮断されるまでにS
RAM24aの全記憶内容をE2PROM24bに転送
することが可能であり、SRAM24aの記憶内容を完
全に筺aできる。 また、C−M OS構成のシングルチップ・マイクロコ
ンピュータに従来より内蔵されているスタンバイ制御回
路30を利用しており、本願発明でG、L実質的にE2
PROM24bが増すだけで済み、回路構成が筒中であ
る。 <g Jj、電源電圧検出回路31はシングルチップ・
−2イクロコンビl−夕20の外部に接続してム11<
、lit!実施例に限定されない。 (ブを明の効果) 1述の如く、木5を明のシングルチップ・マイク「]コ
ンピー1−タにJ:れば、f′H力中ニ’I’ll d
!:+ fJ’シnしてム、RAMの記憶内容が消失す
ることがなく、記憶内容を保訛することができ、その回
路構成が曲中で実用」極めてh川である。 4、図面の1n甲な、j2明 第1図G、1本発明のシングルチップ・マイク[1,]
ンビュータの一実/ll!ll!/Iのブロック系統図
、第2図は第1図示の?イク[1コンビl−タの動作説
明用タイミングブ11−1・−C・ある、1第11fi
に、tjいで、 21はCP U、 24 LL不揮介杓R八へ1. 2・18はS I<ΔM、 24 b$iE2 PROM、 26はり「179発1本、 304、L スタ> ハ4 ai’l ’6n [”l
 路、31は゛市源雷J1検出回路である。 代P11人 片1131 j  月 ?f′i  ロ 
−千 第1図示の4イクロコンビーータの動作説明用タイミン
グチャート第2図
[J combination l- evening, non-volatile + I
It has a built-in UItAM, and the standby IF, 11, allows CPU access in the volatile RAM. Preserves the memory contents of Dansuke's RAM
, G. [Field of Application of PL Industry 1] The present invention relates to a single-chip microphone [1:1 amplifier], and relates to a single-chip microphone [1] having a built-in CPU, ROM, and RAM. Single-chip microphone 1]: "Nbi L-Y is East 16 circuit 1 chip contains C1) Ll, ROM, RAM, I10
All boats etc. are included. (Prior art) Conventionally, single f-tub microphones []'' have been equipped with complementary MOS (referred to as 1ζrC-MO).
There is a microcomputer with a configuration called 8J). In a micro combination coater with a C-MO8 configuration, a standby control circuit is provided to control the microphone 11 input:
1-CPU when no further operation is required. By stopping the operation of the clock generator, etc., the current consumption of the microcombination unit 1 is reduced from several TrLA during normal operation to several μ8! I'm here. [Problems to be solved by the invention] However, in the conventional single-chip microcombicoater, when the power supply is completely cut off, the internal + & R
4゜゜  tP1 source cut-off In O) When trying to protect the RAM memory contents, the microcomputer will have a non-volatile t'1. It is conceivable to connect RAM. What is non-volatile RAM? Static RAM and Electrically Erasable ROM
It is a memory that can transfer data between the two. However, even with the above configuration, electrically erasable
Approximately 10g+scc is required to transfer the data to the ROM, and the control of the data transfer is controlled by the microphone [1] microphone C.
Must be done in the PU. After detecting a drop in the power supply voltage, it takes a certain amount of time to generate a data transfer control signal in CP tJ, and when data transfer in the non-volatile t'lRAM is started by this,
At trn where this data transfer ends -hlI≦! Electric 1F
There was a problem in that there was a risk that the static 17ΔM memory contents could not be protected because the static 17ΔM would drop to OV. The present invention has been developed in view of the above problems, and it is an object of the present invention to provide a single-chip microcombi-L-2 that protects the memory of RAM 113 when the power is cut off.
1 target. [Means for Solving the Problems] The single-chip microcomputer of the present invention uses C
F) LJ (21) with Akbis III function RAM (24a)
) and RAM (24a) compatible rewritable ROM
Non-volatile Rf'lR that performs batch Y-data transfer with (24b)
A single-run RAM that has an AM (2'l) and can be accessed by the CPU (21) by activation of the standby control circuit (30).
(24a) ROM (24a) whose storage data can be updated
b) Transfer them all at once. (Function) In the present invention, when the lightning source voltage drops and the standby control circuit (30) is activated by the detection signal, the non-volatile RAM (24) is configured and the CPU (21) is activated.
) is a RAM that stores various data.
The entire storage contents of (24a) also constitute a non-volatile RAM. The data is transferred all at once to the replaceable ROM (24b), and held after the microcomputer's FI source is completely shut off. [Example] Figure 1 shows a single-chip micro-amplifier of the present invention, 1
1. In the figure, the microcomputer 20 has a C-MO8 configuration and is configured with one conductor deep. . The CPU 21 in the microcomputer 20 connects to the ROM 23 . Nonvolatile 11R△M24.11
0 baud 1 to 25 respectively)g are continued. C1) The jJ21 beam is operated by receiving a clock signal from the clock generator 26, and reads and executes one gram sequentially when r< OM 23.
At the time of execution, the γ-data is stored in the nonvolatile RAM 24 and read out, and data is input and output from the input/output terminal 27 via the 1 and 10 ports 25. The above non-volatile RAM 24 is static RAM.
(hereinafter referred to as 1' S r < A M J) 24a and Electric Erasable Progemarble 1≧O
M (hereinafter referred to as "1-E2PRO~1") 24b. SRAM271a and E211ROM24
There is a one-to-one correspondence between people's storage areas and data transfer between the two is done collectively as a row/,1. 1 However, writing data from SRAM24a to E2PROM24b requires approximately 10IIISeC, and E2PROM2
Writing data from 4b to SRAM24a is as follows:
It is 0 μsec. Also, f'! fe Bamboo RAM2/I
The SRAM that can be directly accessed by the CPU 21
There are 24ar, and the E2 PROM 24b is a so-called single-site ROM for saving and replacing with the old one. The standby control circuit 30 is activated when there is a standby activation request from the CPU 21 or when the power supply voltage detection circuit 31 is activated. The microcomputer 20 is activated when it receives a detection signal that detects a voltage drop in the power supply. The standby control circuit 30 is a sequencer, and generates a control signal for starting standby from a clock signal and supplies it to all circuits of the microconvenience store including the nonvolatile RAM 24, the CPU 21, the clock generator 26, and the like. This allows data in SRAM24a to be transferred to E2P all at once.
It is transferred to the ROM 24b and held, and the CPU 21,
The entire circuit of the clock generator 26 controls its operation -It,'
+f'? +t. Furthermore, depending on the standby mode, the light output device 26 may operate four times in a row. Also, the standby control circuit 30 cancels standby when there is a request for canceling standby from the controller 32 during standby operation. -i now control υl jin"I]
Supply all circuits such as R'1-Z26. To this'', tsu UCP (J21.Clock!), 'l
: All circuits of 26 Hide resume their operation and E'PROM
24b is collectively transferred to the SRAM 24a, allowing the CPU 21 to access it. . Here, when the power supply voltage of the microcomputer 20 changes during dil+f' as shown in Figure 12 (Δ), the power supply type pressure detection circuit 'tA31 detects <ig voltage as shown in Figure (B). is supplied to the standby control υU circuit 30. Therefore, the standby υ1011 circuit 30 is
The control signal shown in C) is non-volatile! As shown in FIG. 2(D), the data in the SRAM 24a in the nonvolatile RAM 24 is transferred to the IRAM 24b. Further, as shown in FIG. 2(E), the CPU 21 enters a halt state from the rise of the control signal 1n, and when the power supply voltage 1r becomes OV, the CPU 21 enters the fJ+ state. Further, after the lightning source voltage Lt reaches a predetermined level (flVcc), a standby release signal as shown in FIG.
24a, and the CPU 21 starts operating.
Ru. Now, data transfer of CPU21C non-volatile bamboo RAM! Rather than generating a goningo, the standby control circuit 30 directly controls data transfer of the nonvolatile RAM 24 4w.
n e 44, so the S
It is possible to transfer all the storage contents of the RAM 24a to the E2PROM 24b, and it is possible to completely access the storage contents of the SRAM 24a. In addition, the standby control circuit 30 conventionally built into a single-chip microcomputer with a C-MOS configuration is used, and the present invention effectively controls G, L and E2.
Only the PROM 24b needs to be added, and the circuit configuration is already in place. <g Jj, the power supply voltage detection circuit 31 is a single chip
-2 Microcombi L-Y20 connected to the outside of M11<
, lit! It is not limited to the examples. (Effect of bright light) As mentioned in 1, if wood 5 is connected to bright single-chip microphone ``] computer 1-, then f'H power d'I'll d
! :+ fJ' The memory contents of the RAM do not disappear, the memory contents can be preserved, and the circuit configuration is very useful during the song. 4. Figure 1A of the drawings, j2, Figure 1G, 1. Single-chip microphone of the present invention [1,]
Kazumi Nbuta/ll! ll! The block system diagram of /I, Figure 2 is the one shown in Figure 1? Iku [1 Timing block for explaining the operation of combinator 11-1・-C・1 11th fi
In tj, 21 is CPU, 24 LL non-volatile transfer R8 1. 2.18 is S I<ΔM, 24 b$iE2 PROM, 26 beam "179 shot 1, 304, L star> Ha4 ai'l '6n ["l
31 is the Ichigen Lightning J1 detection circuit. 11 people per day 1131 j month? f′i b
- Timing chart for explaining the operation of the 4-microcombeater shown in Figure 1, Figure 2.

Claims (1)

【特許請求の範囲】 少なくともCPU(21)、ROM(23)、RAMを
内蔵しており、これらの各回路(21、23)の消費電
流を低減して動作を停止させるスタンバイ制御回路(3
0)を有するコンプリメンタリーMOS構成のシングル
チップ・マイクロコンピュータにおいて、 該SPU(21)でアクセス可能なRAM (24a)と該RAM(24a)に対応した書き換え可
能なROM(24b)とで一括データ転送を行なう不揮
発性RAM(24)を有し、 該スタンバイ制御回路(30)の起動により該CPU(
21)でアクセス可能なRAM(24a)の記憶データ
を該書き換え可能なROM(24b)に一括して転送す
る構成としたことを特徴とするシングルチップ・マイク
ロコンピュータ。
[Claims] A standby control circuit (3) which includes at least a CPU (21), a ROM (23), and a RAM, and which reduces the current consumption of each of these circuits (21, 23) to stop their operation.
In a single-chip microcomputer with a complementary MOS configuration having 0), batch data is transferred between a RAM (24a) that can be accessed by the SPU (21) and a rewritable ROM (24b) that corresponds to the RAM (24a). It has a non-volatile RAM (24) that performs
21) A single-chip microcomputer characterized in that the data stored in the RAM (24a) accessible in 21) is transferred all at once to the rewritable ROM (24b).
JP61304458A 1986-12-20 1986-12-20 Single chip microcomputer Pending JPS63157254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61304458A JPS63157254A (en) 1986-12-20 1986-12-20 Single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61304458A JPS63157254A (en) 1986-12-20 1986-12-20 Single chip microcomputer

Publications (1)

Publication Number Publication Date
JPS63157254A true JPS63157254A (en) 1988-06-30

Family

ID=17933258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61304458A Pending JPS63157254A (en) 1986-12-20 1986-12-20 Single chip microcomputer

Country Status (1)

Country Link
JP (1) JPS63157254A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02299044A (en) * 1989-05-12 1990-12-11 Hitachi Koki Co Ltd Control method for rewritable nonvolatile memory
JPH03174616A (en) * 1989-12-01 1991-07-29 Matsushita Electric Ind Co Ltd Microcomputer
US7152177B2 (en) 2001-02-13 2006-12-19 Fujitsu Limited Microcomputer and computer system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6014362A (en) * 1983-07-04 1985-01-24 Toshiba Corp Semiconductor memory

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6014362A (en) * 1983-07-04 1985-01-24 Toshiba Corp Semiconductor memory

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02299044A (en) * 1989-05-12 1990-12-11 Hitachi Koki Co Ltd Control method for rewritable nonvolatile memory
JPH03174616A (en) * 1989-12-01 1991-07-29 Matsushita Electric Ind Co Ltd Microcomputer
US7152177B2 (en) 2001-02-13 2006-12-19 Fujitsu Limited Microcomputer and computer system

Similar Documents

Publication Publication Date Title
EP0018404B1 (en) Memory system for programmable controller
JPS63157254A (en) Single chip microcomputer
JP2891063B2 (en) Control device
JPH0333926A (en) Microcomputer
KR20020001460A (en) Storage apparatus of computer
JPH0496122A (en) Information processor
JPH01175001A (en) Protection system for storage data
JPS599768A (en) Initializing device of data processor
JPH04105110A (en) Power controller
JPS5628593A (en) System automatic restart system
JP2000267864A (en) Microcomputer
JPH05159079A (en) Semiconductor integrated circuit device
JPS62251833A (en) Computer system
JPS6385913A (en) Automatic power source control system
JPH10133719A (en) Programmable controller
JPH04218807A (en) Programmable controller
JPH09311790A (en) Data processor and exchanger
JPH03276230A (en) Data control method for starting equipment with built-in cpu
JPH03241444A (en) Data holding system
JPS60215259A (en) Memory control circuit
JPH0341849B2 (en)
JPH05189001A (en) Controller
JPH03104093A (en) Power source supplying controller for electrically erasable / programable nonvolatile memory
JPS63111501A (en) Controller
JPS63263510A (en) Microprocessor system