FR2506038A1 - Programmable micro-calculator for controlling domestic equipment - contains switching circuit to connect micro-calculator back up power supply when mains supply trips out - Google Patents

Programmable micro-calculator for controlling domestic equipment - contains switching circuit to connect micro-calculator back up power supply when mains supply trips out Download PDF

Info

Publication number
FR2506038A1
FR2506038A1 FR8109405A FR8109405A FR2506038A1 FR 2506038 A1 FR2506038 A1 FR 2506038A1 FR 8109405 A FR8109405 A FR 8109405A FR 8109405 A FR8109405 A FR 8109405A FR 2506038 A1 FR2506038 A1 FR 2506038A1
Authority
FR
France
Prior art keywords
microcomputer
program
voltage
memory
circuit
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.)
Granted
Application number
FR8109405A
Other languages
French (fr)
Other versions
FR2506038B1 (en
Inventor
Maurice Mazuir
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.)
Carpano and Pons SA
Original Assignee
Carpano and Pons SA
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 Carpano and Pons SA filed Critical Carpano and Pons SA
Priority to FR8109405A priority Critical patent/FR2506038A1/en
Publication of FR2506038A1 publication Critical patent/FR2506038A1/en
Application granted granted Critical
Publication of FR2506038B1 publication Critical patent/FR2506038B1/fr
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/22Pc multi processor system
    • G05B2219/2214Multicontrollers, multimicrocomputers, multiprocessing
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/23Pc programming
    • G05B2219/23215Check data validity in ram, keep correct validity, compare rom ram
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25381Restart program at predetermined position, crash recovery after power loss

Abstract

A power supply, comprising a mains transformer supplying a bridge rectifier, provides a stabilised voltage via a series regulating transistor. A back up power supply comprises a transistor in series with a battery with the transistor collector connected to the power supply rail. A cut out circuit contains a voltage detector comprising a zener diode whose cathode is connected to the regulated power supply rail. This zener provides a voltage when the mains regulates circuit operates. This causes a transistor to conduct and route the power to the micro calculator with its non volatile memory. An initialisation circuit interrupts the base drive to the series transistor in the back up circuit to prevent the battery from discharging when the mains supply is present.

Description

La présente invention concerne les dispositifs de commande, en particulier pour appareils électrodomestiques, comportant, d'une part un microcalculateur sans mémoire programme intégrée muni d'une mémoire volatile, associé avec une mémoire programme séparée non volatile, d'autre part une alimentation secteur prévue pour alimenter ladite mémoire programme se-pa- rée non volatile et le microcalculateur sans mémoire programme intégrée. The present invention relates to control devices, in particular for household electrical appliances, comprising, on the one hand a microcomputer without integrated program memory provided with a volatile memory, associated with a separate non-volatile program memory, on the other hand a mains supply designed to supply said separate non-volatile program memory and the microcomputer without integrated program memory.

Un circuit d'initialisation est prévu pour positionner l'entrez d'initialisation dudit microcalculateur.An initialization circuit is provided for positioning the initialization input of said microcomputer.

Dans des dispositifs de commande de ce genre, tels que celui décrit dans le catalogue MOS 1980 de "National Semiconductor", page 1-21, chaque fois que l'alimentation secteur est coupée, toutes les données écrites précédemment dans la mémoire volatile sont perturbées au moins partiellement. Il est donc nécessaire, après chaque rétablissement de l'alimentation secteur, de détruire toutes les données écrites dans la mémoire volatile. Le programme en cours, par exemple dans l'appareil électrodomestique, doit donc ainsi être toujours repris a son origine, la perte de temps étant certaine, surtout lorsque ledit programme est relativement long a effectuer. C'est la un inconvénient. In control devices of this kind, such as that described in the MOS catalog 1980 of "National Semiconductor", page 1-21, whenever the mains supply is cut, all the data previously written in the volatile memory is disturbed at least partially. It is therefore necessary, after each restoration of the mains supply, to destroy all the data written in the volatile memory. The current program, for example in the household appliance, must therefore always be taken back to its origin, the loss of time being certain, especially when said program is relatively long to perform. This is a downside.

Le dispositif de commande, objet de la présente invention, est carac terse encaque le circuit d'initialisation comporte des moyens prévus pour que le positionnement de l'entrée d'initialisation du microcalculateur sans mémoire programme intégrée s'effectue lorsque la tension d'alimentation de la mémoire programme séparée non volatile descend au-dessous de la tension minimale de fonctionnement de cette mémoire. Il est prévu une alimentation de secours comportant des moyens pour assurer, a ce moment, sa connexion, uniquement au microcalculateur.Des moyens de test de la validité des données stockées dans la mémoire volatile du microcalculateur, après rétablissement de la tension fournie par l'alimentation secteur, assurent, par un programme d'initialisation prévu dans la mémoire programme séparée non volatile, la remise à zéro complete des données de la mémoire volatile, uniquement dans le cas où la va lidité des données a éte testée négative. The control device, object of the present invention, is charac terse embed the initialization circuit comprises means provided so that the positioning of the initialization input of the microcomputer without integrated program memory takes place when the supply voltage of the separate non-volatile program memory drops below the minimum operating voltage of this memory. An emergency power supply is provided, comprising means for ensuring, at this time, its connection, only to the microcomputer. Means for testing the validity of the data stored in the volatile memory of the microcomputer, after restoration of the voltage supplied by the mains supply, ensure, by an initialization program provided in the separate non-volatile program memory, the complete reset to zero of the data in the volatile memory, only in the case where the validity of the data has been tested negative.

