<?xml version="1.0" encoding="UTF-8"?>
<chip>
	<configure-file-ver>1.0</configure-file-ver>
	<chip-name>HS9069</chip-name>
	<chip-classes>IR MCU</chip-classes>
	<chip-id>CA</chip-id>
	<chip-id-debug>0</chip-id-debug>
	<chip-ver>0</chip-ver>
	<ccs-file-ver>4</ccs-file-ver>
	<ram-start-addr>0</ram-start-addr>
	<ram-size>64</ram-size>
	<otp-body-size>512</otp-body-size>
	<user-rom-size>512</user-rom-size>
	<reset-addr>0</reset-addr>
	<stack-level>3</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="64">
			<ram-segment start-addr="00" size="24" write-addr="00" read-addr="00" value-addr="00" visiable="false" bank="0"></ram-segment>
			<ram-segment start-addr="20" size="40" write-addr="20" read-addr="20" value-addr="20" visiable="true" bank="0"></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="9" default-value="1" 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="看门狗" width="1" offset="10" default-value="1" enable="true" config-index="0">
			<config-item-value name="Enable" value="0"></config-item-value>
			<config-item-value name="Disable" value="1"></config-item-value>
			<description>看门狗</description>
		</config-item>			
												
	</configs>
	
	
	<sfrs>
		<sfr>
			<reg name="ACC" addr="ff0" read-addr="ff0" write-addr="ff0" value-addr="ff0" 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="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="RP0" offset="5"></bit>
				<bit name="RP1" offset="6"></bit>
				<bit name="IRP" 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="PORTB" addr="06"  read-addr="06" write-addr="06" value-addr="06" addr-visiable="true" bank="0"></reg>
			<reg name="PCLATH" addr="0A"  read-addr="0a" write-addr="0a" value-addr="0a" addr-visiable="true" bank="0"></reg>
			
			<reg name="INTEN" addr="0B"  read-addr="0b" write-addr="0b" value-addr="0b" addr-visiable="true" bank="0">
				<bit name="--" offset="0"></bit>
				<bit name="PBIE" offset="1"></bit>
				<bit name="INTIE" offset="2"></bit>	
				<bit name="TC0IE" offset="3"></bit>
				<bit name="TP0IE" offset="4"></bit>	
				<bit name="INT1IE" offset="5"></bit>
				<bit name="--" offset="6"></bit>
				<bit name="GIE" offset="7"></bit>
			</reg>
			
			<reg name="INTFLAG" addr="0C"  read-addr="0c" write-addr="0c" value-addr="0c" addr-visiable="true" bank="0">
				<bit name="--" offset="0"></bit>
				<bit name="PBIF" offset="1"></bit>
				<bit name="INTIF" offset="2"></bit>	
				<bit name="TC0IF" offset="3"></bit>	
				<bit name="TP0IF" offset="4"></bit>	
				<bit name="INT1IF" offset="5"></bit>	
				<bit name="--" offset="6"></bit>
				<bit name="--" offset="7"></bit>
			</reg>
			
			<reg name="PDCON" addr="0E"  read-addr="0e" write-addr="0e" value-addr="0e" addr-visiable="true" bank="0"></reg>
			<reg name="ODCON" addr="0F"  read-addr="0f" write-addr="0f" value-addr="0f" addr-visiable="true" bank="0"></reg>
			<reg name="PHCON" addr="10"  read-addr="10" write-addr="10" value-addr="10" addr-visiable="true" bank="0"></reg>
			<reg name="TC0L" addr="11"  read-addr="11" write-addr="11" value-addr="11" addr-visiable="true" bank="0"></reg>
			<reg name="TC0M" addr="12"  read-addr="12" write-addr="12" value-addr="12" addr-visiable="true" bank="0"></reg>
	

			<reg name="OPTION" addr="81"  read-addr="ff4" write-addr="ff4" value-addr="ff4" addr-visiable="true" bank="1">
				<bit name="PS0" offset="0"></bit>
				<bit name="PS1" offset="1"></bit>	
				<bit name="PS2" offset="2"></bit>
				<bit name="--" offset="3"></bit>
				<bit name="--" offset="4"></bit>
				<bit name="--" offset="5"></bit>
				<bit name="INTEDGE" offset="6"></bit>	
				<bit name="INT1EDGE" offset="7"></bit>				
			</reg>
		</sfr>		
	</sfrs>	
	<insts>
		<inst name="call" value="1800" mask-value="1c00"/>
		<inst name="return" value="000c" mask-value="1fff"/>
		<inst name="return" value="0008" mask-value="1fff"/>
	</insts>
	<compilers>
		<compiler>	
			<compiler-item type="c" name="cc1" command-path="$(DevEnvDir)\cc1.exe">
				<option>-chip $(ChipName) -rom-size $(UserRomSize) -banks 1 -ram-bank 20-3F -common 30-3F -rst-addr 00h -int-addr 08h -tran-exe ptran4.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_2303 -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 20-3F -common 30-3F -rst-addr 00h -int-addr 08h -tran-exe ptran4.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>	
	</debugers>
	<editor-language>
		<c-lang name="c1-lang"/>
		<asm-lang name="asm2-lang"/>
	</editor-language>	
</chip>