USOO5668726A United States Patent [19] [11] Patent Number: 5,668,726 Kondo et al. [45] Date of Patent: Sep. 16, 1997 I [54] DATA BACKUP APPARATUS UTILIZED IN 4-55927 2/1992 Japan . AN ELECTRONIC CONTROL SYSTEM AND 4153312 5/ 1992 Japan - DATA BACKUP METHOD PERFORMED [N 5143468 6/1993 Japan THE DATA BACKUP APPARATUS 5443470 6/1993 Jaim [75] Inventors: Hiroshi Kondo, Anjo; Takamasa OTHER PUBLICATIONS Oguri, Toyoake; Masato Yano. IBM Technical Disclosure Bulletin. vol. 21. No. 9, Feb. Okazaki; Kazuyuki Okuda, Kariya; 1979, pp. 3806-3808, G. M. Trees et al ‘Document recovery Yoshihiro Kitagawa, Nagoya, all of after system failure’. Japan Database WPI. Week 9233, Derwent Publications Ltd., London, GB; AN 92-270360 & EP-A-0 498 374 (Toshiba [73] Assignee: Nippondenso Co, Ltd.. Aichi-pref., Computer Eng Corp) 3 Mar, 1993_ Japan Database WPI, Week 8703, Derwent Publications Ltd., London, GB; AN 87-015576 & DE-A-36 22 822 (Hitachi [21] Appl. No.: 357,923 K.K.) 15 Jan. 1987;. [22] Filed: Dec' 16’ 1994 Primary Examiner-Kevin J. Teska - - - - - Assistant Examiner—Tyrone V. Walker [30] Forelgn Apphcatlon Pnonty Data Attomey, Agent, or Firm-Cushman Darby & Cushman 1P Dec. 17, 1993 [JP] Japan .................................. .. 5-318612 Group of Pillsbury Madison & Sun-o LLP Mar 18, 1994 [JP] Japan .................................. .. 6-049038 6 [57] ABSTRACT [51] Int. Cl. .................................................... .. G06F 11/16 [52] US. Cl. ................. .. 701/115; 371/671; 395/182.04; A backup RAM for Swn‘ng Pieces of diagnosis data regard > 701/114 less of the cut-o?’ of an elecnic power is provided in a - [58] Field of Search ........................ .. 364/431.12, 431.11, Portion of a RAM- In Cases Where thc detection of an 364/424_034, 424.035; 395/43 1, 438’ 18204; unusual Condition by a throttle sensor or a water temperature 34032516; 73/1173; 371/67_1 sensor is judged by a CPU in a current processing routine, a ?rst checking value indicating that the backup RAM is in [56] Referencw Cited a renewing period is stored in a checking region of the . backup RAM, and pieces of previous diagnosis data stored U-S- PATENT DOCUMENTS in a data access region of the backup RAM in a previous 4,271,402 6/1981 Kastura et al. .................. .. 364/431.12 Processing routine are copied to a temporal? refuge region 4,307,455 12/1981 Juhasz et al. ............ .. 364/424.04 Of the backup RAM- Thereafter, Picccs Of updated diagnosis 4,348,729 9/1982 Sasayama et al. ........... .. 364/431.12 data obtainedin the current processing routine are stored one 4,891,760 1/1990 Kashiwazaki et al. ........ .. 364/443 by one in the data access region in place of the previous 4,943,924 7/1990 Kanegae et al. ............. .. 364/431.12 diagnosis data, and a second checking value indicating that 1E1); 212??“ at al the backup RAM is in a renewal ?nishing period is stored in 5,, 276,, 619 1,1994 Ohmmiz eut a. .1 .. . . . . . . . . . . . . ._ . . . 3..6 4,431.1. 2 the checki- ng regi- on. cases where the ?rst checki- ng data 5,497,330 3/1996 Ishida . . . . . . . . . . . .. 364/431.12 1s stored 1.“ the chEckmg regm‘.‘ when. the e1.e°m° POW“ a.“ 5,526,267 6/1996 Sogawa ............................ .. 364/431.12 Off 15 agaln SuPPhcd» the Prevlous ‘hagm’sls data “med 1“ the temporary refuge region are returned to the data access FOREIGN PATENT DOCUMENTS region and are read out according to a request from a diagnosis checker. 0025330 3/1981 European Pat. O?’. . 57-195396 12/1982 Japan . 62-142849 6/1987 Japan . 31 Claims, 27 Drawing Sheets 19 DIAGNOSIS CHECKER $22 s21 12 1 READ ONLY THROTTLE SENSOR » MEMORY l5 AIR FLOW DETECTOR 7* (15 CRANK ANGLE INP> UT/OUTPUT CENTRAL SENSOR _’ CIRCUIT <21) 559E559“; 42a rT7 moon ' ACCESS WATER TEMPERATURE _, MEMORY SENSOR H 1B mxup FUEL INJECTION __ VALVE 24 CONTROL UNIT US. ‘Patent Sep. 16, 1997 Sheet 2 0f 27 5,668,726 F/G. 2 24 [v ADDRESS TS-TII 8-TH 7-TH _ O-TH NO. BIT BIT BIT BIT n BACKUP RAM CHECKING VALUE (R101) n+1 FuI (R102) NuI (R103) n+2+0 DIAGNOSIS DATA D'O (NE) (R104) n+2+1 DIAGNOSIS DATA D’I (GN) (R105) TEMPORARY - > REFUGE REGION n+2+a DIAGNOSIS DATA D'a (:1) (R106) ) n+3+ a Fu2 (R107) Nu2 (R108) n+4+ a Fu3 (RIOS) Nus (R110) n+5+a+0 DIAGNOSIS DATA DD(NE) (R111) L RéEéSS n+5+ (1+1 DIAGNOSIS DATA D1 (GN) (R 112 ) REGION n+5+a+a DIAGNOSIS DATA Da(a) (R113) US. Patent Sep. 16, 1997 ’ Sheet 4 0f 27 5,668,726 FIG. 4 S301 HA SIGNAL; 0. TV ‘? YES 5302 HA UNUSUAL CONDITION CONTINUING COUNTER PASS S304 IS THE DETECTION OF UNUSUAL CONDITION THE F I RST TIME ‘? RENEWAL PREPARATION PROCESSING SUB-ROUTINE IS CALLED 1 8306 HA UNUSUAL CONDITION JUDGING FLAG ) Fu2 IS SET TO " I " THE NUMBER N2 OF HA UNUSUAL )5 CONDITION JUDGEMENTS IS INCREMENTED I S308 , #3312 I DOPNE F‘ HA UNUSUAL CONDITION 1 S309 CONTINUING COUNTER IS I D] ‘_ GN CLEARED $310 I DEE-FA | LURE CODE a P 1 $311 RENEWAL FINISH PROCESSING j SUB-ROUTINE IS CALLED -L U.S. Patent Sep. 16, 1997 Sheet 5 of 27 5,668,726 P76. 5 . I V8401 FuI ¢— Fug NuI *- Nuz v {V3402 ‘ , DIAGNOSIS DATA D'o +-Do DIAGNOSIS DATA D'I <—DI DIAGNOSIS DATA D'a <-D¢ [V3403 V FIRST HA CHECKING DATA ' UOH' IS WRITTEN IN CHECKING REGION RI OI I ( END ) FIG. 6 E 0ND CHECKING DATA ' A5HI IS WRITTEN HECKING REGION RI [II I END ) US. Patent Sep. 16, 1997 Sheet 6 0f 27 5,668,726 FIG. 7 S501 TW SIGNALZO. IV ‘? S502 YES TW SIGNALé 4. 9V ‘.7 I NO S503 TW UNUSUAL CONDITION CONTINUING COUNTER PASS S504 IS THE DETECTION OF UNUSUAL CONDITION THE FI RST TIME ‘3 $505 RENEWAL PREPARATION PROCESSING J SUB-ROUTINE IS CALLED 1 8506 TN UNUSUAL CONDITION JUDG I NG FLAG J Fu3 IS SET TO " I" THE NUMBER N3 0F TW UNUSUAL ; CONDITION JUDGEMENTS |s INCREMENTED I $508 I [V3512 I D0+~NE F W UNUSUAL CONDITION 1 S509 CONTINUING COUNTER IS I D] (_ GN CLEARED | Da+~ FA I LURE CODE a I ssn RENEWAL FIN I SH PROCESSING j SUB-ROUTINE IS CALLED US. Patent Sep. 16, 1997 Sheet 8 of 27 5,668,726 P76". .9 IS BACKUP RAM CHECKING VALUE SET TO ' A5H' ‘2 S602 AN OFFSET BETWEEN A RETURNING ADDRESS J AND (n+3+ a ) -TH ADDRESS IS CALCULATED WITH FIRST CHECKING DATA TO RETURN THE FLAG Ful AND THE NUMBER NuI TO THE RETURNING ADDRESS I S603 THE FLAG FuI AND THE NUMBER NUI ARE 2’ RETURNED TO {(n+3+ a)+OFFSET} —TH ADDRESS I , S604 DIAGNOSIS DATA D0'—D0 J DIAGNOSIS DATA DIS-"D11 DIAGNOSIS DATA Dan-D'a I 8605 BACKUP RAM CHECKING VALUE IS-RESET )’ I TO ' ASH” - L 5,668,726 US. Patent Sep. 16, 1997 Sheet 9 0f 27 FIG. 70 DOES DIAGNOSIS CHECKER NO REQUEST THE OUTPUT OF DTAGNOSIS DATA 9 S612 THE FLAGS Fug, Fu3 AND THE NUMBERS Nuz,Nu3 ARE OUTPUT ARE ALL OF THE FLAGS AND THE NUMBERS OUTPUT ‘.7 YES S614 DIAGNOSTS DATA ARE OUTPUT
Description: