R0K572011S000BE Renesas Electronics America, R0K572011S000BE Datasheet - Page 691

no-image

R0K572011S000BE

Manufacturer Part Number
R0K572011S000BE
Description
KIT STARTER FOR SH7201
Manufacturer
Renesas Electronics America
Series
Renesas Starter Kits (RSK)r
Type
MCUr

Specifications of R0K572011S000BE

Contents
CPU Board, LCD Display Module, E8 Emulator, Cable, QuickStart Guide and CD-ROM
For Use With/related Products
SH7201
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
SH7201 Group
15.4.3
Figure 15.3 shows how to read the time.
If a carry occurs while reading the time, the correct time will not be obtained, so it must be read
again. Part (a) in figure 15.3 shows the method of reading the time without using interrupts; part
(b) in figure 15.3 shows the method using carry interrupts. To keep programming simple, method
(a) should normally be used.
R01UH0026EJ0300 Rev. 3.00
Sep 24, 2010
Reading Time
Yes
Yes
(a) To read the time without using interrupts
(b) To read the time using interrupts
Disable the carry interrupt
Disable the carry interrupt
Enable the carry interrupt
Read counter register
Read counter register
Clear the carry flag
Clear the carry flag
Clear the carry flag
Carry flag = 1?
interrupt
Figure 15.3 Reading Time
No
No
Write 0 to CF in RCR1
(Set AF in RCR1 to 1 so that alarm
Read RCR1 and check CF bit
Write 0 to CIE in RCR1
Write 0 to CIE in RCR1
Write 0 to CF in RCR1
(Set AF in RCR1 to 1 so that alarm
Read RCR1 and check CF bit
Write 1 to CIE in RCR1
flag is not cleared.)
flag is not cleared.)
Section 15 Realtime Clock (RTC)
Page 663 of 1190

Related parts for R0K572011S000BE