<root>
<document schema='101' license='1,siliconchip,X4H0GQ' title='hex to decimal to binary' description='' target='PIC.16F.16F690' >
	<config data='!0,30d4%0,4%3,0%4,1%5,0%6,1%7,1%8,0%a,0%b,0' clkspd='8000000' simspd='1' usewdt='1' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='19' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='OSCCON = 0x75' body='' />
	<debug >
		<watch expr='key' />
		<watch expr='number' />
		<watch expr='display_value' />
		<watch expr='hex' />
		<watch expr='binary' />
		<watch expr='registervalue' />
		<watch expr='binary.binaryvalue' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='72b8cbb4-f0f6-4a24-bd0b-a406989274cd' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='reset' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='key' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='hex' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_value' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='7' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='number' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='registervalue' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='binary' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='count' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='remainder' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='reversebin' type='T8' description='' isconst='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
							<array size='16' />
						</local>
						<local name='BinaryResult' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='tempstring' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='1' />
						</local>
						<local name='binaryvalue' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='16' />
						</local>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.count = 0' />
						</command>
						<command class_type='comment' title='' comment='loop set to 12 to allow 12 bit
to be checked and displayed' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='comment' title='' comment='.count, .remainder, .reversebin and .binaryvalue are local variables
and are generated only in this macro
and discarded once used to save pic space' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='2' exp='12' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.remainder = registervalue MOD 2' />
									<exp exp='registervalue = registervalue &gt;&gt; 1' />
									<exp exp='.count = .count + 1' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.remainder' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.reversebin = .reversebin + &quot;1&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.reversebin = .reversebin + &quot;0&quot;' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.count &gt; 0' start='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Count = .Count - 1' />
									<exp exp='.TempString = Mid$ (.ReverseBin, .Count,1)' />
									<exp exp='.binaryvalue = .binaryvalue + .TempString' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
							<argument exp='&quot;BIN=&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
							<argument exp='.binaryvalue' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='program configured up to 12 bit 
= FFF = 4095' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='native' title='C Code' ccode='OSCCON = 0x75;' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Start' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Clear' />
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='keypad_hex1' macro='GetNumber' >
									<return exp='key' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='key &lt; 255' swap='0' >
									<flowline >
										<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='key' >
											<case >
												<flowline />
											</case>
											<case exp='10' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
														<exp exp='key = 11' />
													</command>
												</flowline>
											</case>
											<case exp='11' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
														<exp exp='key = 10' />
													</command>
												</flowline>
											</case>
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='number = number + 1' />
											<exp exp='hex = (hex * 16) + key' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
											<argument exp='0' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
											<argument exp='&quot;HEX TO DEC TO BIN&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='display_value = &quot;HEX=&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
											<argument exp='display_value' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='display_value = NumberToHex$ (hex)' />
											<exp exp='' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
											<argument exp='display_value' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
											<argument exp='0' />
											<argument exp='2' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
											<argument exp='&quot;DEC=&quot;' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintNumber' >
											<argument exp='hex' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='registervalue = hex' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='binary' />
										<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='number = 4' swap='0' >
											<flowline >
												<command class_type='goto' title='Goto Connection Point' cmdcolor='3389439' cmdcolor_sec='3389439' labelid='0' labelname='' />
											</flowline>
											<flowline />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='key &lt; 255' >
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='keypad_hex1' macro='GetNumber' >
													<return exp='key' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='basic_switch1' macro='ReadState' >
											<return exp='reset' />
										</command>
										<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='reset = 1' swap='0' >
											<flowline >
												<command class_type='label' title='Connection Point' cmdcolor='3389439' cmdcolor_sec='3389439' labelid='0' labelname='A' />
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Clear' />
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='number = 0' />
													<exp exp='hex = 0' />
													<exp exp='' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='0' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
													<argument exp='&quot;HEX TO DEC TO BIN&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='display_value = &quot;HEX=&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
													<argument exp='display_value' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='2' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
													<argument exp='&quot;DEC=&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='3' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
													<argument exp='&quot;BIN=&quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='0' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
													<argument exp='&quot;HEX TO DEC TO BIN&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
													<exp exp='display_value = &quot;HEX=&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
													<argument exp='display_value' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='2' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
													<argument exp='&quot;DEC=&quot;' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='Cursor' >
													<argument exp='0' />
													<argument exp='3' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='LCDAdafruitOLED4x20' macro='PrintString' >
													<argument exp='&quot;BIN=&quot;' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='100' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='287e2f0b-8869-4994-a958-c8f851091322' vmin='0' vmaj='1' codename='keypad_hex1' x='27.5001' y='105.5' z='4.98' xsz='2.66667' ysz='3.33333' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin_col1' data='$PORTA.1' />
					<value target='pin_col2' data='$PORTA.2' />
					<value target='pin_col3' data='$PORTA.3' />
					<value target='pin_col4' data='$PORTA.4' />
					<value target='pin_row1' data='$PORTB.4' />
					<value target='pin_row2' data='$PORTB.5' />
					<value target='pin_row3' data='$PORTB.6' />
					<value target='pin_row4' data='$PORTB.7' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a31b1f0a-4221-490d-ae25-027868688f0b' vmin='0' vmaj='1' codename='basic_switch1' x='-60' y='40' z='6.325' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='913991df-9bcb-475a-ae49-d9eb611b0d71' vmin='8' vmaj='1' codename='LCDAdafruitOLED4x20' x='5' y='-23.15' z='0' xsz='210' ysz='110' zsz='7.15' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='d0_pin' data='$PORTC.0' />
					<value target='d1_pin' data='$PORTC.1' />
					<value target='d2_pin' data='$PORTC.2' />
					<value target='d3_pin' data='$PORTC.3' />
					<value target='rs_pin' data='$PORTC.4' />
					<value target='rw_pin' data='$PORTC.5' />
					<value target='enable_pin' data='$PORTC.6' />
					<value target='Rows' data='2' />
					<value target='Columns' data='16' />
					<value target='BackgroundColor' data='4720649' />
					<value target='LineColor' data='8388608' />
					<value target='TextColor' data='16776960' />
					<value target='Font' data='Arial' />
					<value target='CursorPosX' data='4' />
					<value target='CursorPosY' data='3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='2105930' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAKQUAAD0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='binary' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAKQUAAD0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
