This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:piot:chapter_4_3 [2026/03/01 14:21] – ktokarz | en:multiasm:piot:chapter_4_3 [2026/03/01 17:43] (current) – ktokarz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Registers ====== | ====== Registers ====== | ||
| - | Registers are a key element of AVR microcontrollers. There are various types of registers, including general-purpose, | + | Registers are a key element of AVR microcontrollers. There are various types of registers, including general-purpose, |
| + | |||
| + | ==== General-purpose registers ==== | ||
| + | |||
| + | In the AVR architecture, | ||
| **R0-R15: | **R0-R15: | ||
| Basic general-purpose registers are used for various arithmetic and logical operations. | Basic general-purpose registers are used for various arithmetic and logical operations. | ||
| Line 8: | Line 13: | ||
| General-purpose registers that can be used with immediate instructions | General-purpose registers that can be used with immediate instructions | ||
| - | Table {{ref>avr_egister_comparison}} presents a summary of AVR CPU General Purpose Working Registers (R0-R31) with their features. | + | Table {{ref>avr_register_comparison}} presents a summary of AVR CPU General Purpose Working Registers (R0-R31) with their features. |
| <table avr_register_comparison> | <table avr_register_comparison> | ||
| Line 40: | Line 45: | ||
| < | < | ||
| </ | </ | ||
| - | **Other registers:** | + | ==== Other registers |
| - | RAMPX, RAMPY, RAMPZ: Registers concatenated with the X-, Y-, and Z-registers, | + | **RAMPX, RAMPY, RAMPZ:** Registers concatenated with the X-, Y-, and Z-registers, |
| - | RAMPD: Register concatenated with the Z-register, enabling direct addressing of the whole data space on MCUs with more than 64 KB data space. | + | **RAMPD:** Register concatenated with the Z-register, enabling direct addressing of the whole data space on MCUs with more than 64 KB data space. |
| - | EIND: Register concatenated with the Z-register, enabling indirect jump and call to the entire program space on MCUs with more than 64K words (128 KB) of program space. | + | **EIND:** Register concatenated with the Z-register, enabling indirect jump and call to the entire program space on MCUs with more than 64K words (128 KB) of program space. |
| <table Register properties> | <table Register properties> | ||