This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:exercisesbook:arduinouno [2026/05/04 14:34] – [Use Serial Port for Tracing] pczekalski | en:multiasm:exercisesbook:arduinouno [2026/05/04 14:55] (current) – [Function Call Standards] ktokarz | ||
|---|---|---|---|
| Line 964: | Line 964: | ||
| Start conversion by setting the ADSC bit (6) of ADSCRA to 1. | Start conversion by setting the ADSC bit (6) of ADSCRA to 1. | ||
| - | ADC requires some time to read the value and complete the conversion | + | ADC requires some time to complete the conversion; thus, when the result |
| Here, we do not use any interrupts, just dummy pulling. | Here, we do not use any interrupts, just dummy pulling. | ||
| <code asm> | <code asm> | ||
| Line 1000: | Line 1000: | ||
| ** Speed vs Quality ** | ** Speed vs Quality ** | ||
| - | ADC converts an analogue value to its digital representation using a capacitor. Charging and discharging of the capacitor require time and depend on the impedance of the analogue signal' | + | ADC converts an analogue value to its digital representation using a method called successive approximation, |
| <table arduinoadcprescaler> | <table arduinoadcprescaler> | ||
| Line 1197: | Line 1197: | ||
| To use a string (e.g. constant) that is stored in Flash, convert this line: | To use a string (e.g. constant) that is stored in Flash, convert this line: | ||
| '' | '' | ||
| - | <note important> | + | <note important> |
| ** Delay (in ms) **\\ | ** Delay (in ms) **\\ | ||