Selon une réalisation, les moyens de test de la validité des données stockées comportent, par exemple, un circuit de coupure intercalé entre les alimentations, secteur et de secours, et le microcalculateur, pour couper lesdites alimentations lorsque la tension que ces alimentations délivrent descend au-dessous de la tension minimale de fonctionnement du microcalculateur, de façon à effacer toutes les données stockées. According to one embodiment, the means for testing the validity of the stored data comprise, for example, a cut-off circuit interposed between the power supplies, mains and backup, and the microcomputer, for cutting said feeds when the voltage that these power supplies deliver drops to - below the minimum operating voltage of the microcomputer, so as to erase all the stored data.

Le programme d'initialisation est prévu pour tester des données de test écrites dans la mémoire volatile par une exécution précédente du même programme d'initialisation.The initialization program is intended to test test data written in the volatile memory by a previous execution of the same initialization program.

Selon une autre réalisation, les moyens de test de la validité des données stockées comportent un circuit de mémorisation prévu pour détecter et mémoriser l'état de la tension d'alimentation du microcalculateur, précédant le retour de la tension d'alimentation secteur. Le programmed'i- nitialisation est prévu pour tester, par une entrée du microcalculateur, le circuit de mémorisation, de façon à effacer toutes les données stockées, dans le cas où la tension d'alimentation est descendue au-dessous de la tension minimale de fonctionnement du microcalculateur. According to another embodiment, the means for testing the validity of the stored data comprise a storage circuit provided for detecting and storing the state of the supply voltage of the microcomputer, preceding the return of the mains supply voltage. The initialization program is intended to test, by an input of the microcomputer, the storage circuit, so as to erase all the stored data, in the case where the supply voltage has dropped below the minimum voltage of operation of the microcomputer.

La présente invention permet de réaliser un dispositif de commande, qui permet de sauvegarder des données mémorisées dans une mémoire, malgré un grand nombre de coupures de l'alimentation secteur, tout en garantissant les données memorisees dans ladite mémoire. Ainsi, la plupart du temps, il n'est pas nécessaire de reprendre le programme en cours, à son début. Ce programme peut être simplement poursuivi, ce qui évite toute perte de temps. The present invention makes it possible to produce a control device, which makes it possible to save data stored in a memory, despite a large number of power supply interruptions, while guaranteeing the data stored in said memory. Thus, most of the time, it is not necessary to resume the program in progress, at its beginning. This program can simply be continued, which avoids any loss of time.

Le dessin annexé illustre, à titre d'exemple, des modes de réalisation conformes à la présente invention. The accompanying drawing illustrates, by way of example, embodiments in accordance with the present invention.

La fig. 1 représente le schéma électrique d'un premier mode de réalisation de l'invention. Fig. 1 shows the electrical diagram of a first embodiment of the invention.

La fig. 2 represente l'organigramme du programme d'initialisation du même premier mode de réalisation. Fig. 2 represents the flowchart of the initialization program of the same first embodiment.

La fig. 3 représente le schéma électrique d'un second mode de réalisa- tion de l'invention. Fig. 3 shows the electrical diagram of a second embodiment of the invention.

La fig. 4 représente l'organigramme du programme d'initialisation du même second mode de réalisation. Fig. 4 shows the flowchart of the initialization program of the same second embodiment.

Tel qu'il est représenté sur la fig. 1, le premier mode de réalisation du dispositif de commande comprend un circuit d'alimentation secteur 8, une alimentation de secours 7, un circuit de coupure 5, un circuit d'initialisation 6, un microcalculateur sans mémoire programme intégrée 2 et une mémoire programme séparée non volatile 3. As shown in fig. 1, the first embodiment of the control device comprises a mains supply circuit 8, an emergency supply 7, a cut-off circuit 5, an initialization circuit 6, a microcomputer without integrated program memory 2 and a program memory separate non-volatile 3.

L'alimentation secteur 8 comprend un transformateur 11, alimenté par la tension secteur, dont le secondaire est relié à un condensateur d'antiparasitage 12 et a un pont redresseur 13, de façon à générer une tension redressée double alternance, filtrée ensuite par un condensateur 14 qui est connecté aux bornes + et - dudit pont redresseur 13. La tensionredressée et filtrée est ensuite stabilisée par un transistor 15 dont le collecteur est relie à la borne + du pont redresseur 13 et à une borne d'une résistance 16 dont l'autre borne est reliée à la base de ce transistor 15, à une diode zener 17 et à un condensateur 18, de façon à fournir le courant base du transistor 15 et le courant de la diode zener 17. L'émetteur de ce transistor 15 est relié à un condensateur 19, à l'anode d'une diode 20 et à une borne +V.La cathode de la diode 20 est reliée à une borne +Vcc. Le circuit de masse est relié à la borne - du pont 13, aux condensateurs 14, 19 et 18 et à l'anode de la diode zener 17,
L'alimentation de secours 7 comprend un transistor 31 relié par sa base à la résistance 33, et par son émetteur à la borne positive d'une pile 30. Le circuit de masse est relié à la borne négative de la pile 30. Le collecteur du transistor 31 est relié à la borne +Vcc de l'alimentation secteur 8. La résistance 33 est reliée par son autre borne à une borne CRM du circuit d'initialisation 6.
The mains supply 8 comprises a transformer 11, supplied by the mains voltage, the secondary of which is connected to a suppressor capacitor 12 and to a rectifier bridge 13, so as to generate a full-wave rectified voltage, then filtered by a capacitor 14 which is connected to the + and - terminals of said rectifier bridge 13. The rectified and filtered voltage is then stabilized by a transistor 15 whose collector is connected to the + terminal of the rectifier bridge 13 and to a terminal of a resistor 16 whose another terminal is connected to the base of this transistor 15, to a zener diode 17 and to a capacitor 18, so as to supply the base current of the transistor 15 and the current of the zener diode 17. The emitter of this transistor 15 is connected to a capacitor 19, to the anode of a diode 20 and to a + V terminal. The cathode of the diode 20 is connected to a + Vcc terminal. The ground circuit is connected to the terminal - of the bridge 13, to the capacitors 14, 19 and 18 and to the anode of the zener diode 17,
The backup power supply 7 comprises a transistor 31 connected by its base to the resistor 33, and by its emitter to the positive terminal of a battery 30. The ground circuit is connected to the negative terminal of the battery 30. The collector of the transistor 31 is connected to the + Vcc terminal of the mains supply 8. The resistor 33 is connected by its other terminal to a CRM terminal of the initialization circuit 6.

