
R8C/14 Group, R8C/15 Group 10. Protection
Rev.2.10 Jan 19, 2006 Page 55 of 253
REJ09B0164-0210
10. Protection
Protection function protects important registers from being easily overwritten when a program runs out of
control. Figure 10.1 shows the PRCR Register. The following lists the registers protected by the PRCR
register.
• Registers protected by PRC0 bit : CM0, CM1, and OCD, HRA0, HRA1, HRA2 registers
• Registers protected by PRC1 bit : PM0 and PM1 registers
• Registers protected by PRC3 bit : VCA2, VW1C and VW2C registers
Figure 10.1 PRCR Register
Protect Registe
Symbol Address After Reset
PRCR
000Ah 00h
Bit Symbol Bit Name Function RW
—
(b2)
Reserved Bit Set to “0”
RW
PRC0 RW
PRC1 RW
Protect Bit 0 Writing to the CM0, CM, OCD, HRA0, HRA1 and
HRA2 registers is enabled.
0 : Disables w riting
1 : Enables writing
Protect Bit 1 Writing to the PM0 and PM1 registers is enabled.
0 : Disables w riting
1 : Enables writing
000
b3 b2 b1 b0b7 b6 b5 b4
RW
—
(b5-b4)
Reserved Bit Set to “0”
RW
PRC3
Protect Bit 3 Writing to the VCA2, VW1C and VW2C registers is
enabled.
0 : Disables w riting
1 : Enables writing
—
(b7-b6)
Reserved Bit When read, its content is “0”.
RO
Kommentare zu diesen Handbüchern