[MCU]
SERIES = 2;MCU_1081:0 MCU_0431:1 MCU_3541:2 MCU_602:3
USE_CODE_MCU_FILE_CRC = 1

[COMMU_TYPE]
INIT_VALUE = 1
ITEM0_NAME = SWD
ITEM0_VALUE = 1

[ROM]
SIZE = 0x4000

[CHIP_ID]
ADDR = 0x0100

[FLASH_SC]
ADDR = 0x0020
SIZE = 4

[OPTION_INIT_VALUE]
0x0030 = 0x01
0x0039 = 0x02
0x003E = 0x00
0x003F = 0xFF

[OPTION0]
EN_NAME = ERST_EN
CH_NAME = 外部复位使能
INIT_VALUE = 0x00
ADDR = 0x0031
BIT_START = 0
BIT_END   = 0
ITEM0_NAME = 外部RST输入
ITEM1_NAME = P2.4为GPIO
ITEM0_EN_NAME = Enable
ITEM1_EN_NAME = Disable
ITEM0_VALUE = 0
ITEM1_VALUE = 1

[OPTION1]
EN_NAME = WAIT_TS
CH_NAME = 复位重读OPTION后等待时间
INIT_VALUE = 0x00
ADDR = 0x0038
BIT_START = 0
BIT_END   = 1
ITEM0_NAME = 8ms
ITEM1_NAME = 4ms
ITEM2_NAME = 1ms
ITEM3_NAME = 16ms
ITEM0_VALUE = 0
ITEM1_VALUE = 1
ITEM2_VALUE = 2
ITEM3_VALUE = 3

[OPTION2]
EN_NAME = BORVS
CH_NAME = BOR检测电压选择
INIT_VALUE = 0x02
ADDR = 0x0039
BIT_START = 0
BIT_END   = 2
ITEM0_NAME = 1.8V
ITEM1_NAME = 2.0V
ITEM2_NAME = 2.4V
ITEM3_NAME = 2.6V
ITEM4_NAME = 3.0V
ITEM5_NAME = 3.6V
ITEM6_NAME = 3.9V
ITEM7_NAME = 4.2V
ITEM0_VALUE = 0
ITEM1_VALUE = 1
ITEM2_VALUE = 2
ITEM3_VALUE = 3
ITEM4_VALUE = 4
ITEM5_VALUE = 5
ITEM6_VALUE = 6
ITEM7_VALUE = 7

[OPTION3]
EN_NAME = WDTEN
CH_NAME = 看门狗复位使能
INIT_VALUE = 0x00
ADDR = 0x003A
BIT_START = 0
BIT_END   = 0
ITEM0_NAME = 看门狗复位使能
ITEM1_NAME = 看门狗复位禁止
ITEM0_EN_NAME = Enable
ITEM1_EN_NAME = Disable
ITEM0_VALUE = 0
ITEM1_VALUE = 1

[OPTION4]
EN_NAME = RVCFG
CH_NAME = 第二复位向量配置
INIT_VALUE = 0x00
ADDR = 0x003E
BIT_START = 0
BIT_END   = 7
ITEM0_NAME = 0x0000
ITEM1_NAME = 0x2000
ITEM2_NAME = 0x3000
ITEM3_NAME = 0x3800
ITEM4_NAME = 0x3C00
ITEM0_VALUE = 0x00;0000;16K
ITEM1_VALUE = 0x88;1000;8K
ITEM2_VALUE = 0x8C;1100;4K
ITEM3_VALUE = 0x8E;1110;2K
ITEM4_VALUE = 0x8F;1111;1K

[OPTION5]
EN_NAME = nRVCFG
ADDR = 0x003F
COMPLEMENT = 1
COMPLEMENT_ADDR = 0x003E

[MODE_ENABLE]
JTAG_OR_SWD = 1
ISP_V01     = 0
ISP_V02     = 0

[JTAGForCHIP_ID]
JTAGForCHIP_ID0 = 0x24
JTAGForCHIP_ID1 = 0x68
JTAGForCHIP_ID2 = 0x6A
JTAGForCHIP_ID3 = 0x73

[PM51_MODE0]
CODE_E   = 1
DATA_E   = 1
BOOT_E   = 0
OPTION_E = 1
CODE_B   = 1
DATA_B   = 1
BOOT_B   = 0
OPTION_B = 1
CODE_P   = 1
DATA_P   = 1
BOOT_P   = 0
OPTION_P = 1
CODE_V   = 1
DATA_V   = 1
BOOT_V   = 0
OPTION_V = 1
CodeEraseMode   = 1
OPTIONEraseMode = 1
CODEStartAddr   = 0x0000
DATAStartAddr   = 0x0000
BOOTStartAddr   = 0x0000
OPTIONStartAddr = 0x0000