Le circuit d'initialisation 6 comprend un dispositif détecteur de tension formé par une diode zener 42 dont la cathode est reliée à la borne +V de l'alimentation secteur 8, et par une résistance 41 branchée entre l'anode de la diode zener 42 et le circuit de masse. Une résistance 40 est également reliée à l'anode de la diode zener 42 et à la base d'un transistor 38 dont le collecteur est relié à la base d'un transistor 37 et à une résistance 39 connectée d'autre part à la borne +Vcc de l'alimentation secteur 8. Le collecteur du transistor 37 est relié à la borne CRM, à la borne +Vcc par l'intermédiaire d'une résistance 36, au circuit de masse par un condensateur 35, et à une borne d'entrée d'initialisation (reset) du microcalculateur 2. Les émetteurs des transistors 37 et 38 sont reliés au circuit de masse. The initialization circuit 6 comprises a voltage detector device formed by a zener diode 42, the cathode of which is connected to the + V terminal of the mains supply 8, and by a resistor 41 connected between the anode of the zener diode 42 and the ground circuit. A resistor 40 is also connected to the anode of the zener diode 42 and to the base of a transistor 38 whose collector is connected to the base of a transistor 37 and to a resistor 39 connected on the other hand to the terminal. + Vcc from the mains supply 8. The collector of transistor 37 is connected to the CRM terminal, to the + Vcc terminal via a resistor 36, to the ground circuit by a capacitor 35, and to a terminal d 'initialization (reset) input of microcomputer 2. The emitters of transistors 37 and 38 are connected to the ground circuit.

Le circuit de coupure 5 comprend un dispositif détecteur de tension, constitué par une diode zener 22 dont la cathode est reliée à la borne +Vcc de l'alimentation secteur 8, à l'émetteur d'un transistor 28 et, par l'intermédiaire d'une résistance 23, à la base de ce transistor 28. L'anode de la diode zener 22 est reliée par une résistance 25 au circuit de masse, et par une résistance 24 à la base d'un transistor 26. La base du transistor 26 est reliée par une résistance 29 au collecteur du transistor 28 et à une borne +Vp du microcalculateur 2. La base du transistor 28 est reliée par une résistance 27 au-collecteur du transistor 26 dont l'émetteur est relié au circuit de masse. The cut-off circuit 5 comprises a voltage detector device, constituted by a zener diode 22, the cathode of which is connected to the + Vcc terminal of the mains supply 8, to the emitter of a transistor 28 and, via a resistor 23 at the base of this transistor 28. The anode of the zener diode 22 is connected by a resistor 25 to the ground circuit, and by a resistor 24 at the base of a transistor 26. The base of the transistor 26 is connected by a resistor 29 to the collector of transistor 28 and to a + Vp terminal of the microcomputer 2. The base of transistor 28 is connected by a resistor 27 to the collector of transistor 26 whose emitter is connected to the ground circuit .

Le microcalculateur sans mémoire programme intégrée 2 comporte une mémoire volatile -2'. Il est relié à la mémoire programme séparée non volatile 3 par un bus mixte (adresses-données) 10. La mémoire programme séparée non volatile 3 est reliée par sa borne +V3 à la borne +V de l'alimentation secteur 8. Le microcalculateur 2 et la mémoire programme 3 sont reliés par ailleurs au circuit de masse. The microcomputer without integrated program memory 2 includes a volatile memory -2 '. It is connected to the separate non-volatile program memory 3 by a mixed bus (data addresses) 10. The separate non-volatile program memory 3 is connected by its + V3 terminal to the + V terminal of the mains supply 8. The microcomputer 2 and the program memory 3 are also connected to the ground circuit.

La fig. 2 représente l'organigramme du programme d'initialisation du microcalculateur 2, contenu dans une partie de la mémoire programme séparée non volatile 3. Ce programme débute avec le sous-programme 130, par exemple à l'adresse 000 (dans le cas du COP 402 de National Semiconductor). Fig. 2 represents the flowchart of the initialization program of the microcomputer 2, contained in a part of the separate non-volatile program memory 3. This program begins with the subroutine 130, for example at address 000 (in the case of COP 402 of National Semiconductor).

Ce programme, à l'aide de sous-programmes 131, 132 et 133, est prévu pour tester successivement des clés 51, 52 et 53 situées dans la mémoire volatile 2' du microcalculateur 2. Si ces clés sont reconnues par les sousprogrammes 131, 132 et 133 comme bonnes, la suite 134 du programme peut être exécutée. Sinon auparavant est exécuté un sous-programme 135 de remise à zéro de la mémoire volatile 2' du microcalculateur 2 et d'écriture des clés 51, 52 et 53.This program, using subroutines 131, 132 and 133, is provided for successively testing keys 51, 52 and 53 located in the volatile memory 2 ′ of the microcomputer 2. If these keys are recognized by the subroutines 131, 132 and 133 as good, continuation 134 of the program can be executed. If not previously, a subroutine 135 is executed to reset the volatile memory 2 ′ of the microcomputer 2 and to write the keys 51, 52 and 53.

