Datasheet

V850ES/JG3-H, V850ES/JH3-H CHAPTER 12 REAL-TIME COUNTER
R01UH0042EJ0500 Rev.5.00 Page 656 of 1513
Aug 12, 2011
12.4.2 Rewriting each counter during the real-time counter operation
Set as follows when rewriting each counter (RC1SEC, RC1MIN, RC1HOUR, RC1WEEK, RC1DAY, RC1MONTH,
RC1YEAR) during the real-time counter operation (RC1PWR = 1, RTCE = 1).
Figure 12-3. Rewriting Each Counter During The real-time counter Operation
Start
RWAIT = 1
Stops RC1SEC to RC1YEAR counters.
Counter value write mode
Setting AMPM
Writing RC1SEC
Writing RC1MIN
Writing RC1HOUR
Writing RC1WEEK
Writing RC1DAY
Writing RC1MONTH
Setting RC1YEAR
Writes to each count register.
Selects watch counter display method.
RWAIT = 0 Sets RC1SEC to RC1YEAR counter operation.
RWST = 0?
No
Yes
Checks counter wait status.
Checks whether previous writing to
RC1SEC to RC1YEAR counters is completed.
End
RWST = 1?
Note
No
Yes
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 berewrite
in any sequence.
All the registers do not have to be set and only some registers may be read.