Home >> ATmega1284 Search >> ATMEL ATmega1284 Datasheet

ATmega1284 Datasheet

8-bit AVR Microcontrollers

No Preview Available !

ATmega1284 pdf
8.5.2.
Extended Z-pointer Register for ELPM/SPM
When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When
addressing I/O Registers as data space using LD and ST instructions, 0x20 must be added to these offset
addresses. The device is a complex microcontroller with more peripheral units than can be supported
within the 64 locations reserved in Opcode for the IN and OUT instructions. For the Extended I/O space
from 0x60 in SRAM, only the ST/STS/STD and LD/LDS/LDD instructions can be used.
Name:  RAMPZ
Offset:  0x5B
Reset:  0x0
Property: When addressing I/O Registers as data space the offset address is 0x3B
 
Bit 7 6 5 4 3 2 1 0
RAMPZ[7:0]
Access
RW
RW
RW
RW
RW
RW
RW
RW
Reset
0
0
0
0
0
0
0
0
Bits 7:0 – RAMPZ[7:0]: Extended Z-pointer Register for ELPM/SPM
For ELPM/SPM instructions, the Z-pointer is a concatenation of RAMPZ, ZH, and ZL, as shown in the
below figure. Note that LPM is not affected by the RAMPZ setting.
Figure 8-4. The Z-pointer used by ELPM and SPM
Bit (Individually)
7
07
07
0
RAMPZ
ZH ZL
Bit (Z-pointer)
23
16 15
87
0
The actual number of bits is implementation dependent. Unused bits in an implementation will always
read as zero. For compatibility with future devices, be sure to write these bits to zero.
8.6.
Accessing 16-bit Registers
The AVR data bus is 8 bits wide, and so accessing 16-bit registers requires atomic operations. These
registers must be byte-accessed using two read or write operations. 16-bit registers are connected to the
8-bit bus and a temporary register using a 16-bit bus.
For a write operation, the low byte of the 16-bit register must be written before the high byte. The low byte
is then written into the temporary register. When the high byte of the 16-bit register is written, the
temporary register is copied into the low byte of the 16-bit register in the same clock cycle.
For a read operation, the low byte of the 16-bit register must be read before the high byte. When the low
byte register is read by the CPU, the high byte of the 16-bit register is copied into the temporary register
in the same clock cycle as the low byte is read. When the high byte is read, it is then read from the
temporary register.
This ensures that the low and high bytes of 16-bit registers are always accessed simultaneously when
reading or writing the register.
Interrupts can corrupt the timed sequence if an interrupt is triggered and accesses the same 16-bit
register during an atomic 16-bit read/write operation. To prevent this, interrupts can be disabled when
writing or reading 16-bit registers.
The temporary registers can also be read and written directly from user software.
Atmel ATmega1284 [DATASHEET]
Atmel-42718B-ATmega1284_Datasheet_Complete-08/2016
25
ATMEL
ATMEL


PDF Click to Download PDF File

PDF View for Mobile




Related Start with ATmega128*

[ ATmega128 ATMEL Corporation ]     [ ATmega1280 ATMEL Corporation ]     [ ATmega1280V ATMEL ]     [ ATmega1281 ATMEL Corporation ]     [ ATmega1281V ATMEL ]     [ ATmega1284 ATMEL Corporation ]     [ ATmega1284 ATMEL ]     [ ATmega1284P ATMEL Corporation ]     [ ATmega1284P ATMEL ]     [ ATmega1284RFR2 ATMEL ]     [ ATmega128A ATMEL Corporation ]     [ ATmega128L ATMEL Corporation ]     [ ATmega128RFA1 Atmel Corporation ]     [ ATmega128RFR2 ATMEL ]     [ ATmega128 ATMEL Corporation ]     [ ATmega1280 ATMEL Corporation ]     [ ATmega1280V ATMEL ]     [ ATmega1281 ATMEL Corporation ]     [ ATmega1281V ATMEL ]     [ ATmega1284 ATMEL Corporation ]     [ ATmega1284 ATMEL ]     [ ATmega1284P ATMEL Corporation ]     [ ATmega1284P ATMEL ]     [ ATmega1284RFR2 ATMEL ]    


Searches related to ATmega1284 part

Find Chips CBC RS online RUTRONIK 24
Component Distributors NexGen Digital Richardson RFPD ICC
Beyond Components NAC PEI-Genesis Powell Electronics
TME Ameya 360 Power & Signal Datasheets360
Freelance Electronics Sager Electronics Terminals & Connectors TTI

0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z
@ 2014 :: DatasheetsPDF.com :: Semiconductors Datasheet Search & Download Site