48 lines
2.1 KiB
Plaintext
48 lines
2.1 KiB
Plaintext
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|||
|
<root text=""CT Lab 8"" comment="" type="program" style="nice">
|
|||
|
<children>
|
|||
|
|
|||
|
<instruction text=""ACD-value = adc_get_value()"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
<alternative text=""T0 is pressed"" comment="" color="FFFFFF">
|
|||
|
<qTrue>
|
|||
|
|
|||
|
<instruction text=""LCD Background Color = green"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
<instruction text=""7 Segment display = ADC-value"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
<instruction text=""Display ADC-Value in LED-31-0"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
</qTrue>
|
|||
|
<qFalse>
|
|||
|
|
|||
|
<instruction text=""read 8-bit from switches S7..S0"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
<instruction text=""diff = value(S7..S0) <20> ADC-value"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
<alternative text=""diff >= 0"" comment="" color="FFFFFF">
|
|||
|
<qTrue>
|
|||
|
|
|||
|
<instruction text=""LCD Background Color = blue"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
<instruction text=""7 Segment display = diff"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
<case text="diff,"< 4","< 16",else" comment="" color="FFFFFF">
|
|||
|
<qCase>
|
|||
|
|
|||
|
<instruction text=""LCD-Display = 2 Bit"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
</qCase>
|
|||
|
<qCase>
|
|||
|
|
|||
|
<instruction text=""LCD-Display = 4 Bit"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
</qCase>
|
|||
|
<qCase>
|
|||
|
|
|||
|
<instruction text=""LCD-Display = 8 Bit"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
</qCase>
|
|||
|
</case>
|
|||
|
</qTrue>
|
|||
|
<qFalse>
|
|||
|
|
|||
|
<instruction text=""LCD Background Color = red"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
<instruction text=""7 Segment display = diff"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
<instruction text=""second line lcd = count number binary zeros in diff"" comment="" color="FFFFFF" rotated="0"></instruction>
|
|||
|
</qFalse>
|
|||
|
</alternative>
|
|||
|
</qFalse>
|
|||
|
</alternative>
|
|||
|
</children>
|
|||
|
</root>
|