KR960001887Y1 - Micro-computer - Google Patents

Micro-computer Download PDF

Info

Publication number
KR960001887Y1
KR960001887Y1 KR2019950032380U KR19950032380U KR960001887Y1 KR 960001887 Y1 KR960001887 Y1 KR 960001887Y1 KR 2019950032380 U KR2019950032380 U KR 2019950032380U KR 19950032380 U KR19950032380 U KR 19950032380U KR 960001887 Y1 KR960001887 Y1 KR 960001887Y1
Authority
KR
South Korea
Prior art keywords
voltage
counting
microcomputer
power supply
present
Prior art date
Application number
KR2019950032380U
Other languages
Korean (ko)
Inventor
고이치 나카노
Original Assignee
가부시끼가이샤 도시바
아오이 죠이치
도시바 마이크로 일렉트로닉스 가부시기가이샤
다카다이 마사다카
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
Priority claimed from JP2219935A external-priority patent/JPH0831001B2/en
Application filed by 가부시끼가이샤 도시바, 아오이 죠이치, 도시바 마이크로 일렉트로닉스 가부시기가이샤, 다카다이 마사다카 filed Critical 가부시끼가이샤 도시바
Application granted granted Critical
Publication of KR960001887Y1 publication Critical patent/KR960001887Y1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/28Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

내용 없음.No content.

Description

마이크로 컴퓨터Micro computer

제1도는 본 고안의 일 실시예의 구성도1 is a block diagram of an embodiment of the present invention

제2도는 동 구성의 일부 특성도2 is a partial characteristic diagram of the configuration.

제3도는 동 구성의 작용을 나타내는 플로우챠트3 is a flowchart showing the operation of the configuration.

제4도는 종래예의 회로도4 is a circuit diagram of a conventional example

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

1 : 마이크로 컴퓨터 7 : 클록 발생부1: microcomputer 7: clock generator

8 : 수정 발진부 9 : 타이머/카운터8: crystal oscillator 9: timer / counter

10 : 입출력 포트 11 : 연산회로10: input / output port 11: operation circuit

12 : 누산기 13 : 데이타 RAM12 Accumulator 13: Data RAM

14 : 레지스터 15 : 표시 회로14: register 15: display circuit

16 : 프로그램 카운터 17 : 프로그램 ROM16: program counter 17: program ROM

18 : 명령 디코더18: command decoder

본 고안은 전압 검출 회로를 구비한 마이크로 컴퓨터에 관한 것으로서, 통상적으로 전지로 동작하는 마이컴, 전자식 탁상 계산기, 전자 수첩 등에 사용된다.BACKGROUND OF THE INVENTION The present invention relates to a microcomputer having a voltage detection circuit, and is generally used for a battery operated microcomputer, an electronic desk calculator, an electronic notebook, and the like.

종래의 마이크로 컴퓨터의 전압 검출 부분을 제4도에 나타낸다. 제4도에 도시한 IC의 마이크로 컴퓨터(1)의 전압 검출 부분에는 외부에서 전원 전압 E와 저항(2) 및 제너 다이오드(3)에 의하여 분할된 기준 전압 V1이 공급되도록 되어 있다. 또 전원 전압 E는 저항(4) 및 저항(5)의 저항값에 의하여 분할되고, 피검출 전압V2로서 전압 비교 회로(6)에 공급된다. 전압 비교 회로(6)는 기준 전압 V1과 피검출 전압 V2를 비교하여 그 결과를 걸출 신호 F로서 출력한다.4 shows a voltage detection portion of a conventional microcomputer. The voltage detection portion of the microcomputer 1 of the IC shown in FIG. 4 is supplied with the power supply voltage E and the reference voltage V1 divided by the resistor 2 and the zener diode 3 from the outside. The power supply voltage E is divided by the resistance values of the resistors 4 and 5, and is supplied to the voltage comparison circuit 6 as the detected voltage V2. The voltage comparison circuit 6 compares the reference voltage V1 with the detected voltage V2 and outputs the result as the outstanding signal F. FIG.

제4도의 결점은 다음과 같다.The drawback of FIG. 4 is as follows.