[IND_SFRADDR0]
IND_SFRADDR0[0]  = 0x0D
IND_SFRADDR0[0]ForAllBlock = 0x0C
IND_SFRADDR0[1]  = 0x94
IND_SFRADDR0[2]  = 0x0D
IND_SFRADDR0[3]  = 0x94
IND_SFRADDR0[6]  = 0x0D
IND_SFRADDR0[7]  = 0x94
IND_SFRADDR0[8]  = 0x0D
IND_SFRADDR0[9]  = 0x94
IND_SFRADDR0[10] = 0x0E
IND_SFRADDR0[11] = 0x94
IND_SFRADDR0[14] = 0x0E
IND_SFRADDR0[15] = 0x94
IND_SFRDATA0[0]  = 0xD2
IND_SFRDATA0[0]ForAllBlock = 0xC3
IND_SFRDATA0[1]  = 0x95
IND_SFRDATA0[2]  = 0xD2
IND_SFRDATA0[3]  = 0x95
IND_SFRDATA0[6]  = 0xD2
IND_SFRDATA0[7]  = 0x95
IND_SFRDATA0[8]  = 0x00
IND_SFRDATA0[9]  = 0x95
IND_SFRDATA0[10] = 0xAA
IND_SFRDATA0[11] = 0x95
IND_SFRDATA0[14] = 0xA5
IND_SFRDATA0[15] = 0x95

[DataBootOption_FLAG]
EB_DBO_FLAG[0] = 0x01
EB_DBO_FLAG[1] = 0x00
EB_DBO_FLAG[2] = 0x03
PV_DBO_FLAG[0] = 0x01
PV_DBO_FLAG[1] = 0x00
PV_DBO_FLAG[2] = 0x03

[EB_SECTOR_SIZE]
EB_SECTOR_SIZEInCodeArea   = 0x0080
EB_SECTOR_SIZEInDataArea   = 0x0004
EB_SECTOR_SIZEInBootArea   = 0x0000
EB_SECTOR_SIZEInOptionArea = 0x0080

[EB_SECTOR_NUM]
EB_SECTOR_NUMInOneCodeBlock   = 0x08
EB_SECTOR_NUMInOneDataBlock   = 0x20
EB_SECTOR_NUMInOneBootBlock   = 0x00
EB_SECTOR_NUMInOneOptionBlock = 0x01

[PV_SECTOR_SIZE]
PV_SECTOR_SIZEInCodeArea   = 0x0400
PV_SECTOR_SIZEInDataArea   = 0x0080
PV_SECTOR_SIZEInBootArea   = 0x0000
PV_SECTOR_SIZEInoptionArea = 0x0080

[PV_SECTOR_NUM]
PV_SECTOR_NUMInOneCodeBlock   = 0x01
PV_SECTOR_NUMInOneDataBlock   = 0x01
PV_SECTOR_NUMInOneBootBlock   = 0x00
PV_SECTOR_NUMInOneOptionBlock = 0x01

[FLASH_BLANKValue]
FLASH_BLANKValueInCodeArea   = 0x00
FLASH_BLANKValueInDataArea   = 0x00
FLASH_BLANKValueInBootArea   = 0x00
FLASH_BLANKValueInoptionArea = 0x00

[SN_ID]
SN_Enable  =  1
ID_Enable  =  1
SN_IncMode =  1
ID_IncMode =  1
SN_ADDRESS =  0x0000
ID_ADDRESS =  0x0008
SN_SIZE    =  8
ID_SIZE    =  8
SN_STEP	   =  0
ID_STEP	   =  0

[IND_SFRADDR1_DATA1]
IND_SFRADDR1 = 0x940E
IND_SFRDATA1 = 0x95A5

[PM51OperataInfoInEEProm]
FUN_EEPROM_EN_FLAG = 0x01
PORTime            = 0xF4
DACKMaxCount       = 0x03E8
PowerDownTime      = 0x01
JTAGTckTime        = 0x08

[EraseSelect]
CodeEraseTime   = 0x05
CodeEraseTimeForAllBlock = 0x28
DataEraseTime   = 0x01
BootEraseTime   = 0x00
OptionEraseTime = 0x05

[AddressAssign]
CodeAddress   = 0x20000
DataAddress   = 0x1A000
BootAddress   = 0x1C000
OptionAddress = 0x1E000

[Calibration]
VREF_CALIBRATE_BASE_VALUE =  2000
VREF_CALIBRATE_PRECISION  =  5
IRC_CALIBRATE_BASE_VALUE  =  500000
IRC_CALIBRATE_PRECISION   =  1500