12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ATmega32A</strong>6.4 General Purpose Register FileThe Register File is optimized for the AVR Enhanced RISC instruction set. In order to achievethe required performance and flexibility, the following input/output schemes are supported by theRegister File:• One 8-bit output operand and one 8-bit result input• Two 8-bit output operands and one 8-bit result input• Two 8-bit output operands and one 16-bit result input• One 16-bit output operand and one 16-bit result inputFigure 6-2 shows the structure of the 32 general purpose working registers in the CPU.Figure 6-2.AVR CPU General Purpose Working Registers7 0 Addr.R0 $00R1 $01R2 $02…R13 $0DGeneral R14 $0EPurpose R15 $0FWorking R16 $10Registers R17 $11…R26 $1A X-register Low ByteR27 $1B X-register High ByteR28 $1C Y-register Low ByteR29 $1D Y-register High ByteR30 $1E Z-register Low ByteR31 $1F Z-register High ByteMost of the instructions operating on the Register File have direct access to all registers, andmost of them are single cycle instructions.As shown in Figure 6-2, each register is also assigned a data memory address, mapping themdirectly into the first 32 locations of the user Data Space. Although not being physically implementedas SRAM locations, this memory organization provides great flexibility in access of theregisters, as the X-, Y-, and Z-pointer Registers can be set to index any register in the file.8155C–AVR–02/1110

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!