(가) 비교의 기준이 되는 검출 전압 V2를 만드는 회로 소자(2, 3등)를 외부에 설치할 필요가 있다.(A) It is necessary to provide outside the circuit elements (2, 3, etc.) which make the detection voltage V2 as a reference for comparison.

(나) 기준 전압을 입력하기 위한 단자(T1∼T3)가 필요하다.(B) Terminals T1 to T3 for inputting a reference voltage are required.

(다) 기준 전압 V1과 피검출 전압 V2를 비교하는 전압 비교회로(6)가 필요하다.(C) A voltage comparison circuit 6 for comparing the reference voltage V1 with the detected voltage V2 is required.

(라) 검출하는 전압이 단지 하나 (F뿐)이다.(D) There is only one voltage (F) to be detected.

본 고안의 목적은 클록의 펄스 수를 계수함으로써 상기 문제점을 제거한 전압 검출 회로를 구비한 마이크로컴퓨터를 제공하는데 있다.It is an object of the present invention to provide a microcomputer having a voltage detection circuit which eliminates the above problem by counting the number of pulses of a clock.

본 고안에 따른 마이크로 컴퓨터는 피측정 전압에 따라 발진을 행하는 클록 발생 수단과, 상기 클록 발생수단의 클록수에 따른 값을 설정 시간 계수하는 계수수단과, 상기 계수수단의 계수값과 기준값을 비교하는 비교수단과, 상기 비교수단에서의 비교 결과로부터 상기 피측정 전압을 얻는 수단을 구비한다.The microcomputer according to the present invention comprises a clock generating means for oscillating according to a voltage to be measured, counting means for counting a time value according to the number of clocks of the clock generating means, and comparing a count value and a reference value of the counting means. And means for obtaining the voltage under measurement from a comparison result in the comparison means.

또한 본 고안에 있어서, 상기 피측정 전압은 상기 마이크로 컴퓨터의 전원 전압이다.In the present invention, the voltage under measurement is a power supply voltage of the microcomputer.

또한 본 고안에 있어서, 상기 설정 시간은 상기 마이크로 컴퓨터의 수정 발진 신호의 계수에 의해서 얻는다.Further, in the present invention, the set time is obtained by counting the crystal oscillation signal of the microcomputer.

즉, 본 고안은 마이크로 컴퓨터의 전압 검출 기능의 개량이다. 예컨대 수정 발진을 분주하여 일정한 주기를 만든다. 그주기에 있어서의 피측정 전압에 대응한 수의 클록의 펄스 수를 계수한다. 그 계수값과 기준값을 비교검출한다. 그 비교 결과에 해당하는 피측정 전압값이 준비되어 있고, 전압 측정을 할 수 있다. 이와 같은 개량된 전압 검출 회로를 사용함으로써 외부 부품이 삭감되고, 전압 검출용의 입력 단자도 필요없게 된다.That is, the present invention is an improvement of the voltage detection function of the microcomputer. For example, crystal oscillations are dispensed to create a constant cycle. The number of pulses of the clock corresponding to the voltage under measurement in the period is counted. The coefficient value and the reference value are compared and detected. The measured voltage value corresponding to the comparison result is prepared, and the voltage can be measured. By using such an improved voltage detection circuit, external components are reduced, and an input terminal for voltage detection is also unnecessary.

이하, 도면을 참조하면서 본 고안의 실시예를 설명한다. 제1도는 본 고안의 일실시예의 IC의 마이크로 컴퓨터의 블록 구성도이다. 도면중 마이크로 컴퓨터(1)는 CR 발진에 의한 클록 발생부(7) 및 수정 발진부(8)의 2개의 발진기, 수정 발진을 입력으로 하는 타이머/카운터(9), 입출력을 행하는 입출력 포트(10), 연산을 행하는 연산 회로(11), 연산 결과를 기억하는 누산기(12), 수치를 기억하는 데이타 RAM(13), 데이타 RAM의 어드레스를 지정하는 레지스터(14), 데이타 RAM의 내용을 표시하는 표시 회로(15)를 구비하고, 프로그램 카운터(16)에 의해 지정되는 프로그램 ROM(17)의 명령이 명령 디코더(18)에 의하여 해독되어 각 명령을 실행한다.Hereinafter, embodiments of the present invention will be described with reference to the drawings. 1 is a block diagram of a microcomputer of an IC of an embodiment of the present invention. In the figure, the microcomputer 1 includes two oscillators of a clock generator 7 and a crystal oscillator 8 by CR oscillation, a timer / counter 9 which inputs a crystal oscillation, and an input / output port 10 that performs input / output. , An arithmetic circuit 11 for performing arithmetic, an accumulator 12 for storing arithmetic results, a data RAM 13 for storing numerical values, a register 14 for specifying an address of the data RAM, a display for displaying the contents of the data RAM The circuit 15 is provided, and the instructions of the program ROM 17 designated by the program counter 16 are decoded by the instruction decoder 18 to execute each instruction.

