Lab_8_Structured_Programmin.../CT Lab 8.nsd

48 lines
2.1 KiB
Plaintext
Raw Normal View History

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