Operation; Time Setting Procedures - Hitachi SH7750 series Hardware Manual

Superh risc engine
Hide thumbs Also See for SH7750 series:
Table of Contents

Advertisement

11.3

Operation

Examples of the use of the RTC are shown below.
11.3.1

Time Setting Procedures

Figure 11.2 shows examples of the time setting procedures.
Set second/minute/hour/day/
Yes
The procedure for setting the time after stopping the clock is shown in (a). The programming for
this method is simple, and it is useful for setting all the counters, from second to year.
Rev. 4.0, 04/00, page 234 of 850
Stop clock
Reset frequency divider
day-of-week/month/year
Start clock operation
(a) Setting time after stopping clock
Clear carry flag
Write to counter register
Carry flag = 1?
No
(b) Setting time while clock is running
Figure 11.2 Examples of Time Setting Procedures
Set RCR2.RESET to 1
Clear RCR2.START to 0
In any order
Set RCR2.START to 1
Clear RCR1.CF to 0
(Write 1 to RCR1.AF so that alarm flag
is not cleared)
Set RYRCNT first and RSECCNT last
Read RCR1 register and check CF bit

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7750sSh7750

Table of Contents