Lorsque l'ensemble du dispositif de commande est aliment normalement à partir du secteur alternatif par l'alimentation secteur 8, non seulement le microcalculateur sans mémoire programme intégré 2 se trouve alimenté, mais également la mémoire programme 3. Cette alimentation est réalisée, pour la mémoire non volatile 3, par la borne +V de l'alimentation 8, pour le microcalculateur 2 par la borne +Vcc de la même alimentation 8 à travers le circuit de coupure 5. En effet, l'alimentation secteur 8 fournit alors une tension, sur sa borne +Vcc, supérieure à la tension de seuil de la diode zener 22, augmentée de la tension de la jonction base-émetteur du transistor 26 qui est en conséquence conducteur. Dans ces conditions, le courant base du transistor 28 est établi à travers ce transistor 26 et la résistance 27, et le transistor 28 est conducteur.La borne +V est alors à un potentiel voisin (à une tension de saturation collecteur-émetteur près) de celui de la borne +Vcc. When the entire control device is supplied normally from the AC sector by the mains supply 8, not only the microcomputer without integrated program memory 2 is supplied, but also the program memory 3. This supply is made, for the non-volatile memory 3, via the + V terminal of the supply 8, for the microcomputer 2 via the + Vcc terminal of the same supply 8 through the cut-off circuit 5. Indeed, the mains supply 8 then supplies a voltage , on its + Vcc terminal, greater than the threshold voltage of the zener diode 22, increased by the voltage of the base-emitter junction of the transistor 26 which is consequently conductive. Under these conditions, the base current of transistor 28 is established through this transistor 26 and the resistor 27, and the transistor 28 is conductive. The + V terminal is then at a neighboring potential (near a collector-emitter saturation voltage) from that of the terminal + Vcc.

Simultanément, dans le circuit d'initialisation 6, le transistor 37, bl < r qué par le transistor 38 dont le courant base est fourni par la tension de la borne +V à travers la diode zener 42, interrompt le courant base du transistor 31 qui est ainsi bloqué, ce qui empêche la pile 30 du circuit d'alimentation de secours 7 de débiter sur la borne +Vcc.De meme, le potentieldela borne reset du microcalculateur 2, positionné par la résistance 36 au potenr tiel de la broche +Vcc n'intervient pas sur le fonctionnement du microcalcu laveur 2. Celui-ci exécute normalement le programme situé dans la mémoire 3. Simultaneously, in the initialization circuit 6, the transistor 37, bl <r qued by the transistor 38 whose base current is supplied by the voltage of the terminal + V through the zener diode 42, interrupts the base current of the transistor 31 which is thus blocked, which prevents the battery 30 of the emergency power supply circuit 7 from delivering to the + Vcc terminal. Similarly, the reset terminal of the microcomputer 2, positioned by the resistor 36 at the potential of the spindle + Vcc does not interfere with the operation of the washer-extractor 2. It normally executes the program located in memory 3.

La consommation globale est alors égale à la somme des consommations du microcalculateur sans mémoire programme intégrée 2 et de la mémoire programme separee 3. Par exemple, dans le cas d'utilisation d'un microcalculateur COP 402 de National Semiconductor et d'une mémoire programme MM 2716 Q du même constructeur, la consommation globale est voisine de 545 mW, respectivement 45mW, 500 mW. The overall consumption is then equal to the sum of the consumptions of the microcomputer without integrated program memory 2 and of the separate program memory 3. For example, when using a COP 402 microcomputer from National Semiconductor and a program memory MM 2716 Q from the same manufacturer, the overall consumption is close to 545 mW, respectively 45 mW, 500 mW.

Lorsque la tension d'alimentation de la borne +V devient insuffisante, cette tension étant exclusivement fournie par le secteur alternatif qui est alors défaillant, le circuit d'initialisation 6 porte l'entrée reset du microcalculateur 2 à un potentiel voisin de celui de la masse. En effet si la tension de la borne +V descend en-dessous de la tension de seuil de la diode zener 42, augmentée de la tension de la jonction base-e-metteur du transistor 38, le transistor 38 se bloque. Le transistor 37 devient alors conducteur et "positionne" la borne reset du microcalculateur 2 à une tension voisine de zéro. When the supply voltage of the + V terminal becomes insufficient, this voltage being exclusively supplied by the AC sector which then fails, the initialization circuit 6 carries the reset input of the microcomputer 2 to a potential close to that of the mass. Indeed, if the voltage of the terminal + V drops below the threshold voltage of the zener diode 42, increased by the voltage of the base-e-emitter junction of the transistor 38, the transistor 38 is blocked. The transistor 37 then becomes conductive and "positions" the reset terminal of the microcomputer 2 at a voltage close to zero.

Il faut remarquer que la détection de tension effectuée par le circuit d'initialisation 6 est faite à partir de la tension de la borne +V, fournie exclusivement par l'alimentation secteur 8. En effet, la diode 20 située dans le circuit d'alimentation secteur 8 empeche l'alimentation de la borne +V par le circuit d'alimentation de secours 7. It should be noted that the voltage detection carried out by the initialization circuit 6 is made from the voltage of the terminal + V, supplied exclusively by the mains supply 8. In fact, the diode 20 located in the circuit mains supply 8 prevents the + V terminal from being supplied by the emergency supply circuit 7.

Le circuit d'initialisation 6 commande également à travers la borne
CRM la conduction du transistor 31 de façon à ce que la pile 30 débite sur la borne +Vcc pour alimenter le microcalculateur 2.
The initialization circuit 6 also controls through the terminal
CRM the conduction of the transistor 31 so that the battery 30 flows on the terminal + Vcc to supply the microcomputer 2.

