atmega103 ATMEL Corporation, atmega103 Datasheet - Page 22

no-image

atmega103

Manufacturer Part Number
atmega103
Description
Atmega103 8-bit With 128k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega103-6AC
Manufacturer:
ATMEL
Quantity:
1
Part Number:
atmega103-6AI
Manufacturer:
ATMEL
Quantity:
586
Part Number:
atmega103-6AI
Manufacturer:
Atmel
Quantity:
10 000
RAM Page Z Select Register –
RAMPZ
MCU Control Register –
MCUCR
22
ATmega103(L)
instruction and it is incremented by 2 when an address is popped from the Stack with
return from subroutine RET or return from interrupt RETI.
The RAMPZ Register is normally used to select which 64K RAM page is accessed by
the Z pointer. As the ATmega103(L) does not support more than 64K of SRAM memory,
this register is used only to select which page in the Program memory is accessed when
the ELPM instruction is used. The different settings of the RAMPZ0 bit have the follow-
ing effects:
Note that LPM is not affected by the RAMPZ setting.
The MCU Control Register contains control bits for general MCU functions.
• Bit 7 – SRE: External SRAM Enable
When the SRE bit is set (one), the external Data SRAM is enabled, and the pin functions
AD0 - 7 (Port A), and A8 - 15 (Port C) are activated as the alternate pin functions. Then
the SRE bit overrides any pin direction settings in the respective Data Direction Regis-
ters. When the SRE bit is cleared (zero), the external Data SRAM is disabled and the
normal pin and data direction settings are used.
• Bit 6 – SRW: External SRAM Wait State
When the SRW bit is set (one), a one-cycle wait state is inserted in the external Data
SRAM access cycle. When the SRW bit is cleared (zero), the external Data SRAM
access is executed with a three-cycle scheme. See Figure 51 on page 85 and Figure 52
on page 85.
• Bit 5 – SE: Sleep Enable
The SE bit must be set (one) to make the MCU enter the sleep mode when the SLEEP
instruction is executed. To avoid the MCU entering the sleep mode unless it is the pro-
grammer’s purpose, it is recommended to set the Sleep Enable (SE) bit just before the
execution of the SLEEP instruction.
Bit
$3B ($5B)
Read/Write
Initial Value
RAMPZ0 = 0:
RAMPZ0 = 1:
Bit
$35 ($55)
Read/Write
Initial Value
SRE
R/W
R
7
0
7
0
Program memory address $0000 - $7FFF (lower 64K bytes) is
accessed by ELPM
Program memory address $8000 - $FFFF (higher 64K bytes) is
accessed by ELPM
SRW
R/W
R
6
0
6
0
R/W
R
SE
5
0
5
0
SM1
R/W
R
4
0
4
0
SM0
R/W
R
3
0
3
0
R
2
0
R
2
0
R
1
0
R
1
0
RAMPZ0
R/W
0
0
R
0
0
0945I–AVR–02/07
RAMPZ
MCUCR

Related parts for atmega103