전원 전압 E에 대한 2개의 발진기(7, 8)의 발진 주파수에는 제2도와 같은 특성도로 나타낸 관계가 있고, 전원 전압 E에 대응해서 CR발진 주파수 특성 A가 변화하는데 대하여 수정 발진 주파수 특성 B는 불변이다. 본 고안에서는 이것을 이용하고 있다.The oscillation frequencies of the two oscillators 7 and 8 with respect to the power supply voltage E have a relation shown in the characteristic diagram as shown in FIG. 2, and the crystal oscillation frequency characteristic B is invariant while the CR oscillation frequency characteristic A changes in response to the power supply voltage E. to be. This invention uses this.

상기 마이크로 컴퓨터(1)는 그 시스템 클록 발생부(7)의 클록을 기준으로 하여 명령을 실행하는 것이며, 전원 전압 E에 대응하여 명령의 실행 속도가 변화한다. 즉 어느 일정(설정) 시간의 명령 실행수가 변화하므로 이것을 일정(설정) 시간 계수하여 기준 계수와 비교함으로써 대응하는 전원 전압 E를 구할 수 있다.The microcomputer 1 executes a command on the basis of the clock of the system clock generator 7, and the execution speed of the command changes in response to the power supply voltage E. FIG. That is, since the number of instruction executions in a certain (set) time is changed, the corresponding power supply voltage E can be obtained by counting the fixed (set) time and comparing it with the reference coefficient.

이 계수 및 계수값을 비교할 때의 동작을 제3도와 함께 설명한다. 먼저 스텝 SO에서 계수 모드를 입력하고, 데이타 RAM(13)의 클리어(스텝 S1)를 행하고, 타이머(9)의 세트(스텝S2)를 행하여 초기 설정한다. 다음에 데이타 RAM(13)의 카운트업(스텝S3), 타이머(9)의 체크(스텝S4)를 행하고, 타이머(9)의 설정 시간이 도달될 때까지 스텝 S3과 S4의 루프를 반복하여 그 반복시마다 연산 회로(11)에서 「+1」의 연산을 행하며, 데이타 RAM(13)의 수치 R을 카운트업한다. 타이머(9)의 설정 시간이 도달하면(이것은 타이머(9)가 수정 발진기(8)의 출력을 계수함으로써 알수있다). 스텝 S5로 이동하는데 카운트업한 데이타 RAM(13)의 수치 R은 그때의 전원 전압 E에 대응해 있고(그때의 전원 전압을 En(단, n,=1, 2…,n중의 어느 것)으로 한다.), 전원 전압 En에 대응하는 카운트 수치 Cn과 비교함으로써 구하고자 하는 전원 전압 En을 얻는다. 또한 상기 RAM(13)에 저장된 카운트치 R은 스텝 S3, S4의 루프가 몇회 돌았느냐에 대응하고, RAM(13)에 저장된 카운트치에 대응한다.The operation when comparing this coefficient and the coefficient value will be described with FIG. First, the counting mode is input at step SO, the data RAM 13 is cleared (step S1), and the timer 9 is set (step S2) to be initially set. Next, the data RAM 13 is counted up (step S3) and the timer 9 is checked (step S4), and the loops of steps S3 and S4 are repeated until the set time of the timer 9 is reached. At each iteration, the calculation circuit 11 calculates " + 1 " to count up the numerical value R of the data RAM 13. When the set time of the timer 9 reaches (this can be seen by the timer 9 counting the output of the crystal oscillator 8). The numerical value R of the data RAM 13 counted up to move to step S5 corresponds to the power supply voltage E at that time (the power supply voltage at that time is En (where n, = 1, 2, ..., n)). The power supply voltage En to be obtained is obtained by comparing with the count value Cn corresponding to the power supply voltage En. The count value R stored in the RAM 13 corresponds to how many times the loops of steps S3 and S4 have run, and corresponds to the count value stored in the RAM 13.

