<root>
<document schema='101' license='1,ADECE,9K8B1Q' title='' description='' target='AVR.ATMEGA.ATMEGA128' >
	<config data='!0,24!8,ff!10,ff%0,24%6,0%7,0' clkspd='8000000' simspd='3' usewdt='0' 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='' body='' />
	<debug >
		<watch expr='AB_Bouton_Menu_1' />
		<watch expr='AB_Valeur_Menu_1' />
		<watch expr='JB_Cpte_Minute' />
		<watch expr='AA_Var_Byte' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='a9a30811-a918-4834-94e5-20c9296f37fa' 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='JB_Cpte_Minute' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='JA_Minute' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LCD_Texte_Byte' 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='LCD_Texte' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='16' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AA_Zero_Z' type='b1' description='0' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AA_Zero_Y' type='b1' description='0' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LCD_Carac' type='u8' description='Caractère à transmettre' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LCD_Cur' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LCD_ACK' type='u8' description='Retour de ACK i2C' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LCD_Texte_Longueur' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AA_Var_Byte' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AB_Valeur_Menu_1' type='u8' description='0.' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AB_Bouton_Menu_1' type='u8' description='variable du menu 1' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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='LCD_I2C_Init' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Mettre le port Reset de l&apos;afficheur à 1' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='output' title='Port_Reset_afficheur' cmdcolor='7895044' cmdcolor_sec='7895044' mode='2' port='1048579' mask='128' exp='255' />
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='LCD_ACK = 1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Start' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<return exp='LCD_ACK' />
							<argument exp='124' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='LCD_ACK = 0' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<return exp='LCD_ACK' />
									<argument exp='0x38' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<return exp='LCD_ACK' />
									<argument exp='0x39' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<return exp='LCD_ACK' />
									<argument exp='0x14' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<return exp='LCD_ACK' />
									<argument exp='0x79' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<return exp='LCD_ACK' />
									<argument exp='0x50' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<return exp='LCD_ACK' />
									<argument exp='0x6c' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<return exp='LCD_ACK' />
									<argument exp='0x0c' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<return exp='LCD_ACK' />
									<argument exp='0x01' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Stop' />
							</flowline>
							<flowline />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='100' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_I2C_Ecrit' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='LCD_Ligne' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='LCD_Colonne' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='LCD_Texte' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='16' />
						</param>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='LCD_Texte_Longueur = Length$ (.LCD_Texte)' />
							<exp exp='LCD_Carac = 0' />
							<exp exp='LCD_Texte = Mid$ (.LCD_Texte,LCD_Carac,1)' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Place le Curseur sur la Ligne et la colonne' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='comment' title='' comment='Format curseur en binaire page 16 datasheet:
1000000 -&gt; 128 ?
x000xxxx -&gt; ligne 0 si ligne 1 64 si ligne 2
xxxx0000 -&gt; Colonne' textarea='46,11,46,11' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.LCD_Ligne' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='LCD_Cur = 0' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='LCD_Cur = 64' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='LCD_Cur = 128 + LCD_Cur + (.LCD_Colonne - 1)' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Start' />
						<command class_type='call' title='Adresse' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<return exp='LCD_ACK' />
							<argument exp='124' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<argument exp='0x38' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<argument exp='LCD_Cur' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Stop' />
						<command class_type='comment' title='' comment='Ecrit texte' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Start' />
						<command class_type='call' title='Adresse' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<return exp='LCD_ACK' />
							<argument exp='124' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<argument exp='0x40' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='LCD_Texte_Longueur &lt;&gt; 0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='LCD_Texte_Byte = Char$ (LCD_Texte,0)' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<argument exp='LCD_Texte_Byte' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='LCD_Texte_Longueur = LCD_Texte_Longueur - 1' />
									<exp exp='LCD_Carac = LCD_Carac + 1' />
									<exp exp='LCD_Texte = Mid$ (.LCD_Texte,LCD_Carac,1)' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Stop' />
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_I2C_Efface' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='LCD_Ligne' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='Efface :
si 0 -&gt; tout l&apos;écran
1 -&gt; ligne 1
2-&gt; ligne 2' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='comment' title='' comment='Format curseur en binaire page 16 datasheet:
1000000 -&gt; 128 ?
x000xxxx -&gt; ligne 0 si ligne 1 64 si ligne 2
xxxx0000 -&gt; Colonne' textarea='46,11,46,11' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='switch' title='Selection ligne ou tout' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.LCD_Ligne' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='calculation' title='Ligne 1 colonne 0' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='LCD_Cur = 128' />
										<exp exp='LCD_Carac = 80' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Ligne 1 colonne 0' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='LCD_Cur = 128' />
										<exp exp='LCD_Carac = 18' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Ligne 2 colonne 0' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='LCD_Cur = 192' />
										<exp exp='LCD_Carac = 18' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Start' />
						<command class_type='call' title='Adresse' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<return exp='LCD_ACK' />
							<argument exp='124' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<argument exp='0x38' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<argument exp='LCD_Cur' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Stop' />
						<command class_type='call' title='Call Component Macro' textarea='82,-6,82,-6' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Start' />
						<command class_type='call' title='Adresse' textarea='82,-6,82,-6' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<return exp='LCD_ACK' />
							<argument exp='124' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='82,-6,82,-6' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
							<argument exp='0x40' />
						</command>
						<command class_type='loop' title='Loop' textarea='82,-6,82,-6' cmdcolor='3568629' cmdcolor_sec='3568629' type='2' exp='LCD_Carac' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='TransmitByte' >
									<argument exp='0x20' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' textarea='82,-6,82,-6' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Stop' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Pull up des ports' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='$PORTA = $PORTA OR 0b00011111' />
							<exp exp='$PORTC = $PORTC OR 0b00011111' />
						</command>
						<command class_type='call' title='Init I2C' cmdcolor='1975743' cmdcolor_sec='1975743' component='I2C_Master1' macro='Initialise' />
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_I2C_Init' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_I2C_Efface' >
							<argument exp='0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='150' type='1' />
						<command class_type='comment' title='' comment='Utilisation afficheur par I2C Master' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_I2C_Efface' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='LCD_I2C_Ecrit' >
							<argument exp='1' />
							<argument exp='5' />
							<argument exp='&quot;Test&quot;' />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='24219805-113d-4b12-b6bd-e1b0b0c33981' vmin='4' vmaj='1' codename='I2C_Master1' x='0' y='0' z='0.755' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='000' />
					<value target='BAUD_LIST' data='001' />
					<value target='SRC' data='000' />
					<value target='SMB' data='000' />
					<value target='StopDelay' data='1' />
					<value target='BAUD' data='50000' />
					<value target='SDA' data='$PORTD.1' />
					<value target='SCL' data='$PORTD.0' />
					<value target='label' data='I2C Master' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='' />
				</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.940046' ye='-3.46654' ze='174.785' xt='-0.940046' yt='-3.46654' 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---------------------wUAAAAYAAAAEwUAAO8CAAA' zoom='65' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