L'entrée reset du microcalculateur 2, positionnée par le circuit d'initialisation 6, comme décrit précédemment, stoppe le fonctionnement normal du microcalculateur 2. Son compteur ordinal est forcé par exemple à l'adresse 000 (dans le cas du COP 402) et le microcalculateur 2 n'utilise plus les données provenant de la mémoire programme 3 alors insuffisamment alimentée. The reset input of the microcomputer 2, positioned by the initialization circuit 6, as described above, stops the normal operation of the microcomputer 2. Its ordinal counter is forced for example at address 000 (in the case of COP 402) and the microcomputer 2 no longer uses the data coming from the program memory 3 which is then insufficiently supplied.

Dans ces conditions, les données contenues dans la mémoire volatile 2' du microcalculateur 2 ne sont pas perturbées. La consommation globale est alors réduite à celle du microcalculateur sans mémoire programme intégrée 2, qui est dans notre exemple de 45 mW. Cette consommation réduite permet d'obtenir une durée de vie (chargée) importante pour la pile 30 du circuit d'alimentation de secours 7. Under these conditions, the data contained in the volatile memory 2 ′ of the microcomputer 2 is not disturbed. The overall consumption is then reduced to that of the microcomputer without integrated program memory 2, which in our example is 45 mW. This reduced consumption makes it possible to obtain a long (charged) lifetime for the battery 30 of the emergency power supply circuit 7.

Au retour de la tension secteur, lorsque la tension d'alimentation dé la mémoire programme 3 devient suffisante, c'est-à-dire supérieure à la tension de seuil de la diode zener 42, le circuit d'initialisation 6 annule la commande sur l'entrée reset du microcalculateur 2. Le microcalculateur 2 exécute le programme contenu dans la mémoire programme non volatile 3 en commençant par le sous-programme 130 débutant, dans le cas de notre exemple (COP 402), à l'adresse 000. Le programme executé est décrit par l'organigramme de la fig. 2. Ce programme teste tout d'abord, dans la mémoire volatile 2' du microcalculateur 2, les clés 51, 52, 53 pour vérifier la validité des données contenues dans cette mémoire volatile 2'. When the mains voltage returns, when the supply voltage of the program memory 3 becomes sufficient, that is to say greater than the threshold voltage of the zener diode 42, the initialization circuit 6 cancels the command on the reset input of the microcomputer 2. The microcomputer 2 executes the program contained in the non-volatile program memory 3 starting with the subroutine 130 starting, in the case of our example (COP 402), at address 000. The program executed is described by the flowchart in fig. 2. This program first of all tests, in the volatile memory 2 ′ of the microcomputer 2, the keys 51, 52, 53 to verify the validity of the data contained in this volatile memory 2 ′.

Dans le cas où, pendant la coupure secteur, le microcalculateur 2 a été alimenté par le circuit d'alimentation de secours 7 à travers le circuit de coupure 5, les données contenues dans la mémoire volatile 2' n'ont pas été modifiées et les clés 51, 52, et 53 sont testées bonnes par les sous-programmes 131, 132 et 133,et le programme contenu dans la mémoire programme 3 peut se poursuivre normalement. In the case where, during the power cut, the microcomputer 2 was supplied by the emergency power supply circuit 7 through the cut-off circuit 5, the data contained in the volatile memory 2 'have not been modified and the keys 51, 52, and 53 are tested good by the subroutines 131, 132 and 133, and the program contained in the program memory 3 can continue normally.

Dans le cas où, pendant la période de coupure de la tension secteur, la tension +Vcc fournie par l'alimentation de secours 7 est insuffisante, le circuit de coupure 5 coupe l'alimentation du microcalculateur 2. En effet, si la tension +Vcc est inférieure à la tension de seuil de la diode zener 22, augmentée de la tension de la jonction base-émetteur du transistor 26, ce transistor se bloque, interrompt le courant base du transistor 28 qui se bloque et coupe l'alimentation du microcalculateur 2. In the case where, during the cut-off period of the mains voltage, the voltage + Vcc supplied by the emergency supply 7 is insufficient, the cut-off circuit 5 cuts off the supply to the microcomputer 2. In fact, if the voltage + Vcc is lower than the threshold voltage of the zener diode 22, increased by the voltage of the base-emitter junction of the transistor 26, this transistor is blocked, interrupts the base current of the transistor 28 which is blocked and cuts the power supply of the microcomputer 2.

La résistance 29 a pour but de provoquer une hystérésis sur la tension de fonctionnement du circuit de coupure 5 de façon à garantir un temps de coupure minimal donné par la constante de temps de l'alimentation secteur 8, et assurer que toutes les données contenues dans la mémoire volatile 2' sont détruites. The purpose of the resistor 29 is to cause a hysteresis on the operating voltage of the cut-off circuit 5 so as to guarantee a minimum cut-off time given by the time constant of the mains supply 8, and to ensure that all the data contained in the volatile memory 2 'are destroyed.

Lors du retour de la tension secteur alternative, les sous-progranr mes 131, 132 et 133 testent les clés 51, 52 et 53 mauvaises, et le sousprogramme 135 exécute un sous-programme normal d'initialisation avec une remise à zéro de toutes les données de la mémoire volatile 2' et l'écritû- re des clés 51, 52 et 53. When the AC mains voltage returns, the subprograms 131, 132 and 133 test the bad keys 51, 52 and 53, and the subprogram 135 executes a normal initialization subroutine with a reset to zero data from volatile memory 2 'and the writing of keys 51, 52 and 53.

Ce dispositif permet donc la sauvegarde des données mémorisées dans un microcalculateur, avec une consommation reduite, en garantissant la validité de ces données. This device therefore makes it possible to save the data stored in a microcomputer, with reduced consumption, while guaranteeing the validity of this data.