Cn(n=1, 2…,n 중의 어느 것)은 기준치이고, 예컨대 프로그램 ROM(17)에 격납되어 있다. E1∼En은 각각 C1∼Cn에 대응하는 전압치이고, 이들은 적절한 장소에서 꺼낼 수 있도록 격납헤 두면 된다. 스텝 S5∼S8의 비교는 예컨대 연산 회로(11)로 행할 수 있다. 스텝 S9 「RET」 는 리턴 명령으르 전원 전압 E의 계수 프로그램이 끝났음을 나타낸다.Cn (any one of n = 1, 2 ..., n) is a reference value, and is stored in the program ROM 17, for example. E1-En are voltage values corresponding to C1-Cn, respectively, and these may be stored so that they may be taken out at an appropriate place. The comparison of steps S5 to S8 can be performed by the calculation circuit 11, for example. Step S9 "RET" indicates that the counting program of the power supply voltage E is completed by the return instruction.

상기 실시예에 의하면 다음의 이점이 얻어진다.According to this embodiment, the following advantages are obtained.

(1) 외부 부품 갯수(예컨대, 제4도의 2, 3)가 감소되므로 본 고안의 마이크로 컴퓨터를 조합한 제품의 비용절감을 도모할 수 있다. 또한 제품의 소형화 및 조립 공정의 간략화에도 적합하다.(1) Since the number of external components (for example, 2 and 3 in FIG. 4) is reduced, cost reduction of the product in which the microcomputer of the present invention is combined can be achieved. It is also suitable for the miniaturization of products and the simplification of the assembly process.

(2) 기준 전압의 입력 단자(T2)가 필요없기 때문에 핀수가 감소되고 소형화를 도모할 수 있다.(2) Since the input terminal T2 of the reference voltage is not necessary, the number of pins can be reduced and miniaturization can be achieved.

(3) 전압 비교 회로(6)가 필요없기 때문에 소자수가 감소되고, 칩 사이즈의 축소 및 고신뢰성을 기대할 수 있다.(3) Since the voltage comparison circuit 6 is not required, the number of elements can be reduced, and the reduction in chip size and high reliability can be expected.

(4) 종래예에서는 검출하는 전압이 단일하나, 본 고안에서는 복수의 전압치인 E1∼En의 검출이 용이하게 얻어진다.(4) In the conventional example, the voltage to be detected is single, but in the present invention, the detection of a plurality of voltage values E1 to En is easily obtained.

지금까지 본 고안을 양호한 실시예로서 설명하였지만 본 고안은 상기 실시예에 의해 한정되는 것이 아니고 후기되는 실용 신안 등록청구의 범위에 의해 정의되는 것으로 한다. 또한, 본원의 실용 신안 등록 청구범위의 각 구성요건에 병기한 도면의 참조 부호는 본 원 고안의 이해를 용이하게 하기 위한 것으로, 본원 고안의 기술적 범위를 도면에 도시한 실시예에 한정하는 의도로 병기한 것은 아니다.Although the present invention has been described as a preferred embodiment, the present invention is not limited to the above embodiment, but is defined by the scope of the utility model registration claims to be described later. In addition, the reference numerals in the drawings in parallel with each component requirement of the utility model registration claims of the present application to facilitate the understanding of the subject innovation, intended to limit the technical scope of the subject innovation to the embodiment shown in the drawings. It is not a weapon.

