Time Reading Procedures - Hitachi SH7751 Hardware Manual

Superh risc engine
Table of Contents

Advertisement

The procedure for setting the time while the clock is running is shown in figure 11.2 (b). This
method is useful for modifying only certain counter values (for example, only the second data or
hour data). If a carry occurs during the write operation, the write data is automatically updated and
there will be an error in the set data. The carry flag should therefore be used to check the write
status. If the carry flag (RCR1.CF) is set to 1, the write must be repeated.
The interrupt function can also be used to determine the carry flag status.
11.3.2

Time Reading Procedures

Figure 11.3 shows examples of the time reading procedures.
Rev. 3.0, 04/02, page 282 of 1064

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7751r

Table of Contents