La fig. 3 représente un second mode de réalisation du dispositif de commande, conforme à la présente invention. Le circuit de coupure 5 du premier mode de réalisation (fig. 1) est remplacé par un circuit de mémorisation 9 de l'état de l'alimentation. Fig. 3 shows a second embodiment of the control device, in accordance with the present invention. The cut-off circuit 5 of the first embodiment (fig. 1) is replaced by a circuit 9 for memorizing the state of the supply.

Ce circuit 9 comprend un détecteur de tension constitué par exemple par une diode zener 76 et une résistance 77.Lacathodedela diode zener 76 est reliée à la borne +Vcc de l'alimentation secteur 8, l'anode de cette diode zener 76 étant reliée au circuit de masse par la résistance 77 et à la base d'un transistor 79 par une résistance 78. Le transistor 79 a son émetteur relié au circuit de masse, et son collecteur relié à la cathode d'une diode 75. Un transistor 70 a sa base reliée à la cathode d'une diode 73, l'anode de cette diode 73 étant reliée par une résistance 74 à la borne +Vcc de l'alimentation secteur 8,et à l'anode de la diode 75. Le circuit de masse est relie également à l'émetteur du transistor 70 et à un condensateur 72. Le collecteur du transistor 70 est relié à une borne en tréer. du microcalculateur 2, au condensateur 72 et, par une résistance 71, à la borne +Vfl. du microcalculateur, reliée elle-meme à la borne +Vcc de l'alimentation secteur 8. This circuit 9 comprises a voltage detector constituted for example by a zener diode 76 and a resistor 77. The cathode of the zener diode 76 is connected to the + Vcc terminal of the mains supply 8, the anode of this zener diode 76 being connected to the ground circuit by resistor 77 and at the base of a transistor 79 by a resistor 78. The transistor 79 has its emitter connected to the ground circuit, and its collector connected to the cathode of a diode 75. A transistor 70 has its base connected to the cathode of a diode 73, the anode of this diode 73 being connected by a resistor 74 to the + Vcc terminal of the mains supply 8, and to the anode of the diode 75. The circuit of ground is also connected to the emitter of transistor 70 and to a capacitor 72. The collector of transistor 70 is connected to a terminal in tréer. from the microcomputer 2, to the capacitor 72 and, by a resistor 71, to the terminal + Vfl. of the microcomputer, itself connected to the + Vcc terminal of the mains supply 8.

Tous les autres éléments constitutifs sont identiques à ceux du premier mode de réalisation (fig. 1). La fig. 4 représente l'organigramme du programme d'initialisation, du microcalculateur 2 contenu dans une partie de la mémoire séparée non volatile 3, dans le cas de cette seconde réalisation. Ce programme débute avec le sous-programme 60 à l'adresse 000 et, à l'aide du sous-programme 61, teste ltentree ffi du microcalculateur 2.  All the other constituent elements are identical to those of the first embodiment (FIG. 1). Fig. 4 represents the flowchart of the initialization program, of the microcomputer 2 contained in a part of the separate non-volatile memory 3, in the case of this second embodiment. This program begins with subroutine 60 at address 000 and, using subroutine 61, tests the input ffi of microcomputer 2.

Suivant le résultat de ce test, ce sous-programme 61 adresse la suite 62 du programme, ou le sous-programme 63 de remise à zéro de la mémoire volatile 2' pour exécuter également ensuite la suite 62 du programme.Depending on the result of this test, this subroutine 61 addresses the sequence 62 of the program, or the subroutine 63 for resetting the volatile memory 2 ′ to then also execute the sequence 62 of the program.

Dans cette seconde réalisation, le fonctionnement des circuits 6, 7 et 8 reste identique à celui décrit précédemment (fig. 1). In this second embodiment, the operation of circuits 6, 7 and 8 remains identical to that described above (fig. 1).

Le circuit 9 a pour rôle de détecter et demémoriser l'état de la tension d'alimentation du microcalculateur 2, précédant le retour de la tension d'alimentation secteur. La détection de cet état est assurée par la diode zener 76, les résistances 77 et 78,et le transistor 79. La mémorisation de cet état est réaliséepar le condensateur 72. En effet, si la tension de la borne +Vb est maintenue par 11 alimentation de secours 7, pendant la coupure secteur, à une valeur supérieure à celle de la tension de seuil de la diode zener 76, le transistor 79 reste sature et bloque le transistor 70. Le transistor 70 n'intervient donc pas dans ces conditions sur la charge du condensateur 72 qui peut mémoriser l'état normal de la tension sur la borne +V.Le potentiel de l'entrées # est donc voisin de celui de la borne +VF et le sous-programme 61, testant le niveau haut de cette entrée, commande l'exécution de la suite 62 du programme. Dans le cas où la tension de la borne +Ve n'est pas maintenue par l'alimentation de secours 7, pendant la coupure secteur, à-une valeur supérieure à la tension de seuil de la diode zener 76, le transistor 79 est bloqué. Lors du retour de la tension fournie par l'alimentation secteur 8 sur la borne +Vcc, le transistor 79, étant bloqué, "autorise" l'établissement d'un courant base pour le transistor 70 à travers la résistance 74 et la diode 73. The role of circuit 9 is to detect and store the state of the supply voltage of microcomputer 2, preceding the return of the mains supply voltage. The detection of this state is ensured by the zener diode 76, the resistors 77 and 78, and the transistor 79. The memorization of this state is carried out by the capacitor 72. In fact, if the voltage of the terminal + Vb is maintained by 11 emergency power supply 7, during the power cut, at a value greater than that of the threshold voltage of the zener diode 76, the transistor 79 remains saturated and blocks the transistor 70. The transistor 70 therefore does not intervene under these conditions on the charge of the capacitor 72 which can memorize the normal state of the voltage on the + V terminal. The potential of the inputs # is therefore close to that of the + VF terminal and the subroutine 61, testing the high level of this entry commands the execution of the sequence 62 of the program. In the case where the voltage of the terminal + Ve is not maintained by the emergency power supply 7, during the power cut, at a value greater than the threshold voltage of the zener diode 76, the transistor 79 is blocked . When the voltage supplied by the mains supply 8 returns to the + Vcc terminal, the transistor 79, being blocked, "authorizes" the establishment of a base current for the transistor 70 through the resistor 74 and the diode 73 .

