C8051F50x-F51x
C2 Register Definition 28.4. FPCTL: C2 Flash Programming Control
Bit
7
6
5
4
3
2
1
0
FPCTL[7:0]
R/W
Name
Type
Reset
0
0
0
0
0
0
0
0
C2 Address: 0x02
Bit Name
7:0 FPCTL[7:0] Flash Programming Control Register.
Function
This register is used to enable Flash programming via the C2 interface. To enable C2
Flash programming, the following codes must be written in order: 0x02, 0x01. Note
that once C2 Flash programming is enabled, a system reset must be issued to
resume normal operation.
C2 Register Definition 28.5. FPDAT: C2 Flash Programming Data
Bit
7
6
5
4
3
2
1
0
FPDAT[7:0]
R/W
Name
Type
Reset
0
0
0
0
0
0
0
0
C2 Address: 0xB4
Bit Name
7:0 FPDAT[7:0] C2 Flash Programming Data Register.
Function
This register is used to pass Flash commands, addresses, and data during C2 Flash
accesses. Valid commands are listed below.
Code
0x06
0x07
0x08
0x03
Command
Flash Block Read
Flash Block Write
Flash Page Erase
Device Erase
308
Rev. 1.1