This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:multiasm:exercisesbook:avr:sut [2026/03/25 12:23] – pczekalski | en:multiasm:exercisesbook:avr:sut [2026/03/25 12:50] (current) – [Table] pczekalski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== SUT AVR Assembler Laboratory Node Hardware Reference ====== | ||
| + | ===== Introduction ===== | ||
| + | Each laboratory node is equipped with an Arduino Uno R3 development board, based on the ATmega328P MCU. It also has two extension boards: | ||
| + | * external, analogue and digital communication board, | ||
| + | * user interface board presented on the image {{ref> | ||
| + | There are 10 laboratory nodes. They can be used independently, | ||
| + | |||
| + | ===== Hardware reference ===== | ||
| + | The table {{ref> | ||
| + | |||
| + | <figure sutavrlabimage1> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <figure sutavrlabimage1_2> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <table sutavrlabtable1> | ||
| + | < | ||
| + | ^ Component ID ^ Component | ||
| + | | D1 | LED (red) | direct via GPIO | binary (0->on, 1-> | ||
| + | | D2 | LED (red) | direct via GPIO | binary (0->on, 1-> | ||
| + | | D3 | LED (red) | direct via GPIO | binary (0->on, 1-> | ||
| + | | D4 | LED (red) | direct via GPIO | binary (0->on, 1-> | ||
| + | | LED4 | 4x 7-segment display | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Communication ===== | ||
| + | Devices (laboratory nodes) are interconnected in pairs, so it is possible to work in groups and implement scenarios involving more than one device: | ||
| + | * node 1 with node 2, | ||
| + | * node 3 with node 4, | ||
| + | * node 5 with node 6, | ||
| + | * node 7 with node 8, | ||
| + | * node 9 with node 10. | ||
| + | |||
| + | Interconnections are symmetrical, | ||
| + | See image {{ref> | ||
| + | |||
| + | <figure sutavrlabimage2> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | The in-series resistors protect the Arduino boards' | ||
| + | |||
| + | The capacitors on the analogue lines filter the PWM signal, providing a stable voltage for the analogue-to-digital converter to measure. | ||
| + | <table sutavrconnections> | ||
| + | < | ||
| + | ^ Arduino Uno pin name ^ AVR pin name ^ Alternate function | ||
| + | | D2 | PD2 | INT0 | Interrupt input | | ||
| + | | D5 | PD5 | T1 | Timer/ | ||
| + | | D6 | PD6 | OC0A | PWM output to generate analogue voltage | ||
| + | | D9 | PB1 | OC1A | Digital output / Timer output | ||
| + | | D10 | PB2 | OC1B | Digital output / Timer output | ||
| + | | A5 | PC5 | ADC5 | Analogue input | | ||
| + | </ | ||
| + | Such a connection makes it possible to implement a variety of scenarios: | ||
| + | * Connection of OC0A to ADC5 allows you to generate a voltage for measuring on input 5 of the analogue-to-digital converter. | ||
| + | * Connection of OC1A to INT0 allows you to generate a digital periodic signal that can trigger hardware interrupts. | ||
| + | * Connection of OC1B to T1 allows you to generate a digital periodic signal, the pulse count of which can be counted using timer T1. | ||
| + | |||
| + | |||
| + | <note tip> | ||