R8C/1A Group, R8C/1B Group
11. Protection
Rev.1.30
Dec 08, 2006
Page 77 of 315
REJ09B0252-0130
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
Figure 11.1
PRCR Register
Protect Register
Symbol
Address
After Reset
PRCR
000Ah
00h
Bit Symbol
Bit Name
Function
RW
—
(b7-b6)
Reserved bits
When read, the content is 0.
RO
RW
—
(b5-b4)
Reserved bits
Set to 0.
RW
PRC3
Protect bit 3
Writing to registers VCA2, VW1C, and VW2C is
enabled.
0 : Disables w riting.
1 : Enables w riting.
b7 b6 b5 b4 b3 b2 b1 b0
0 0
0
PRC0
RW
PRC1
RW
Protect bit 0
Writing to registers CM0, CM, OCD, HRA0, HRA1,
and HRA2 is enabled.
0 : Disables w riting.
1 : Enables w riting.
Protect bit 1
Writing to registers PM0 and PM1 is enabled.
0 : Disables w riting.
1 : Enables w riting.
—
(b2)
Reserved bit
Set to 0.
RW