| Both sides previous revisionPrevious revision | |
| en:multiasm:piot:chapter_4_3 [2026/03/01 14:23] – ktokarz | en:multiasm:piot:chapter_4_3 [2026/03/01 17:43] (current) – ktokarz |
|---|
| ====== Registers ====== | ====== Registers ====== |
| |
| Registers are a key element of AVR microcontrollers. There are various types of registers, including general-purpose, special-purpose, and status registers. General-purpose registers are used to store temporary data. Special registers control microcontroller functions, such as timers or ADC. Status registers store information about the processor state, such as carry or zero flags. Each register has a specific function and is accessible through particular assembler instructions. Registers allow quick access to data and control over the processor. In the AVR architecture, there are 32 general-purpose registers belonging to two groups: | Registers are a key element of AVR microcontrollers. There are various types of registers, including general-purpose, special-purpose, and status registers. General-purpose registers are used to store temporary data. Special registers control microcontroller functions, such as timers or ADC. Status registers store information about the processor state, such as carry or zero flags. Each register has a specific function and is accessible through particular assembler instructions. Registers allow quick access to data and control over the processor. |
| | |
| | ==== General-purpose registers ==== |
| | |
| | In the AVR architecture, there are 32 general-purpose registers belonging to two groups: |
| |
| **R0-R15:** | **R0-R15:** |
| <caption>Extended Registers</caption> | <caption>Extended Registers</caption> |
| </figure> | </figure> |
| **Other registers:** | ==== Other registers ==== |
| |
| **RAMPX, RAMPY, RAMPZ:** Registers concatenated with the X-, Y-, and Z-registers, enabling indirect addressing of the entire data space on MCUs with more than 64 KB of data space, and constant data fetch on MCUs with more than 64 KB of program space. | **RAMPX, RAMPY, RAMPZ:** Registers concatenated with the X-, Y-, and Z-registers, enabling indirect addressing of the entire data space on MCUs with more than 64 KB of data space, and constant data fetch on MCUs with more than 64 KB of program space. |