Informace ke cvičení "NPRG037 Programování mikrokontrolérů"

NPRG037 Microcontroller programming tutorials

2022/2023 winter term

- The course and tutorial is held in English, questions may be asked in English, Czech, Slovak (and other languages I can understand).
- For programming, we will use Microchip Studio (free download from Microchip website)
- The slides are mostly generic, but many places describe ATmega128 (our recent educational modules are using it).
- This year, we will probably use the "ATmega328PB Xplained Mini" boards first (maybe later replaced by other boards). Therefore, find & fetch the ATmega328PB datasheet + AVR Instruction Set Manual + ATmega328PB Xplained Mini Board documentation (all availabe in PDF at Microchip website)
- If you want to use other AVR based board, discuss it with me in advance and mind the differences.
- Homeworks are to be submitted via SiS. If you miss the class/tutorial, ask about the setup.

NEWS:
-- T1: Light up the LED at B5
     Immediately after reset, just light up the LED connected to B5.
-- T2: "if" construct
     Write in assembly a snippet of code equivalent of the following C/C++ construct:

    if( r1 == r0 )
    	A();
    else
    	B();
    C();

-- T3: LED blink
       After the start, blink the LED indefinitely.
       Blinking frequency is not defined - any frequency will do.
       Try to estimate the frequency by analysing your code and write the explanation.