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.

<br />

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 />

Year count<br />

register<br />

(YEAR)<br />

(8-bit)<br />

Real-time clock control register 1<br />

WALE WALIE WAFG<br />

1 month<br />

Month count<br />

register<br />

(MONTH)<br />

(5-bit)<br />

RIFG RWST RWAIT<br />

Alarm week<br />

register<br />

(ALARMWW)<br />

(7-bit)<br />

Week count<br />

register<br />

(WEEK)<br />

(3-bit)<br />

Figure 7-1. Block Diagram of Real-time Clock<br />

1 day<br />

Day count<br />

register<br />

(DAY)<br />

(6-bit)<br />

Alarm hour<br />

register<br />

(ALARMWH)<br />

(6-bit)<br />

AMPM<br />

1 hour<br />

Hour count<br />

register<br />

(HOUR)<br />

(6-bit)<br />

Buffer Buffer Buffer Buffer Buffer Buffer Buffer<br />

Real-time clock control register 0<br />

RTCE RCLOE1 AMPM CT2 CT1 CT0<br />

RTC clock selection<br />

RTCCL7 RTCCL6 RTCCKS1 RTCCKS0<br />

register (RTCCL)<br />

Internal bus<br />

Alarm minute<br />

register<br />

(ALARMWM)<br />

(7-bit)<br />

1 minute<br />

Minute count<br />

register<br />

(MIN)<br />

(7-bit)<br />

R01UH0317EJ0004 Rev. 0.04 457<br />

Feb. 22, 2013<br />

Second<br />

count<br />

register<br />

(SEC)<br />

(7-bit)<br />

RWST RWAIT<br />

Wait control<br />

Count enable/<br />

disable circuit<br />

RTCE<br />

RIFG<br />

0.5<br />

seconds<br />

Sub-count<br />

register<br />

(16-bit)<br />

RTC1HZ<br />

Watch error<br />

corrention<br />

register<br />

(SUBCUD(8-bit)<br />

/SUBCUDW<br />

(16-bit))<br />

CT0 to CT2<br />

fRTC<br />

INTRTC<br />

Selector<br />

Selector<br />

fSUB<br />

fIL<br />

fMX/122<br />

fMX/128<br />

fMX/244<br />

fMX/256<br />

fIH/122<br />

fIH/128<br />

fIH/244<br />

fIH/256<br />

RTCCL7, 6, RTCCK1, 0<br />

<br />

Caution The count of year, month, week, day, hour, minutes and second can only be performed when a<br />

subsystem clock (fSUB = 32.768 kHz) or the divided clock of fMX and fIH nearly equal to 32.768kHz<br />

is selected as the operation clock of the real-time clock.<br />

When the low-speed oscillation clock (fIL = 15 kHz) is selected, only the constant-period interrupt<br />

function is available. However, the constant-period interrupt interval when fIL is selected will be<br />

calculated with the constant-period (the value selected with RTCC0 register) × fSUB/fIL.

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

Saved successfully!

Ooh no, something went wrong!