04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 7 REAL-TIME CLOCK<br />

(6) Second count register (SEC)<br />

The SEC register is an 8-bit register that takes a value of 0 to 59 (decimal) and indicates the count value of<br />

seconds.<br />

It counts up when the sub-counter overflows.<br />

When data is written to this register, it is written to a buffer and then to the counter up to 2 clocks (fRTC) later. Set a<br />

decimal value of 00 to 59 to this register in BCD code.<br />

The SEC register can be set by an 8-bit memory manipulation instruction.<br />

Reset signal generation clears this register to 00H.<br />

Address: FFF52H After reset: 00H R/W<br />

Figure 7-8. Format of Second Count Register (SEC)<br />

Symbol 7 6 5 4 3 2 1 0<br />

SEC 0 SEC40 SEC20 SEC10 SEC8 SEC4 SEC2 SEC1<br />

Caution When it reads or writes from/to the register while the counter is in operation (RTCE = 1), follow<br />

the procedures described in the section 7.4.3 Reading/writing real-time clock.<br />

(7) Minute count register (MIN)<br />

The MIN register is an 8-bit register that takes a value of 0 to 59 (decimal) and indicates the count value of minutes.<br />

It counts up when the second counter overflows.<br />

When data is written to this register, it is written to a buffer and then to the counter up to 2 clocks (fRTC) later. Even<br />

if the second count register overflows while this register is being written, this register ignores the overflow and is set<br />

to the value written. Set a decimal value of 00 to 59 to this register in BCD code.<br />

The MIN register can be set by an 8-bit memory manipulation instruction.<br />

Reset signal generation clears this register to 00H.<br />

Address: FFF53H After reset: 00H R/W<br />

Figure 7-9. Format of Minute Count Register (MIN)<br />

Symbol 7 6 5 4 3 2 1 0<br />

MIN 0 MIN40 MIN20 MIN10 MIN8 MIN4 MIN2 MIN1<br />

Caution When it reads or writes from/to the register while the counter is in operation (RTCE = 1), follow<br />

the procedures described in the section 7.4.3 Reading/writing real-time clock.<br />

R01UH0317EJ0004 Rev. 0.04 465<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!