This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:exercisesbook:avr:sut [2025/12/12 12:16] – pczekalski | en:multiasm:exercisesbook:avr:sut [2025/12/13 12:15] (current) – [Communication] ktokarz | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| <figure sutavrlabimage1> | <figure sutavrlabimage1> | ||
| - | <todo @pczekalski> | + | {{ : |
| < | < | ||
| </ | </ | ||
| - | < | + | < |
| < | < | ||
| ^ Component ID ^ Component | ^ Component ID ^ Component | ||
| Line 22: | Line 22: | ||
| | | | | ||
| </ | </ | ||
| + | |||
| ===== Communication ===== | ===== Communication ===== | ||
| Line 32: | Line 33: | ||
| Interconnections are symmetrical, | Interconnections are symmetrical, | ||
| See image {{ref> | See image {{ref> | ||
| - | <todo @ktokarz> | ||
| - | <figure sutavrlabimage2> | ||
| + | <figure sutavrlabimage2> | ||
| + | {{ : | ||
| < | < | ||
| </ | </ | ||
| + | |||
| + | The in-series resistors protect the outputs of the Arduino boards from excessive current when both pins are set as outputs with opposite logical states. | ||
| + | |||
| + | The capacitors on the analogue lines filter the PWM signal, providing a stable voltage for measurement by the analogue-to-digital converter. | ||
| + | <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> | <note tip> | ||