Datasheet

V850ES/JG3-H, V850ES/JH3-H CHAPTER 12 REAL-TIME COUNTER
R01UH0042EJ0500 Rev.5.00 Page 657 of 1513
Aug 12, 2011
12.4.3 Reading each counter during the real-time counter operation
Set as follows when reading each counter (RC1SEC, RC1MIN, RC1HOUR, RC1WEEK, RC1DAY, RC1MONTH,
RC1YEAR) during real-time counter operation (RC1PWR = 1).
Figure 12-4. Reading Each Counter During The real-time counter Operation
Start
RC1CC2.RWAIT bit = 1
Stops RC1SEC to RC1YEAR counters.
Counter value write/read mode
RC1CC2.RWAIT bit = 0 Sets RC1SEC to RC1YEAR counter operation.
RC1CC2.RWST bit = 0?
No
Yes
Checks counter wait status.
Checks whether previous writing to RC1SEC to
RC1YEAR is completed.
End
RC1CC2.RWST bit = 1?
Note
No
Yes
Reading RC1SEC
Reading RC1MIN
Reading RC1HOUR
Reading RC1WEEK
Reading RC1DAY
Reading RC1MONTH
Setting RC1YEAR
Reads each count register.
Note Be sure to confirm that RWST = 0 before setting STOP mode.
Caution Complete the series of operations for setting RWAIT to 1 to clearing RWAIT to 0 within 1
second.
If RWAIT = 1 is set, the operation of RC1SEC to RC1YEAR is stopped. If a carry occurs from
RC1SUBC while RWAIT = 1, one carry can be internally retained. However, if two or more
carries occur, the number of carries cannot be retained.
Remark RC1SEC, RC1MIN, RC1HOUR, RC1WEEK, RC1DAY, RC1MONTH, and RC1YEAR may be read
in any sequence.
All the registers do not have to be set and only some registers may be read.