Ce transistor 70 se sature donc et décharge le condensateur 72 qui mémorise l'état insuffisant de la tension sur la borne +V . Le potentiel de l'en- treks est voisin de zéro et le sous-programme 61, testant le niveau bas de cette entrée, commande le sous-programme 63 de remise à zéro de la mémoire volatile 2' avant que soit exécutée la suite 62 du programme.This transistor 70 therefore saturates and discharges the capacitor 72 which stores the insufficient state of the voltage on the + V terminal. The potential of the inputs is close to zero and the subroutine 61, testing the low level of this input, commands the volatile memory reset subroutine 63 'before executing the sequence 62 from the program.

Les dispositifs de commande, objet de l'invention, peuvent être utilisés en particulier pour commander des appareils électrodomgstiques tels que des lave-vaisselle, des lave-linge, des adoucisseurs d'eau, etc...  The control devices, object of the invention, can be used in particular to control electrodomgstic devices such as dishwashers, washing machines, water softeners, etc.

Claims (3)

REVENDICATIONS 1. Dispositif de commande, en particulier pour appareils électrodomesti1. Control device, in particular for household electrical appliances ques, comportant, d'une part un microcalculateur sans mémoire programme ques, comprising, on the one hand a microcomputer without program memory intégrée (2), muni d'une mémoire volatile (2'), associé avec une mémoire integrated (2), provided with a volatile memory (2 '), associated with a memory programme séparée non volatile (3), d'autre part une alimentation secteur separate non-volatile program (3), on the other hand a mains supply (8) prévue pour alimenter la mémoire programme séparée non volatile (3) (8) designed to supply the separate non-volatile program memory (3) et le microcalculateur sans mémoire-programme intégrée (2), un circuit and the microcomputer without integrated program memory (2), a circuit d'initialisation (6) étant prévu pour positionner l'entrée d'initialisa initialization (6) being provided to position the initialization input tion (reset) du microcalculateur (2), caractérisé en ce que le circuit tion (reset) of the microcomputer (2), characterized in that the circuit d'initialisation comporte des moyens prévus pour que le positionnement initialization includes means provided for positioning de l'entrée d'initialisation (reset) du microcalculateur (2) s'effectue the initialization (reset) input of the microcomputer (2) is carried out lorsque la tension d'alimentation de la mémoire programme séparée non when the supply voltage of the separate program memory is not volatile (3) descend au-dessous de la tension minimale de fonctionne volatile (3) drops below the minimum operating voltage ment de cette mémoire (3), une alimentation de secours (7) comportant ment of this memory (3), a backup power supply (7) comprising des moyens pour assurer, à ce moment, sa connexion, uniquement au mi means to ensure, at this time, its connection, only in mid crocalculateur (2), des moyens de test de la validité des données sto crocalculateur (2), means for testing the validity of sto data ckées dans la mémoire volatile(2') du microcalculateur (2), après réta ckées in the volatile memory (2 ') of the microcomputer (2), after reta blissement de la tension fournie par l'alimentation secteur (8), assu loss of voltage supplied by the mains supply (8), assu rant, par un programme d'initialisation prévu dans la mémoire programme rant, by an initialization program provided in the program memory séparée non volatile (3), la remise à zéro complète des données de la separate non-volatile (3), the complete reset of the data of the mémoire volatile (2'), uniquement dans le cas où la validité des don volatile memory (2 '), only if the validity of the donations nées a été testée négative. born was tested negative. 2. Dispositif de commande selon la revendication 1, caractérisé en ce que2. Control device according to claim 1, characterized in that les moyens de test de la valldite des données stockées comportent un the means of testing the valldite of the stored data includes a circuit de coupure (5) intercalé entre les alimentations, secteur (8) cut-off circuit (5) interposed between the power supplies, sector (8) et de secours (7), et le microcalculateur (2), pour couper lesdites a and backup (7), and the microcomputer (2), for cutting said a limentations lorsque la tension que ces alimentations délivrent descend power supplies when the voltage that these power supplies deliver drops au-dessous de la tension minimale de fonctionnement du microcalculateur below the minimum operating voltage of the microcomputer (2), de façon à effacer toutes les données stockées, le programme d'i (2), in order to erase all the stored data, the i program nitialisation étant prévu pour tester des données de test écrites dans nitialization being provided for testing test data written to la mémoire volatile (2') par une exécution précédente du même programme volatile memory (2 ') by a previous execution of the same program d'initialisation. initialization. 3. Dispositif de commande selon la revendication 1, caractérisé en ce que3. Control device according to claim 1, characterized in that les moyens de test de la validité des données stockées comportent un the means for testing the validity of the stored data include a circuit de mémorisation (9) prévu pour détecter et mémoriser l'état de storage circuit (9) designed to detect and store the state of la tension d'alimentation du microcalculateur (2), précédant le retour the supply voltage of the microcomputer (2), preceding the return de la tension d'alimentation secteur, le programme d'initialisation é of the mains supply voltage, the initialization program tant prévu pour tester, par une entrée (P) du microcalculateur (2), le both provided for testing, by an input (P) of the microcomputer (2), the circuit de mémorisation (9), de façon à effacer toutes les données sto memory circuit (9), so as to erase all the sto data ckées, dans le cas où la tension d'alimentation est descendue au-des sous de la tension minimale de fonctionnement du microcalculateur (2).  ckées, if the supply voltage has dropped below the minimum operating voltage of the microcomputer (2).
FR8109405A 1981-05-12 1981-05-12 Programmable micro-calculator for controlling domestic equipment - contains switching circuit to connect micro-calculator back up power supply when mains supply trips out Granted FR2506038A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
FR8109405A FR2506038A1 (en) 1981-05-12 1981-05-12 Programmable micro-calculator for controlling domestic equipment - contains switching circuit to connect micro-calculator back up power supply when mains supply trips out

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
FR8109405A FR2506038A1 (en) 1981-05-12 1981-05-12 Programmable micro-calculator for controlling domestic equipment - contains switching circuit to connect micro-calculator back up power supply when mains supply trips out

Publications (2)

Publication Number Publication Date
FR2506038A1 true FR2506038A1 (en) 1982-11-19
FR2506038B1 FR2506038B1 (en) 1984-08-03

Family

ID=9258335

Family Applications (1)

Application Number Title Priority Date Filing Date
FR8109405A Granted FR2506038A1 (en) 1981-05-12 1981-05-12 Programmable micro-calculator for controlling domestic equipment - contains switching circuit to connect micro-calculator back up power supply when mains supply trips out

Country Status (1)

Country Link
FR (1) FR2506038A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2523886A1 (en) * 1982-03-25 1983-09-30 Pertron Controls Corp MICROPROCESSOR CONTROL CONTROLLER FOR RESISTANCE WELDING MACHINES
EP0375786A1 (en) * 1988-06-02 1990-07-04 Fanuc Ltd. Motor controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2414755A1 (en) * 1978-01-11 1979-08-10 Nissan Motor VEHICLE MOUNTED MICROCALCULATOR
EP0027432A2 (en) * 1979-10-04 1981-04-22 INDESIT INDUSTRIA ELETTRODOMESTICI ITALIANA S.p.A. Electronic data memorising circuit in a domestic electrical appliance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2414755A1 (en) * 1978-01-11 1979-08-10 Nissan Motor VEHICLE MOUNTED MICROCALCULATOR
EP0027432A2 (en) * 1979-10-04 1981-04-22 INDESIT INDUSTRIA ELETTRODOMESTICI ITALIANA S.p.A. Electronic data memorising circuit in a domestic electrical appliance

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
EXBK/77 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2523886A1 (en) * 1982-03-25 1983-09-30 Pertron Controls Corp MICROPROCESSOR CONTROL CONTROLLER FOR RESISTANCE WELDING MACHINES
EP0375786A1 (en) * 1988-06-02 1990-07-04 Fanuc Ltd. Motor controller
EP0375786A4 (en) * 1988-06-02 1992-08-12 Fanuc Ltd Motor controller

Also Published As

Publication number Publication date
FR2506038B1 (en) 1984-08-03

Similar Documents

Publication Publication Date Title
US20170099049A1 (en) Circuit and method for monitoring correlated electron switches
US4595875A (en) Short detector for PROMS
JPH0630529A (en) Charging control apparatus of storage battery
FR2845559A1 (en) Lighting circuit with light-emitting diodes (LEDs) for vehicle light, comprises switching regulator, control unit, and anomalous supply current or voltage detector
FR2523886A1 (en) MICROPROCESSOR CONTROL CONTROLLER FOR RESISTANCE WELDING MACHINES
WO1990007185A1 (en) Data processing device comprising a non-volatile, electrically erasable and reprogrammable memory
FR2550361A1 (en) MICROCALCULATOR WITH INTEGRATED STRUCTURE PROVIDED WITH A RANDOM ACCESS MEMORY
EP0849660B1 (en) Portable electronic apparatus with a device for detecting a variation in the supply voltage
FR2506038A1 (en) Programmable micro-calculator for controlling domestic equipment - contains switching circuit to connect micro-calculator back up power supply when mains supply trips out
FR2767589A1 (en) Monitoring of supply potential for reset conditions in microprocessor system
FR2673295A1 (en) DEVICE FOR DETECTING THE LOGICAL STATE OF A COMPONENT HAVING A VARIED IMPEDANCE FOLLOWING THIS STATE.
KR20060115129A (en) Erase discharge method of memory device
JP2731528B2 (en) DC power supply instantaneous interruption detection device
US4827220A (en) Method and apparatus for testing batteries
EP0018517A1 (en) Diagnostic and alarm apparatus for a data communication network
FR2727536A1 (en) MOUNTING TO CHARGE AND DISCHARGE CAPACITORS ACCUMULATORS
US4031559A (en) Filter capacitor charging circuit
EP0080396A1 (en) Integrated circuit microprocessor-controlled telephone two wire/four wire transmission circuit, and line current safeguard powering
FR2539527A1 (en) CONTROL CIRCUIT FOR A MICROCOMPUTER
EP0395590B1 (en) Electronic control device for at least one electrically driven receiver
KR100207122B1 (en) Data stabilizer in memory system of driving information in a car
JPS63501106A (en) Electrically programmable read-only memory
FR2549999A1 (en) RAM TYPE MEMORY CELL COMPRISING AN ELECTRICALLY PROGRAMMABLE NON-VOLATILE MEMORY MEMBER
FR2767933A1 (en) SUPPLY VOLTAGE ADAPTER CIRCUIT
JPH0315767B2 (en)

Legal Events

Date Code Title Description
TP Transmission of property
CA Change of address
CD Change of name or company name
ST Notification of lapse