MIT3r: Porovnání verzí
Bez shrnutí editace |
Bez shrnutí editace |
||
Řádek 335: | Řádek 335: | ||
===[https://www.youtube.com/results?search_query=assembler+8051+tutorial assembler 8051 tutorial]=== | ===[https://www.youtube.com/results?search_query=assembler+8051+tutorial assembler 8051 tutorial]=== | ||
[[Soubor:MIT3r-YT-08.png|300px|link=https://youtu.be/cEvHdt4UYoQ|Assembly Language Program for LED Blinking for 8051]] | [[Soubor:MIT3r-YT-08.png|300px|link=https://youtu.be/cEvHdt4UYoQ|Assembly Language Program for LED Blinking for 8051]] | ||
[[Soubor:MIT3r-YT-00.png|300px|link=https://youtu.be/PHPcNxYEkQ4|How to create if else in assembly language]] | [[Soubor:MIT3r-YT-00.png|300px|link=https://youtu.be/PHPcNxYEkQ4|How to create if else in assembly language]] | ||
[[Soubor:MIT3r-YT-01.png|300px|link=https://youtu.be/R3Ad7N3EQOM|Rotating Bits and bytes in ACC register in 8051 assembly language tutorial]] | [[Soubor:MIT3r-YT-01.png|300px|link=https://youtu.be/R3Ad7N3EQOM|Rotating Bits and bytes in ACC register in 8051 assembly language tutorial]] | ||
[[Soubor:MIT3r-YT-02.png|300px|link=https://youtu.be/g7Gypl9zNz8|8051 Microcontroller Assembly Language Programming Steps - Microcontrollers and Its Applications]] | [[Soubor:MIT3r-YT-02.png|300px|link=https://youtu.be/g7Gypl9zNz8|8051 Microcontroller Assembly Language Programming Steps - Microcontrollers and Its Applications]] | ||
[[Soubor:MIT3r-YT-03.png|300px|link=https://youtu.be/nIZdkdjuLMc|8051 Programming Example 2]] | [[Soubor:MIT3r-YT-03.png|300px|link=https://youtu.be/nIZdkdjuLMc|8051 Programming Example 2]] | ||
[[Soubor:MIT3r-YT-04.png|300px|link=https://youtu.be/myw7ycAgJYM|Simple programs of 8051 | Part-1/2 | Embedded Systems | Lec-6 | Bhanu priya]] | [[Soubor:MIT3r-YT-04.png|300px|link=https://youtu.be/myw7ycAgJYM|Simple programs of 8051 | Part-1/2 | Embedded Systems | Lec-6 | Bhanu priya]] | ||
[[Soubor:MIT3r-YT-05.png|300px|link=https://youtu.be/wddOC3Geyss|8051 microcontroller loop concepts presented by PROF SUMATHI M S]] | [[Soubor:MIT3r-YT-05.png|300px|link=https://youtu.be/wddOC3Geyss|8051 microcontroller loop concepts presented by PROF SUMATHI M S]] | ||
[[Soubor:MIT3r-YT-07.png|300px|link=https://youtu.be/kZM_YfoIgos|LED Flashing using Timer]] | [[Soubor:MIT3r-YT-07.png|300px|link=https://youtu.be/kZM_YfoIgos|LED Flashing using Timer]] | ||
[[Soubor:MIT3r-YT-13.png|300px|https://youtu.be/a17SdFtAbK4|8051 Interrupts]] [[Soubor:MIT3r-YT-12.png|400px|https://youtu.be/7l3-iq6OtEE|8051 Interrupts]] | [[Soubor:MIT3r-YT-13.png|300px|https://youtu.be/a17SdFtAbK4|8051 Interrupts]] [[Soubor:MIT3r-YT-12.png|400px|https://youtu.be/7l3-iq6OtEE|8051 Interrupts]] | ||
[[Soubor:MIT3r-YT-14.png|400px|https://youtu.be/EOAXox9XzTI|8051 krokový motor]] | [[Soubor:MIT3r-YT-14.png|400px|https://youtu.be/EOAXox9XzTI|8051 krokový motor]] | ||
[[Soubor:MIT3r-YT-15.png|link=https://www.classcentral.com/course/youtube-8051-microcontroller-lecture-series-53060/classroom|Classroom: 8051 Microcontroller]] | [[Soubor:MIT3r-YT-15.png|link=https://www.classcentral.com/course/youtube-8051-microcontroller-lecture-series-53060/classroom|Classroom: 8051 Microcontroller]] | ||
Řádek 375: | Řádek 351: | ||
[[Soubor:Pineapple_ONE_01.png|300px|link=https://pineapple-one.github.io/|Pineapple ONE]] | [[Soubor:Pineapple_ONE_01.png|300px|link=https://pineapple-one.github.io/|Pineapple ONE]] | ||
==Build an 8-bit computer from scratch== | ==Build an 8-bit computer from scratch== | ||
Řádek 390: | Řádek 365: | ||
[[Soubor:ch552-8051.png|300px|link=https://www.hackster.io/news/adafruit-s-ch552-8051-qt-py-is-a-tiny-modern-dev-board-with-a-vintage-twist-7295840ed641|Adafruit's CH552 8051 QT Py Is a Tiny Modern Dev Board]] | [[Soubor:ch552-8051.png|300px|link=https://www.hackster.io/news/adafruit-s-ch552-8051-qt-py-is-a-tiny-modern-dev-board-with-a-vintage-twist-7295840ed641|Adafruit's CH552 8051 QT Py Is a Tiny Modern Dev Board]] | ||
{| class="toccolours" cellpadding="5" style="float: left; clear: right; margin: 0 0 1em 1em; font-size: 85%; width: | ==Teorie== | ||
{| class="toccolours" cellpadding="5" style="float: left; clear: right; margin: 0 0 1em 1em; font-size: 85%; width: 45em" | |||
| colspan="2" style="text-align: center; font-size: larger; background-color: lightgreen;" | '''''Otázky k opakování HW''''' | | colspan="2" style="text-align: center; font-size: larger; background-color: lightgreen;" | '''''Otázky k opakování HW''''' | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
Řádek 438: | Řádek 415: | ||
# Přehled MCU RP2040 (Raspberry Pi PICO), Cortex (Raspberry Pi) | # Přehled MCU RP2040 (Raspberry Pi PICO), Cortex (Raspberry Pi) | ||
|} | |||
==Cvičení== | |||
{| class="toccolours" cellpadding="5" style="float: left; clear: right; margin: 0 0 1em 1em; font-size: 85%; width: 45em" | |||
{| class="toccolours" cellpadding="5" style="float: left; clear: right; margin: 0 0 1em 1em; font-size: 85%; width: | |||
| colspan="2" style="text-align: center; font-size: larger; background-color: lightgreen;" | '''''Otázky k opakování SW''''' | | colspan="2" style="text-align: center; font-size: larger; background-color: lightgreen;" | '''''Otázky k opakování SW''''' | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
Řádek 477: | Řádek 451: | ||
|} | |} | ||
---- |
Verze z 14. 5. 2025, 11:13
Mikroprocesorová technika v 3. ročníku | ||||||||||||||||||||||||||||||
|
Domácí úkoly z teorie: | |
|
Domácí úkoly z cvičení: | |
MOV TMOD,#00000001B
MOV TL0,#LOW 55536
MOV TH0,#HIGH 55536
skok: setb tr0
cpl p0.0
jnb tf0,skok
nop
end
mov TMOD,#00000001b
mov A,#00000001b
loop: RR A
mov P1,A
acall delay ;10 ms
sjmp loop
delay: setb TR0
mov TL0,#LOW 55546
mov TH0,#HIGH 55546
jnb TF0,$
clr TF0
ret
end
mov DPTR,#tab ;do DPTR začátek tabulky
loop: mov A,#1
movc A,@A+DPTR
mov P0,A
sjmp loop
tab: db 11000000b ;0 uloženo v ROM
db 11111001b ;1
db 10100100b ;2
end
|
Maturita | |
Programování mikrořadiče 8051 v asembleru - komunikace mikrořadiče s jednoduchými perifériemi (LED, spínače, sedmisegmentovka) s využitím čítačů/časovačů a přerušovacího systému
nejpoužívanější instrukce: MOV, SETB, CLR, CJNE, SJMP, INC, DEC, JB, DJNZ, ACALL, RET |
MIT 3. ročník
3. ročník, 2 + 2 h týdně (celkově 36 + 72 = 108 h), povinný
-
IDE: MCU 8051 IDE pro vývoj aplikací v asm/C
-
STC89C52RC SW: Ceptimus
novinka: postavte si DIY FM Radio Kit Electronic Learning Assemble
Plán:
Pracovní listy pro cvičení:
assembler 8051 tutorial
Pineapple ONE
Build an 8-bit computer from scratch
Flat assembler: vývojářský nástroj ze staré školy
https://www.tiobe.com/tiobe-index/
Teorie
Otázky k opakování HW | |
|
Cvičení
Otázky k opakování SW | |
0. Seznam instrukcí (20/50)
nejpoužívanější instrukce: MOV, SETB, CLR, CJNE, SJMP, INC, DEC, JB, DJNZ, ACALL, RET |