
R01UH0336EJ0102 Rev.1.02
Page 291 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 8 Reset Controller
8.2.9
Reset Flag Evaluation
After any CPU reset (CPURES), the software starts at the reset vector which is
always located at address 0000 0000
H
.
Because each reset source will set its respective reset flag, if the reset flag
register RESF is equal to 0000
H
, a faulty software is assumed.
The reset flag register (RESF) can be evaluated as described below.
Figure 8-4
Procedure for Evaluating and Handling the Reset Flag
External reset RESET
Safety guardian reset
All resets except
SGARES
Faulty software
restarting
at address 0000 0000
H
Program starts
at address 0000 0000
H
Read RESF register
RESF
Handling according
to reset source
SGARES occurred
Read SGAmESSTER0/1
to determine error status
Clear RESF register
to 0000
H
User application
RESF = 00040
H
RESF = 00000
H
RESF = “Others”
SGARES
Detection
of faulty software restarting
at address 0000 0000
H
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...