이상 설명한 바와 같이 본 고안에 의하면 외부 부품수의 삭감 및 IC 외부 도출 단자 등의 삭감이 가능하고, 종래의 전압 비교 회로가 필요없게 되므로서 제품의 소형화 및 칩 사이즈의 축소화를 행할 수 있는 등으로 인하여 비용절감도 가능하며, 복수의 피측정 전압치도 얻을 수 있는 등의 이점을 갖는 마이크로 컴퓨터를 얻을 수 있다.As described above, according to the present invention, it is possible to reduce the number of external components, reduce the number of IC external lead terminals, etc., and to reduce the size of the product and reduce the size of the chip by eliminating the need for a conventional voltage comparison circuit. It is possible to obtain a microcomputer having advantages such as cost reduction and a plurality of measured voltage values.

Claims (3)

피측정 전압에 따라 발진을 행하는 클록 발생 수단(7)과 ;Clock generation means (7) for oscillating in accordance with the voltage to be measured; 상기 클록 발생 수단의 클록수에 따른 값을 설정 시간 계수하는 계수 수단(8, 9, 11)과 ;Counting means (8, 9, 11) for counting a set time counting a value according to the number of clocks of said clock generating means; 상기 계수 수단의 계수값과 기준값을 비교하는 비교수단(11)과;Comparison means (11) for comparing the count value of the counting means with a reference value; 상기 비교 수단에서의 비교 결과로부터 상기 피측정 전압을 얻는 수단을 구비하는 것을 특징으로 하는 마이크로 컴퓨터.And a means for obtaining the voltage under measurement from a comparison result in the comparison means. 제1항에 있어서,The method of claim 1, 상기 피측정 전압은 마이크로 컴퓨터의 전원 전압인 것을 특징으로 하는 마이크로 컴퓨터.And said voltage to be measured is a power supply voltage of a microcomputer. 제1항에 있어서,The method of claim 1, 상기 설정 시간을 수정 발진 신호의 계수로 얻는 것을 특징으로 하는 마이크로 컴퓨터.And the set time is obtained as a coefficient of a crystal oscillation signal.
KR2019950032380U 1990-08-23 1995-11-06 Micro-computer KR960001887Y1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP90-219935 1990-08-23
JP2219935A JPH0831001B2 (en) 1990-08-23 1990-08-23 Microcomputer
KR1019910014296A KR920005002A (en) 1990-08-23 1991-08-20 Micro computer

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1019910014296A Division KR920005002A (en) 1990-08-23 1991-08-20 Micro computer

Publications (1)

Publication Number Publication Date
KR960001887Y1 true KR960001887Y1 (en) 1996-02-29

Family

ID=26523414

Family Applications (1)

Application Number Title Priority Date Filing Date
KR2019950032380U KR960001887Y1 (en) 1990-08-23 1995-11-06 Micro-computer

Country Status (1)

Country Link
KR (1) KR960001887Y1 (en)

Similar Documents

Publication Publication Date Title
JPH04336308A (en) Single-chip microcomputer
US5398007A (en) Low-power baud rate generator including two oscillators
EP0822479A2 (en) Clock system
US9966900B2 (en) Apparatus for oscillator with improved precision and associated methods
KR960001887Y1 (en) Micro-computer
JPH04102910A (en) Microcomputer
KR960032138A (en) Microcomputer
US4623845A (en) Multi-clock generator
US4248316A (en) Error detecting apparatus for a scale having a digital display
US20020063591A1 (en) Divider with cycle time correction
JPH06342088A (en) Timing method, semiconductor device and timer
KR970055240A (en) Frequency multiplying device of clock input signal and its construction method
JP3112862B2 (en) Information processing device
US5555225A (en) Clock generating circuit and microcomputer incorporating same
JPS5571978A (en) Electronic multiple function watch
US4468133A (en) Electronic timepiece
JPH08335179A (en) One-chip microcomputer
JP2523890B2 (en) Pulse phase measurement device
SU1520535A1 (en) Combinatory arrangement
KR950013602B1 (en) Frequency measuring device
JPS58161052A (en) Test circuit
JPS5794682A (en) Electronic timepiece
JPH1125831A (en) Timer with temperature-compasating function and temperature regulator
JPH075944A (en) Clock multiplication circuit
JPH07140014A (en) Temperature measuring apparatus

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
REGI Registration of establishment
FPAY Annual fee payment

Payment date: 20030130

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee