<?xml version="1.0" encoding="UTF-8"?>
<chip>
	<configure-file-ver>1.0</configure-file-ver>
	<chip-name>HS23P6620</chip-name>
	<chip-classes>ADC MCU</chip-classes>
	<chip-id>73</chip-id>
	<chip-ver>0</chip-ver>
	<ccs-file-ver>4</ccs-file-ver>
	<ram-start-addr>0</ram-start-addr>
	<ram-size>256</ram-size>
	<otp-body-size>2048</otp-body-size>
	<user-rom-size>1024</user-rom-size>
	<reset-addr>0</reset-addr>
	<stack-level>8</stack-level>
	<config-word-count>5</config-word-count>	
	<max-breakpoint>16</max-breakpoint>	
	<asm-inc>$(DevEnvDir)\asm_inc\$(ChipName).inc</asm-inc>
	<clang-inc>$(DevEnvDir)\include\$(ChipName).h</clang-inc>			
	<description></description>
	<configs>
		<config-word index="0" or-value="0000" and-value="ffff" mapto="0"></config-word>	
		<config-word index="1" or-value="0000" and-value="ffff" mapto="1"></config-word>		
		<config-word index="2" or-value="0000" and-value="ffff" mapto="3"></config-word>		
		
		<config-item name="RTC" width="1" offset="13" default-value="0" enable="true" config-index="0">
			<config-item-value name="Disable" value="0"></config-item-value>
			<config-item-value name="Enable" value="1"></config-item-value>
			<description>
			=Enable时，外部接入32K的振荡器会起振，同时端口功能无效。
			</description>
		</config-item>
		<config-item name="LVD" width="2" offset="11" default-value="0" enable="true" config-index="0">
			<config-item-value name="LVD_H" value="2"></config-item-value>
			<config-item-value name="LVD_M" value="1"></config-item-value>
			<config-item-value name="LVD_L" value="0"></config-item-value>
			<description>
			LVD_H:等价于LVD36_EN使能
			LVD_M:等价于LVD24_EN使能
			LVD_L:等价于LVD36 LVD24关闭
			</description>
		</config-item>
		<config-item name="RST TIME" width="2" offset="9" default-value="0" enable="true" config-index="0">
			<config-item-value name="18ms" value="0"></config-item-value>
			<config-item-value name="36ms" value="1"></config-item-value>
			<config-item-value name="72ms" value="2"></config-item-value>
			<config-item-value name="144ms" value="3"></config-item-value>
			<description>
			复位时间选择：为Enable时，WDT在睡眠模式和绿色模式时无效
			</description>
		</config-item>
		<config-item name="RST PIN" width="1" offset="8" default-value="0" enable="true" config-index="0">
			<config-item-value name="IO" value="0"></config-item-value>
			<config-item-value name="Reset Pin" value="1"></config-item-value>
			<description>P51是否作为复位脚</description>
		</config-item>	
		<config-item name="WDT" width="2" offset="5" default-value="2" enable="true" config-index="0">
			<config-item-value name="Always on" value="0"></config-item-value>
			<config-item-value name="Disable when sleep" value="1"></config-item-value>
			<config-item-value name="Disable" value="2"></config-item-value>
			<description>看门狗使能</description>
		</config-item>	
		<config-item name="Fcpu" width="3" offset="2" default-value="0" enable="true" config-index="0">
			<config-item-value name="Fcpu = Fosc/2" value="0"></config-item-value>
			<config-item-value name="Fcpu = Fosc/4" value="1"></config-item-value>
			<config-item-value name="Fcpu = Fosc/8" value="2"></config-item-value>
			<config-item-value name="Fcpu = Fosc/16" value="3"></config-item-value>
			<config-item-value name="Fcpu = Fosc/32" value="4"></config-item-value>
			<config-item-value name="Fcpu = Fosc/64" value="5"></config-item-value>
			<description>系统时钟分频</description>
		</config-item>
		<config-item name="PROTECT" width="1" offset="1" default-value="0" enable="true" config-index="0">
			<config-item-value name="Disable" value="0"></config-item-value>
			<config-item-value name="Enable" value="1"></config-item-value>
			<description>芯片数据保护功能，加密后数据无法读出来</description>
		</config-item>	
		<config-item name="P4PD" width="1" offset="0" default-value="1" enable="true" config-index="0">
			<config-item-value name="Disable" value="1"></config-item-value>
			<config-item-value name="Enable" value="0"></config-item-value>
			<description>噪声抑制</description>
		</config-item>	
		<config-item name="OTP读占空比" width="2" offset="1" default-value="0" enable="true" config-index="1">
			<config-item-value name="全指令周期" value="0"></config-item-value>
			<config-item-value name="半指令周期" value="2"></config-item-value>
			<config-item-value name="1/4指令周期" value="3"></config-item-value>
			<description>
			1/4指令周期:在单指令芯片中不适用，如果选中，则还是半指令周期
			</description>
		</config-item>	
		<config-item name="低功耗" width="1" offset="0" default-value="0" enable="true" config-index="1">
			<config-item-value name="Disable" value="0"></config-item-value>
			<config-item-value name="Enable" value="1"></config-item-value>
			<description>
			在低频时使用，有效时可以大幅降低功耗
			</description>
		</config-item>			
		<config-item name="HIRC频率" width="1" offset="8" default-value="0" enable="true" config-index="2">
			<config-item-value name="8M" value="0"></config-item-value>
			<config-item-value name="16M" value="1"></config-item-value>
			<description>
			</description>
		</config-item>		
		<config-item name="P00驱动" width="1" offset="6" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P00驱动选择</description>
		</config-item>	
		<config-item name="P01驱动" width="1" offset="7" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P01驱动选择</description>
		</config-item>	
		<config-item name="P02驱动" width="1" offset="8" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P02驱动选择</description>
		</config-item>	
		<config-item name="P03驱动" width="1" offset="9" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P03驱动选择</description>
		</config-item>	
		<config-item name="P04驱动" width="1" offset="10" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P04驱动选择</description>
		</config-item>	
		<config-item name="P05驱动" width="1" offset="11" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P05驱动选择</description>
		</config-item>	
		<config-item name="P06驱动" width="1" offset="12" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P06驱动选择</description>
		</config-item>	
		<config-item name="P07驱动" width="1" offset="13" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P07驱动选择</description>
		</config-item>	
		<config-item name="P40驱动" width="1" offset="4" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P40驱动选择</description>
		</config-item>		
		<config-item name="P41驱动" width="1" offset="5" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P41驱动选择</description>
		</config-item>				
		<config-item name="P51,P52驱动" width="1" offset="3" default-value="0" enable="true" config-index="1">
			<config-item-value name="10mA" value="0"></config-item-value>
			<config-item-value name="20mA" value="1"></config-item-value>
			<description>P51,P52驱动选择</description>
		</config-item>				
	</configs>
	
	<compilers>
		<compiler>	
			<compiler-item type="c" name="cc2" command-path="$(DevEnvDir)\cc2.exe">
				<option>-chip-name $(ChipName) -chip-ver $(ChipVer) -chip-id $(ChipID) -file-ver $(CCSFileVer) -rom-size $(UserRomSize) -debug false -c h1 -clean-ram false -prj-name "$(ProjectName)" -work-dir "$(ProjectDir)" -output-dir "$(OutDir)" -config "$(ConfigWord)" -lib "$GetFiles('.lib',';')"  -inc-dir "$GetFolders(';')" -src-files "$GetFiles('.c',';')" -inc-files "$GetFiles('.h;.inc',';')"</option>
				<action-before-compile>
				</action-before-compile> 
				<action-after-compile >
					<action-item  name="ccs_e" command-path="$(DevEnvDir)\ccs_e.exe">"$(ProjectDir)\$(ProjectName).ccs" -E</action-item>
				</action-after-compile>
			</compiler-item>
			<compiler-item type="asm" name="ac0" command-path="$(DevEnvDir)\ac0.exe">
				<option>-chip $(ChipName) -rom-size $(UserRomSize) -ram-start $(RamStartAddr) -ram-size $(RamSize) -reset-addr $(ResetAddr) -inst-set INST_SET_8F22E8 -otp-body-size $(OtpBodySize) -debug false -symbol-file true  -listfile true -workdir "$(ProjectDir)" -include-path "$GetFolders(';')" -file "$(EntryFile)" -output "$(OutDir)" -project-name "$(ProjectName)" -config "$(ConfigWord)"</option>
				<action-before-compile>
				</action-before-compile>
				<action-after-compile>
					<action-item  name="ccs_e" command-path="$(DevEnvDir)\ccs_e.exe">"$(ProjectDir)\$(ProjectName).ccs" -E</action-item>
				</action-after-compile>
			</compiler-item>
			<compiler-item type="c" name="cc2" out-type="lib" command-path="$(DevEnvDir)\cc2.exe">
				<option>-chip-name $(ChipName) -chip-ver $(ChipVer) -chip-id $(ChipID) -file-ver $(CCSFileVer) -rom-size $(UserRomSize) -debug false  -c h1 -clean-ram false -prj-name "$(ProjectName)"  -out-type $(ProjectType) -work-dir "$(ProjectDir)" -output-dir "$(OutDir)" -config "$(ConfigWord)" -lib "$GetFiles('.lib',';')"  -inc-dir "$GetFolders(';')" -src-files "$GetFiles('.c',';')" -inc-files "$GetFiles('.h;.inc',';')"</option>
			</compiler-item>			
		</compiler>	
	</compilers>
	<editor-language>
		<c-lang name="c2-lang"/>
		<asm-lang name="asm3-lang"/>
	</editor-language>	
</chip>