<root>
<file schema='101' />
<macros >
<macro >
<flowline name='mesure' description='' >
<local name='bit' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
<command class_type='comment' title='' comment='Start conversion' textarea='12,0,487,300' />
<command class_type='output' title='Sortie' textarea='36,0,511,300' mode='1' port='1048581' mask='1' exp='0' />
<command class_type='comment' title='' comment='10ms pour DHT11
1ms pour AM2302' textarea='12,0,487,300' />
<command class_type='delay' title='Pause' textarea='36,0,511,300' exp='10' type='1' />
<command class_type='output' title='Sortie' textarea='36,0,511,300' mode='1' port='1048581' mask='1' exp='1' />
<command class_type='delay' title='Pause' textarea='36,0,511,300' exp='20' type='0' />
<command class_type='output' title='Sortie' textarea='36,0,511,300' mode='1' port='1048581' mask='1' exp='0' />
<command class_type='comment' title='' comment='Début lecture données' textarea='12,0,487,300' />
<command class_type='loop' title='80 us à 0' textarea='36,0,511,300' type='0' exp='$PORTF.0 = 0' >
<flowline />
</command>
<command class_type='loop' title='80 us à 1' textarea='36,0,511,300' type='0' exp='$PORTF.0 = 1' >
<flowline />
</command>
<command class_type='comment' title='' comment='Début de 40 bits
16 bits humidité
16 bits température
8 bits CRC' textarea='50,62,525,362' />
<command class_type='loop' title='Boucle' textarea='36,0,511,300' type='2' forvar='n' exp='40' start='0' >
<flowline >
<command class_type='loop' title='80 us à 0' textarea='36,0,511,300' type='0' exp='$PORTF.0 = 0' start='0' >
<flowline />
</command>
<command class_type='delay' title='Pause' exp='40' type='0' />
<command class_type='decision' title='Décision' textarea='36,0,511,300' exp='$PORTF.0 = 1' swap='0' >
<flowline >
<command class_type='calculation' title='Calcul' textarea='36,0,511,300' >
<exp exp='.bit = 1' />
</command>
<command class_type='loop' title='80 us à 0' textarea='36,0,511,300' type='0' exp='$PORTF.0 = 1' start='0' >
<flowline />
</command>
</flowline>
<flowline >
<command class_type='calculation' title='Calcul' textarea='36,0,511,300' >
<exp exp='.bit = 0' />
</command>
</flowline>
</command>
<command class_type='decision' title='Décision' exp='n &gt; 15' swap='0' >
<flowline >
<command class_type='decision' title='Décision' exp='n &gt; 31' swap='0' >
<flowline >
<command class_type='calculation' title='création de l&apos;octet' >
<exp exp='CRC = CRC &lt;&lt; 1' />
<exp exp='CRC = CRC OR .bit' />
<exp exp='' />
</command>
</flowline>
<flowline >
<command class_type='calculation' title='création de l&apos;octet' >
<exp exp='temperature = temperature &lt;&lt; 1' />
<exp exp='temperature = temperature OR .bit' />
<exp exp='' />
</command>
</flowline>
</command>
</flowline>
<flowline >
<command class_type='calculation' title='création de l&apos;octet' textarea='36,0,511,300' >
<exp exp='Humidite = Humidite &lt;&lt; 1' />
<exp exp='Humidite = Humidite OR .bit' />
</command>
</flowline>
</command>
</flowline>
</command>
</flowline>
</macro>
</macros>
<variables >
<variable public='0' >
<def class_type='variable' name='CRC' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='humidite' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
</variable>
<variable public='0' >
<def class_type='variable' name='temperature' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='n' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
</variable>
</variables>
</root>
