11. Protection - Renesas R8C Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for R8C Series:
Table of Contents

Advertisement

R8C/1A Group, R8C/1B Group

11. Protection

The protection function protects important registers from being easily overwritten when a program runs out of control.
Figure 11.1 shows the PRCR Register. The registers protected by the PRCR register are listed below.
• Registers protected by PRC0 bit: Registers CM0, CM1, and OCD, HRA0, HRA1, and HRA2
• Registers protected by PRC1 bit: Registers PM0 and PM1
• Registers protected by PRC3 bit: Registers VCA2, VW1C, and VW2C
Protect Register
b7 b6 b5 b4 b3 b2 b1 b0
0 0
0
Figure 11.1
PRCR Register
Rev.1.30
Dec 08, 2006
REJ09B0252-0130
Symbol
Address
000Ah
PRCR
Bit Symbol
Bit Name
Protect bit 0
PRC0
Protect bit 1
PRC1
Reserved bit
(b2)
Protect bit 3
PRC3
Reserved bits
(b5-b4)
Reserved bits
(b7-b6)
Page 77 of 315
After Reset
00h
Function
Writing to registers CM0, CM, OCD, HRA0, HRA1,
and HRA2 is enabled.
0 : Disables w riting.
1 : Enables w riting.
Writing to registers PM0 and PM1 is enabled.
0 : Disables w riting.
1 : Enables w riting.
Set to 0.
Writing to registers VCA2, VW1C, and VW2C is
enabled.
0 : Disables w riting.
1 : Enables w riting.
Set to 0.
When read, the content is 0.
11. Protection
RW
RW
RW
RW
RW
RW
RO

Advertisement

Table of Contents
loading

Table of Contents