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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Under development<br />

Preliminary document<br />

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

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 25 SAFETY FUNCTIONS<br />

25.3.5 SFR guard function<br />

In order to guarantee safety during operation, the IEC61508 standard mandates that important SFRs be protected from<br />

being overwritten, even if the CPU freezes.<br />

This SFR guard function is used to protect data in the control registers used by the port function, interrupt function,<br />

clock control function, voltage detection function, and RAM parity error detection function.<br />

If the SFR guard function is specified, writing to the specified SFRs is disabled, but reading from the SFRs can be<br />

carried out as usual.<br />

<br />

(1) Invalid memory access detection control register (IAWCTL)<br />

This register is used to control the detection of invalid memory access and RAM/SFR guard function.<br />

GPORT, GINT and GCSC bits are used in SFR guard function.<br />

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

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

Figure 25-9. Format of Invalid Memory Access Detection Control Register (IAWCTL)<br />

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

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

IAWCTL IAWEN 0 GRAM1 GRAM0 0 GPORT GINT GCSC<br />

GPORT Control registers of port function guard<br />

0 Disabled. Control registers of port function can be read or written to.<br />

1 Enabled. Writing to control registers of port function is disabled. Reading is enabled.<br />

[Guarded SFR] PMxx, PUxx, PIMxx, POMxx, TISxx/TOSxx, TISELSE, STSELx, SGSEL, RTCSEL,<br />

Note 1<br />

LCDPFxx, SMPC and ADPC<br />

GINT Registers of interrupt function guard<br />

0 Disabled. Registers of interrupt function can be read or written to.<br />

1 Enabled. Writing to registers of interrupt function is disabled. Reading is enabled.<br />

[Guarded SFR] IFxx, MKxx, PRxx, EGPx and EGNx<br />

GCSC Note 2 Control registers of clock control function, voltage detector and RAM parity error detection function guard<br />

0 Disabled. Control registers of clock control function, voltage detector and RAM parity error detection<br />

function can be read or written to.<br />

1 Enabled. Writing to control registers of clock control function, voltage detector and RAM parity error<br />

detection function is disabled. Reading is enabled.<br />

[Guarded SFR] CMC, CSC, OSTS, CKC, PERx, OSMC, LVIM, LVIS, PCKSEL, MDIV and RPECTL<br />

Notes 1. Pxx (Port register) is not guarded.<br />

2. Clear GCSC bit to 0, during self programming /serial programming.<br />

R01UH0317EJ0004 Rev. 0.04 1142<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!