Skip to content
Snippets Groups Projects
Commit ebad599a authored by Teodor-Alexandru DICU's avatar Teodor-Alexandru DICU
Browse files

Merge branch 'lab/exercises_02' into 'main'

Add lab 02 - GPIO exercises

See merge request pmrust/pmrust.pages.upb.ro!54
parents 5ee4a46d 774c2941
No related branches found
No related tags found
No related merge requests found
Showing
with 277 additions and 11205 deletions
website/lab/02/images/button-bounce.png

6.55 KiB

website/lab/02/images/gpio_ctrl_register.png

250 KiB

website/lab/02/images/gpio_pad_ctrl_1.png

104 KiB

website/lab/02/images/gpio_pad_ctrl_2.png

57.7 KiB

website/lab/02/images/gpio_pad_registers.png

133 KiB

website/lab/02/images/gpio_status_ctrl.png

59 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" width="414" height="530" version="1.0" xml:space="preserve">
<defs>
<style>
text { font-family: 'DejaVu Sans', Sans, sans-serif; font-size:18px; fill: #000000; }
tspan { stroke-width: .9217 }
rect { fill: #000000; }
circle { fill: #000000; }
</style>
</defs>
<metadata><rdf:RDF><cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
</cc:Work></rdf:RDF></metadata>
<switch style="font-size:22px"><text x="67.239998" y="24.529999" style="font-size:22px" id="trsvg43-yue" systemLanguage="yue"><tspan id="trsvg1-yue"> 國際摩斯密碼</tspan></text><text x="67.239998" y="24.529999" style="font-size:22px" id="trsvg43-da" systemLanguage="da"><tspan id="trsvg1-da">International Morsekode</tspan></text><text x="67.239998" y="24.529999" style="font-size:22px" id="trsvg43"><tspan id="trsvg1">International Morse Code</tspan></text></switch>
<switch style="font-size:10.14px;line-height:125%"><text x="46.919998" y="48.189999" style="font-size:10.14px;line-height:125%" xml:space="preserve" id="trsvg44-yue" systemLanguage="yue"><tspan x="46.919998" y="48.189999" id="trsvg2-yue">1. 一點嘅長度係一個時間單位。</tspan><tspan x="46.919998" y="60.860001" id="trsvg3-yue">2. 一劃要有三個時間單位咁長。</tspan><tspan x="46.919998" y="73.540001" id="trsvg4-yue">3. 同一個字母入面,相鄰嘅點或者劃之間,要隔一個時間單位咁長嘅空白。</tspan><tspan x="46.919998" y="86.209999" id="trsvg5-yue">4. 相鄰嘅字母之間,要隔三個時間單位咁長嘅空白。</tspan>
<tspan x="46.919998" y="98.879997" id="trsvg6-yue">5. 相鄰嘅字詞之間,要隔七個時間單位咁長嘅空白。</tspan>
</text><text x="46.919998" y="48.189999" style="font-size:10.14px;line-height:125%" xml:space="preserve" id="trsvg44-da" systemLanguage="da"><tspan x="46.919998" y="48.189999" id="trsvg2-da">1. Længden af en prik er én enhed.</tspan><tspan x="46.919998" y="60.860001" id="trsvg3-da">2. En streg er tre enheder.</tspan><tspan x="46.919998" y="73.540001" id="trsvg4-da">3. Afstanden mellem dele af samme bogstav er én enhed.</tspan><tspan x="46.919998" y="86.209999" id="trsvg5-da">4. Afstanden mellem bogstaver er tre enheder.</tspan>
<tspan x="46.919998" y="98.879997" id="trsvg6-da">5. Afstanden mellem ord er syv enheder.</tspan>
</text><text x="46.919998" y="48.189999" style="font-size:10.14px;line-height:125%" xml:space="preserve" id="trsvg44"><tspan x="46.919998" y="48.189999" id="trsvg2">1. The length of a dot is one unit.</tspan><tspan x="46.919998" y="60.860001" id="trsvg3">2. A dash is three units.</tspan><tspan x="46.919998" y="73.540001" id="trsvg4">3. The space between parts of the same letter is one unit.</tspan><tspan x="46.919998" y="86.209999" id="trsvg5">4. The space between letters is three units.</tspan>
<tspan x="46.919998" y="98.879997" id="trsvg6">5. The space between words is seven units.</tspan>
</text></switch>
<circle cx="231.2" cy="140.1" r="4.609"/>
<rect x="263.5" y="135.5" width="27.65" height="9.217"/>
<circle cx="249.6" cy="140.1" r="4.609"/>
<circle cx="231.2" cy="158.5" r="4.609"/>
<circle cx="249.6" cy="158.5" r="4.609"/>
<circle cx="268.1" cy="158.5" r="4.609"/>
<rect x="281.9" y="153.9" width="27.65" height="9.217"/>
<circle cx="231.2" cy="176.9" r="4.609"/>
<rect x="245" y="172.3" width="27.65" height="9.217"/>
<rect x="281.9" y="172.3" width="27.65" height="9.217"/>
<rect x="226.6" y="190.8" width="27.65" height="9.217"/>
<circle cx="268.1" cy="195.4" r="4.609"/>
<circle cx="286.5" cy="195.4" r="4.609"/>
<rect x="300.3" y="190.8" width="27.65" height="9.217"/>
<rect x="226.6" y="209.2" width="27.65" height="9.217"/>
<rect x="281.9" y="209.2" width="27.65" height="9.217"/>
<rect x="318.8" y="209.2" width="27.65" height="9.217"/>
<circle cx="268.1" cy="213.8" r="4.609"/>
<rect x="226.6" y="227.6" width="27.65" height="9.217"/>
<rect x="263.5" y="227.6" width="27.65" height="9.217"/>
<circle cx="304.9" cy="232.2" r="4.609"/>
<circle cx="323.4" cy="232.2" r="4.609"/>
<switch><text x="207.12" y="144.67" id="trsvg45-yue" systemLanguage="yue"><tspan id="trsvg7-yue">U</tspan></text><text x="207.12" y="144.67" id="trsvg45"><tspan id="trsvg7">U</tspan></text></switch>
<switch><text x="207.64" y="163.10001" id="trsvg46-yue" systemLanguage="yue"><tspan id="trsvg8-yue">V</tspan></text><text x="207.64" y="163.10001" id="trsvg46"><tspan id="trsvg8">V</tspan></text></switch>
<switch><text x="205.05" y="181.31" id="trsvg47-yue" systemLanguage="yue"><tspan id="trsvg9-yue">W</tspan></text><text x="205.05" y="181.31" id="trsvg47"><tspan id="trsvg9">W</tspan></text></switch>
<switch><text x="207.63" y="199.97" id="trsvg48-yue" systemLanguage="yue"><tspan id="trsvg10-yue">X</tspan></text><text x="207.63" y="199.97" id="trsvg48"><tspan id="trsvg10">X</tspan></text></switch>
<switch><text x="207.66" y="218.41" id="trsvg49-yue" systemLanguage="yue"><tspan id="trsvg11-yue">Y</tspan></text><text x="207.66" y="218.41" id="trsvg49"><tspan id="trsvg11">Y</tspan></text></switch>
<switch><text x="208.17" y="236.84" id="trsvg50-yue" systemLanguage="yue"><tspan id="trsvg12-yue">Z</tspan></text><text x="208.17" y="236.84" id="trsvg50"><tspan id="trsvg12">Z</tspan></text></switch>
<circle cx="37.65" cy="140.1" r="4.609"/>
<rect x="51.49" y="135.5" width="27.65" height="9.217"/>
<circle cx="74.76" cy="158.5" r="4.609"/>
<circle cx="92.95" cy="158.8" r="4.609"/>
<circle cx="111.4" cy="158.5" r="4.609"/>
<rect x="33.05" y="172.3" width="27.65" height="9.217"/>
<circle cx="74.49" cy="176.9" r="4.609"/>
<rect x="88.36" y="172.3" width="27.65" height="9.217"/>
<circle cx="129.9" cy="176.9" r="4.609"/>
<rect x="33.05" y="190.8" width="27.65" height="9.217"/>
<circle cx="74.43" cy="195.4" r="4.609"/>
<circle cx="92.95" cy="195.6" r="4.609"/>
<circle cx="37.65" cy="213.8" r="4.609"/>
<circle cx="37.65" cy="232.2" r="4.609"/>
<circle cx="56.09" cy="232.2" r="4.609"/>
<rect x="69.92" y="227.6" width="27.65" height="9.217"/>
<circle cx="111.4" cy="232.2" r="4.609"/>
<rect x="33.05" y="246.1" width="27.65" height="9.217"/>
<rect x="69.92" y="246.1" width="27.65" height="9.217"/>
<circle cx="111.4" cy="250.7" r="4.609"/>
<circle cx="37.65" cy="269.1" r="4.609"/>
<circle cx="56.09" cy="269.1" r="4.609"/>
<circle cx="74.52" cy="269.1" r="4.609"/>
<circle cx="92.95" cy="269.1" r="4.609"/>
<circle cx="37.65" cy="287.5" r="4.609"/>
<circle cx="56.09" cy="287.5" r="4.609"/>
<circle cx="37.65" cy="306" r="4.609"/>
<rect x="51.49" y="301.4" width="27.65" height="9.217"/>
<rect x="88.36" y="301.4" width="27.65" height="9.217"/>
<rect x="125.2" y="301.4" width="27.65" height="9.217"/>
<rect x="33.05" y="319.8" width="27.65" height="9.217"/>
<circle cx="74.52" cy="324.4" r="4.609"/>
<rect x="88.36" y="319.8" width="27.65" height="9.217"/>
<circle cx="37.65" cy="342.8" r="4.609"/>
<rect x="51.49" y="338.2" width="27.65" height="9.217"/>
<circle cx="92.95" cy="342.8" r="4.609"/>
<circle cx="111.4" cy="342.8" r="4.609"/>
<rect x="33.05" y="356.7" width="27.65" height="9.217"/>
<rect x="69.92" y="356.7" width="27.65" height="9.217"/>
<rect x="33.05" y="375.1" width="27.65" height="9.217"/>
<circle cx="74.52" cy="379.7" r="4.609"/>
<rect x="33.05" y="393.5" width="27.65" height="9.217"/>
<rect x="69.92" y="393.5" width="27.65" height="9.217"/>
<rect x="106.8" y="393.5" width="27.65" height="9.217"/>
<circle cx="37.65" cy="416.6" r="4.609"/>
<rect x="51.49" y="412" width="27.65" height="9.217"/>
<rect x="88.36" y="412" width="27.65" height="9.217"/>
<circle cx="129.8" cy="416.6" r="4.609"/>
<rect x="33.05" y="430.4" width="27.65" height="9.217"/>
<rect x="69.92" y="430.4" width="27.65" height="9.217"/>
<circle cx="111.4" cy="435" r="4.609"/>
<rect x="125.2" y="430.4" width="27.65" height="9.217"/>
<circle cx="37.65" cy="453.5" r="4.609"/>
<rect x="51.49" y="448.8" width="27.65" height="9.217"/>
<circle cx="92.95" cy="453.5" r="4.609"/>
<circle cx="74.52" cy="471.9" r="4.609"/>
<circle cx="56.09" cy="471.9" r="4.609"/>
<circle cx="37.65" cy="471.9" r="4.609"/>
<rect x="33.05" y="485.7" width="27.65" height="9.217"/>
<switch><text x="13.32" y="144.67" id="trsvg51-yue" systemLanguage="yue"><tspan id="trsvg13-yue">A</tspan></text><text x="13.32" y="144.67" id="trsvg51"><tspan id="trsvg13">A</tspan></text></switch>
<switch><text x="13.13" y="163.10" id="trsvg52-yue" systemLanguage="yue"><tspan id="trsvg14-yue">B</tspan></text><text x="13.13" y="163.10" id="trsvg52"><tspan id="trsvg14">B</tspan></text></switch>
<switch><text x="12.71" y="181.31" id="trsvg53-yue" systemLanguage="yue"><tspan id="trsvg15-yue">C</tspan></text><text x="12.71" y="181.31" id="trsvg53"><tspan id="trsvg15">C</tspan></text></switch>
<switch><text x="12.59" y="199.97" id="trsvg54-yue" systemLanguage="yue"><tspan id="trsvg16-yue">D</tspan></text><text x="12.59" y="199.97" id="trsvg54"><tspan id="trsvg16">D</tspan></text></switch>
<switch><text x="13.08" y="218.41" id="trsvg55-yue" systemLanguage="yue"><tspan id="trsvg17-yue">E</tspan></text><text x="13.08" y="218.41" id="trsvg55"><tspan id="trsvg17">E</tspan></text></switch>
<switch><text x="13.50" y="236.84" id="trsvg56-yue" systemLanguage="yue"><tspan id="trsvg18-yue">F</tspan></text><text x="13.50" y="236.84" id="trsvg56"><tspan id="trsvg18">F</tspan></text></switch>
<switch><text x="12.38" y="255.05" id="trsvg57-yue" systemLanguage="yue"><tspan id="trsvg19-yue">G</tspan></text><text x="12.38" y="255.05" id="trsvg57"><tspan id="trsvg19">G</tspan></text></switch>
<switch><text x="12.81" y="273.71" id="trsvg58-yue" systemLanguage="yue"><tspan id="trsvg20-yue">H</tspan></text><text x="12.81" y="273.71" id="trsvg58"><tspan id="trsvg20">H</tspan></text></switch>
<switch><text x="16.87" y="292.14" id="trsvg59-yue" systemLanguage="yue"><tspan id="trsvg21-yue">I</tspan></text><text x="16.87" y="292.14" id="trsvg59"><tspan id="trsvg21">I</tspan></text></switch>
<switch><text x="15.32" y="310.58" id="trsvg60-yue" systemLanguage="yue"><tspan id="trsvg22-yue">J</tspan></text><text x="15.32" y="310.58" id="trsvg60"><tspan id="trsvg22">J</tspan></text></switch>
<switch><text x="12.66" y="329.01" id="trsvg61-yue" systemLanguage="yue"><tspan id="trsvg23-yue">K</tspan></text><text x="12.66" y="329.01" id="trsvg61"><tspan id="trsvg23">K</tspan></text></switch>
<switch><text x="13.99" y="347.45" id="trsvg62-yue" systemLanguage="yue"><tspan id="trsvg24-yue">L</tspan></text><text x="13.99" y="347.45" id="trsvg62"><tspan id="trsvg24">L</tspan></text></switch>
<switch><text x="11.80" y="365.88" id="trsvg63-yue" systemLanguage="yue"><tspan id="trsvg25-yue">M</tspan></text><text x="11.80" y="365.88" id="trsvg63"><tspan id="trsvg25">M</tspan></text></switch>
<switch><text x="12.86" y="384.32" id="trsvg64-yue" systemLanguage="yue"><tspan id="trsvg26-yue">N</tspan></text><text x="12.86" y="384.32" id="trsvg64"><tspan id="trsvg26">N</tspan></text></switch>
<switch><text x="12.26" y="402.75" id="trsvg65-yue" systemLanguage="yue"><tspan id="trsvg27-yue">O</tspan></text><text x="12.26" y="402.75" id="trsvg65"><tspan id="trsvg27">O</tspan></text></switch>
<switch><text x="12.24" y="439.62" id="trsvg66-yue" systemLanguage="yue"><tspan id="trsvg28-yue">Q</tspan></text><text x="12.24" y="439.62" id="trsvg66"><tspan id="trsvg28">Q</tspan></text></switch>
<switch><text x="13.01" y="421.18" id="trsvg67-yue" systemLanguage="yue"><tspan id="trsvg29-yue">P</tspan></text><text x="13.01" y="421.18" id="trsvg67"><tspan id="trsvg29">P</tspan></text></switch>
<switch><text x="12.20" y="458.05" id="trsvg68-yue" systemLanguage="yue"><tspan id="trsvg30-yue">R</tspan></text><text x="12.20" y="458.05" id="trsvg68"><tspan id="trsvg30">R</tspan></text></switch>
<switch><text x="13.38" y="476.49" id="trsvg69-yue" systemLanguage="yue"><tspan id="trsvg31-yue">S</tspan></text><text x="13.38" y="476.49" id="trsvg69"><tspan id="trsvg31">S</tspan></text></switch>
<switch><text x="13.80" y="494.92" id="trsvg70-yue" systemLanguage="yue"><tspan id="trsvg32-yue">T</tspan></text><text x="13.80" y="494.92" id="trsvg70"><tspan id="trsvg32">T</tspan></text></switch>
<rect x="33.05" y="153.9" width="27.65" height="9.217"/>
<rect x="245.0" y="319.6" width="27.65" height="9.217"/>
<rect x="281.9" y="319.6" width="27.65" height="9.217"/>
<rect x="281.9" y="319.6" width="27.65" height="9.217"/>
<rect x="318.8" y="319.6" width="27.65" height="9.217"/>
<rect x="355.7" y="319.6" width="27.65" height="9.217"/>
<circle cx="231.2" cy="324.2" r="4.609"/>
<circle cx="231.2" cy="342.6" r="4.609"/>
<circle cx="249.6" cy="342.6" r="4.609"/>
<rect x="263.5" y="338" width="27.65" height="9.217"/>
<rect x="300.3" y="338" width="27.65" height="9.217"/>
<rect x="337.2" y="338" width="27.65" height="9.217"/>
<circle cx="231.2" cy="361.1" r="4.609"/>
<circle cx="249.6" cy="361.1" r="4.609"/>
<circle cx="268.1" cy="361.1" r="4.609"/>
<rect x="281.9" y="356.4" width="27.65" height="9.217"/>
<rect x="318.8" y="356.4" width="27.65" height="9.217"/>
<circle cx="231.2" cy="379.5" r="4.609"/>
<circle cx="249.6" cy="379.5" r="4.609"/>
<circle cx="268.1" cy="379.5" r="4.609"/>
<circle cx="286.5" cy="379.5" r="4.609"/>
<rect x="300.3" y="374.9" width="27.65" height="9.217"/>
<circle cx="231.2" cy="397.9" r="4.609"/>
<circle cx="249.6" cy="397.9" r="4.609"/>
<circle cx="268.1" cy="397.9" r="4.609"/>
<circle cx="286.5" cy="397.9" r="4.609"/>
<circle cx="304.9" cy="397.9" r="4.609"/>
<circle cx="268.1" cy="416.4" r="4.609"/>
<circle cx="286.5" cy="416.4" r="4.609"/>
<circle cx="304.9" cy="416.4" r="4.609"/>
<circle cx="323.4" cy="416.4" r="4.609"/>
<rect x="226.6" y="411.7" width="27.65" height="9.217"/>
<circle cx="231.2" cy="361.1" r="4.609"/>
<circle cx="249.6" cy="361.1" r="4.609"/>
<circle cx="268.1" cy="361.1" r="4.609"/>
<rect x="281.9" y="356.4" width="27.65" height="9.217"/>
<rect x="318.8" y="356.4" width="27.65" height="9.217"/>
<circle cx="304.9" cy="434.8" r="4.609"/>
<circle cx="323.4" cy="434.8" r="4.609"/>
<circle cx="341.8" cy="434.8" r="4.609"/>
<rect x="226.6" y="430.2" width="27.65" height="9.217"/>
<rect x="263.5" y="430.2" width="27.65" height="9.217"/>
<circle cx="341.8" cy="453.2" r="4.609"/>
<circle cx="360.3" cy="453.2" r="4.609"/>
<rect x="263.5" y="448.6" width="27.65" height="9.217"/>
<rect x="300.3" y="448.6" width="27.65" height="9.217"/>
<rect x="226.6" y="448.6" width="27.65" height="9.217"/>
<rect x="226.6" y="467.0" width="27.65" height="9.217"/>
<rect x="263.5" y="467.0" width="27.65" height="9.217"/>
<rect x="263.5" y="467.0" width="27.65" height="9.217"/>
<rect x="300.3" y="467.0" width="27.65" height="9.217"/>
<rect x="337.2" y="467.0" width="27.65" height="9.217"/>
<rect x="226.6" y="485.5" width="27.65" height="9.217"/>
<circle cx="378.7" cy="471.7" r="4.609"/>
<rect x="263.5" y="485.5" width="27.65" height="9.217"/>
<rect x="300.3" y="485.5" width="27.65" height="9.217"/>
<rect x="300.3" y="485.5" width="27.65" height="9.217"/>
<rect x="337.2" y="485.5" width="27.65" height="9.217"/>
<rect x="374.1" y="485.5" width="27.65" height="9.217"/>
<switch><text x="209.50" y="328.79" id="trsvg71-yue" systemLanguage="yue"><tspan id="trsvg33-yue">1</tspan></text><text x="209.50" y="328.79" id="trsvg71"><tspan id="trsvg33">1</tspan></text></switch>
<switch><text x="209.03" y="347.22" id="trsvg72-yue" systemLanguage="yue"><tspan id="trsvg34-yue">2</tspan></text><text x="209.03" y="347.22" id="trsvg72"><tspan id="trsvg34">2</tspan></text></switch>
<switch><text x="208.84" y="365.43" id="trsvg73-yue" systemLanguage="yue"><tspan id="trsvg35-yue">3</tspan></text><text x="208.84" y="365.43" id="trsvg73"><tspan id="trsvg35">3</tspan></text></switch>
<switch><text x="209.14" y="384.09" id="trsvg74-yue" systemLanguage="yue"><tspan id="trsvg36-yue">4</tspan></text><text x="209.14" y="384.09" id="trsvg74"><tspan id="trsvg36">4</tspan></text></switch>
<switch><text x="208.80" y="402.52" id="trsvg75-yue" systemLanguage="yue"><tspan id="trsvg37-yue">5</tspan></text><text x="208.80" y="402.52" id="trsvg75"><tspan id="trsvg37">5</tspan></text></switch>
<switch><text x="208.89" y="420.96" id="trsvg76-yue" systemLanguage="yue"><tspan id="trsvg38-yue">6</tspan></text><text x="208.89" y="420.96" id="trsvg76"><tspan id="trsvg38">6</tspan></text></switch>
<switch><text x="208.79" y="439.17" id="trsvg77-yue" systemLanguage="yue"><tspan id="trsvg39-yue">7</tspan></text><text x="208.79" y="439.17" id="trsvg77"><tspan id="trsvg39">7</tspan></text></switch>
<switch><text x="208.84" y="457.82" id="trsvg78-yue" systemLanguage="yue"><tspan id="trsvg40-yue">8</tspan></text><text x="208.84" y="457.82" id="trsvg78"><tspan id="trsvg40">8</tspan></text></switch>
<switch><text x="208.83" y="476.26" id="trsvg79-yue" systemLanguage="yue"><tspan id="trsvg41-yue">9</tspan></text><text x="208.83" y="476.26" id="trsvg79"><tspan id="trsvg41">9</tspan></text></switch>
<switch><text x="208.87" y="494.70" id="trsvg80"><tspan id="trsvg42">0</tspan></text></switch>
</svg>
This diff is collapsed.
website/lab/02/images/register.png

89.8 KiB

website/lab/02/images/reset_registers.png

63.9 KiB

website/lab/02/images/reset_reset.png

162 KiB

website/lab/02/images/reset_reset_done.png

96.5 KiB

website/lab/02/images/sio_registers.png

165 KiB

website/lab/02/images/usage.png

115 KiB

This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment