<?xml version="1.0" encoding="UTF-8"?>
<chip>
	<configure-file-ver>1.0</configure-file-ver>
	<chip-name>HS2300-P</chip-name>
	<chip-classes>GPIO</chip-classes>
	<chip-id>2B</chip-id>
	<chip-ver>0</chip-ver>
	<ccs-file-ver>4</ccs-file-ver>
	<ram-start-addr>0</ram-start-addr>
	<ram-size>80</ram-size>
	<otp-body-size>2048</otp-body-size>
	<user-rom-size>1024</user-rom-size>
	<reset-addr>7FF</reset-addr>
	<stack-level>5</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>
	<rams>
		<ram start-addr="0" length="80">
			<ram-segment start-addr="00" size="16" write-addr="00" read-addr="00" value-addr="00" visiable="false" bank="0"></ram-segment>
			<ram-segment start-addr="10" size="64" write-addr="10" read-addr="10" value-addr="10" visiable="true" bank="0"></ram-segment>
			<ram-segment start-addr="8000" size="16" write-addr="8000" read-addr="8000" value-addr="8000" visiable="false" bank="-1"></ram-segment>		
		</ram>	
	</rams>
	<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-item name="加密" width="1" offset="1" default-value="1" 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="复位引脚" width="1" offset="12" default-value="1" enable="true" config-index="0">
			<config-item-value name="As RESET Pin" value="0"></config-item-value>
			<config-item-value name="As IO" value="1"></config-item-value>
			<description>PB3功能</description>
		</config-item>
		<config-item name="看门狗" width="1" offset="0" default-value="1" 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="OSC Pin" width="1" offset="11" default-value="0" enable="true" config-index="0">
			<config-item-value name="As IO" value="0"></config-item-value>
			<config-item-value name="As OSCO" value="1"></config-item-value>
			<description>PB4功能</description>
		</config-item>		
		<config-item name="分频数选择" width="2" offset="2" default-value="2" enable="true" config-index="1">
			<config-item-value name="4分频" value="0"></config-item-value>
			<config-item-value name="2分频" value="2"></config-item-value>
			<config-item-value name="8分频" value="3"></config-item-value>
			<description>系统分频</description>
		</config-item>			
		<config-item name="振荡频率模式" width="3" offset="0" default-value="3" enable="true" config-index="0">
			<config-item-value name="ERC" value="0"></config-item-value>
			<config-item-value name="ERIC" value="1"></config-item-value>
			<config-item-value name="IRC" value="3"></config-item-value>
			<config-item-value name="LF" value="4"></config-item-value>
			<config-item-value name="XT" value="5"></config-item-value>
			<config-item-value name="HF" value="6"></config-item-value>
			<description>时钟源选择</description>
		</config-item>				
		<config-item name="复位时间" width="3" offset="8" default-value="3" enable="true" config-index="0">
			<config-item-value name="PWRT=WDT=18ms" value="0"></config-item-value>
			<config-item-value name="PWRT=WDT=4.5ms" value="1"></config-item-value>
			<config-item-value name="PWRT=WDT=288ms" value="2"></config-item-value>
			<config-item-value name="PWRT=WDT=72ms" value="3"></config-item-value>
			<config-item-value name="PWRT=640us,WDT=18ms" value="4"></config-item-value>
			<config-item-value name="PWRT=640us,WDT=4.5ms" value="5"></config-item-value>
			<config-item-value name="PWRT=640us,WDT=288ms" value="6"></config-item-value>
			<config-item-value name="PWRT=640us,WDT=72ms" value="7"></config-item-value>
			<description>PWRT</description>
		</config-item>
		<config-item name="内置RC频率" width="2" offset="6" default-value="1" enable="true" config-index="0">
			<config-item-value name="4M" value="0"></config-item-value>
			<config-item-value name="8M" value="1"></config-item-value>
			<config-item-value name="1M" value="2"></config-item-value>
			<config-item-value name="455K" value="3"></config-item-value>
			<description>FIRC</description>
		</config-item>	
		<config-item name="低压检测" width="3" offset="3" default-value="2" enable="true" config-index="0">
			<config-item-value name="Disable" value="0"></config-item-value>
			<config-item-value name="2.0v,sleep控制" value="1"></config-item-value>
			<config-item-value name="2.0v" value="2"></config-item-value>
			<config-item-value name="3.6v" value="3"></config-item-value>
			<config-item-value name="1.8v" value="4"></config-item-value>
			<config-item-value name="2.2v" value="5"></config-item-value>
			<config-item-value name="2.4v" value="6"></config-item-value>
			<config-item-value name="2.6v" value="7"></config-item-value>
			<description>LVD</description>
		</config-item>
		<config-item name="电源模式" width="1" offset="4" default-value="0" enable="true" config-index="1">
			<config-item-value name="省电" value="1"></config-item-value>
			<config-item-value name="不省电" value="0"></config-item-value>
			<description>读端口</description>
		</config-item>		
		<config-item name="读端口" width="1" offset="5" default-value="0" enable="true" config-index="1">
			<config-item-value name="Form register" value="0"></config-item-value>
			<config-item-value name="Form Pins" value="1"></config-item-value>
			<description>读端口</description>
		</config-item>		
		<config-item name="施密特" width="1" offset="6" default-value="0" enable="true" config-index="1">
			<config-item-value name="有" value="0"></config-item-value>
			<config-item-value name="无" value="1"></config-item-value>
			<description>管脚施密特</description>
		</config-item>					
		<config-item name="PB3开漏输出" width="1" offset="7" default-value="1" enable="true" config-index="1">
			<config-item-value name="开漏" value="0"></config-item-value>
			<config-item-value name="不开漏" value="1"></config-item-value>
			<description>读周期选择</description>
		</config-item>		
	</configs>
	
	
	<sfrs>
		<sfr>
			<reg name="OPTION" addr="8001"  read-addr="8001" write-addr="8001" value-addr="8001" addr-visiable="false" bank="-1">
				<bit name="PS0" offset="0"></bit>
				<bit name="PS1" offset="1"></bit>
				<bit name="PS2" offset="2"></bit>
				<bit name="PSA" offset="3"></bit>
				<bit name="T0SE" offset="4"></bit>
				<bit name="T0CE" offset="5"></bit>
				<bit name="INTEDG" offset="6"></bit>
				<bit name="--" offset="7"></bit>
			</reg>
			
			<reg name="ACC" addr="8007" read-addr="8007" write-addr="8007" value-addr="8007" addr-visiable="false" bank="-1"></reg>
			<reg name="INDF" addr="00" read-addr="00" write-addr="00" value-addr="00" addr-visiable="true" bank="0"></reg>
			<reg name="TMR0" addr="01"  read-addr="01" write-addr="01" value-addr="01" addr-visiable="true" bank="0"></reg>
			<reg name="PCL" addr="02" read-addr="02" write-addr="02" value-addr="02" addr-visiable="true" bank="0"></reg>
			
			<reg name="STATUS" addr="03" read-addr="03" write-addr="03" value-addr="03" addr-visiable="true" bank="0">
				<bit name="C" offset="0"></bit>
				<bit name="DC" offset="1"></bit>
				<bit name="Z" offset="2"></bit>
				<bit name="PD" offset="3"></bit>
				<bit name="TO" offset="4"></bit>
				<bit name="GP0" offset="5"></bit>
				<bit name="GP1" offset="6"></bit>
				<bit name="RST" offset="7"></bit>
			</reg>
			
			<reg name="FSR" addr="04"  read-addr="04" write-addr="04" value-addr="04" addr-visiable="true" bank="0"></reg>	
			<reg name="PORTA" addr="05"  read-addr="05" write-addr="05" value-addr="05" addr-visiable="true" bank="0"></reg>
			<reg name="PORTB" addr="06"  read-addr="06" write-addr="06" value-addr="06" addr-visiable="true" bank="0"></reg>
			<reg name="TRISA" addr="8005"  read-addr="8005" write-addr="8005" value-addr="8005" addr-visiable="false" bank="0"></reg>
			<reg name="TRISB" addr="8006" read-addr="8006" write-addr="8006" value-addr="8006" addr-visiable="false" bank="0"></reg>	
			<reg name="PCON" addr="08" read-addr="08" write-addr="08" value-addr="08" addr-visiable="true" bank="0">
				<bit name="--" offset="0"></bit>
				<bit name="--" offset="1"></bit>
				<bit name="--" offset="2"></bit>
				<bit name="--" offset="3"></bit>
				<bit name="--" offset="4"></bit>
				<bit name="LVDTE" offset="5"></bit>
				<bit name="EIS" offset="6"></bit>
				<bit name="WDTE" offset="7"></bit>
			</reg>

			<reg name="WUCON" addr="09" read-addr="09" write-addr="09" value-addr="09" addr-visiable="true" bank="0"></reg>				
			<reg name="PCHBUF" addr="0A"  read-addr="0a" write-addr="0a" value-addr="0a" addr-visiable="true" bank="0"></reg>
			<reg name="PDCON" addr="0B"  read-addr="0B" write-addr="0B" value-addr="0B" addr-visiable="true" bank="0"></reg>
			<reg name="ODCON" addr="0C"  read-addr="0C" write-addr="0C" value-addr="0C" addr-visiable="true" bank="0"></reg>
			<reg name="PHCON" addr="0D"  read-addr="0D" write-addr="0D" value-addr="0D" addr-visiable="true" bank="0"></reg>

			
			<reg name="INTEN" addr="0E"  read-addr="0E" write-addr="0E" value-addr="0E" addr-visiable="true" bank="0">
				<bit name="T0IE" offset="0"></bit>
				<bit name="PBIE" offset="1"></bit>
				<bit name="INTIE" offset="2"></bit>	
				<bit name="--" offset="3"></bit>
				<bit name="--" offset="4"></bit>	
				<bit name="--" offset="5"></bit>
				<bit name="--" offset="6"></bit>
				<bit name="GIE" offset="7"></bit>
			</reg>
			
			<reg name="INTFLAG" addr="0F"  read-addr="0F" write-addr="0F" value-addr="0F" addr-visiable="true" bank="0">
				<bit name="T0IF" offset="0"></bit>
				<bit name="PBIF" offset="1"></bit>
				<bit name="INTIF" offset="2"></bit>	
				<bit name="--" offset="3"></bit>	
				<bit name="--" offset="4"></bit>	
				<bit name="--" offset="5"></bit>	
				<bit name="--" offset="6"></bit>
				<bit name="--" offset="7"></bit>
			</reg>
		</sfr>	
	</sfrs>
	<insts>
		<inst name="call" value="1000" mask-value="3800"/>
		<inst name="return" value="007c" mask-value="3fff"/>
		<inst name="return" value="007e" mask-value="3fff"/>
		<inst name="return" value="3c00" mask-value="3c00"/>
	</insts>
	<compilers>
		<compiler>	
			<compiler-item type="c" name="cc1" command-path="$(DevEnvDir)\cc1.exe">
				<option>-chip $(ChipName) -rom-size $(UserRomSize) -banks 1 -ram-bank 10-4f -common 07-08 -rst-addr 00h -int-addr 08h -tran-exe ptran1.exe  -debug false  -prj-name "$(ProjectName)" -work-dir "$(ProjectDir)" -output-dir "$(OutDir)" -picc-path "$(CompilerPath)" -config "$(ConfigWord)" -out-type $(ProjectType) "-I$(DevEnvDir)\include" $AddEndponitStrForeach('"','"',$AddEndponitStrForeach('-I','',$GetFolders('?'),'?','?'),'?',' ') $AddEndponitStrForeach('"','"',$GetFiles('.c;.lpp','?'),'?',' ')</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_FM153 -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="cc1" out-type="lib" command-path="$(DevEnvDir)\cc1.exe">
				<option>-chip $(ChipName) -rom-size $(UserRomSize) -banks 1 -ram-bank 10-4f -common 07-08 -rst-addr 00h -int-addr 08h -tran-exe ptran1.exe  -debug false  -prj-name "$(ProjectName)" -work-dir "$(ProjectDir)" -output-dir "$(OutDir)" -picc-path "$(CompilerPath)" -config "$(ConfigWord)" -out-type $(ProjectType) "-I$(DevEnvDir)\include" $AddEndponitStrForeach('"','"',$AddEndponitStrForeach('-I','',$GetFolders('?'),'?','?'),'?',' ') $AddEndponitStrForeach('"','"',$GetFiles('.c;.lpp','?'),'?',' ')</option>
			</compiler-item>			
		</compiler>	
	</compilers>
	<debugers>
		<debuger>
			<debuger-asm>ac0</debuger-asm>
			<debuger-c>picc</debuger-c>
			<device type="1" version="0">
				<simulator type="1" version="0" code-first="true" config-item="true" config-item-id="0">
					<pc-addr pcl="02" pch="8002" />
					<config-word-addr>800</config-word-addr>
				</simulator>
			</device>
			<action-before-debug-start></action-before-debug-start>
			<action-after-debug-start></action-after-debug-start>
		</debuger>		
	</debugers>
	<editor-language>
		<c-lang name="c1-lang"/>
		<asm-lang name="asm1-lang"/>
	</editor-language>	
</chip>