vrs51c1000 Ramtron Corporation, vrs51c1000 Datasheet - Page 10

no-image

vrs51c1000

Manufacturer Part Number
vrs51c1000
Description
Versa 8051 Mcu With 64kb Of Iap/isp Flash
Manufacturer
Ramtron Corporation
Datasheet
point anywhere in the 00h to FFh range of SRAM
memory.
interrupt is serviced, the 16-bit return address (two
bytes) is stored on the stack.
manually on the Stack by using the PUSH and POP
functions.
Expanded SRAM Access Using the MOVX @DPTR
Instruction (0000-02FF, Bank4-Bank15)
The 768 bytes of the expanded SRAM data memory
occupies addresses 0000h to 02FFh. This can be
accessed using external direct addressing (i.e. using
the MOVX instruction) or by using bank mapping direct
addressing.
addressing using the MOVX @DPTR instruction, if the
address is larger than 02FFh, the VRS51C1000 will
access off-chip memory in the external memory space
using the external memory control signals
Internal SRAM Control Register
The
VRS51C1000 can also be accessed using the MOVX
@Rn instruction (where n = 0 or 1). This instruction
can only access data in a range of 256 bytes. The
internal SRAM Control Register, RCON, allows users
to select which part of the expanded SRAM will be
accessed by this instruction by configuring the value of
the RAMS0 and RAMS1 bits.
The default setting of the RAMS1 and RAMS0 bits is
00 (page 0). Each page has 256 bytes.
T
______________________________________________________________________________________________
www.ramtron.com
ABLE
Bit
7
6
5
4
3
2
1
0
VRS51C1000
7
13: I
768
NTERNAL
Mnemonic
Unused
Unused
Unused
Unused
Unused
Unused
RAMS1
RAMS0
6
When a function call is performed or an
SRAM C
bytes
5
Note that in the case of indirect
Unused
Description
-
-
-
-
-
-
These two bits are used with Rn of instruction
OVX @Rn, n=1,0 for mapping (see section on
extended 768 bytes)
RAMS1, RAMS0
00
01
10
11
*
ONTROL
Externally generated
of
4
R
EGISTER
expanded
3
(RCON) - SFR 85
Data can be placed
2
Mapped area
000h-0FFh
100h-1FFh
200h-2FFh
XY00h-XYFF*
SRAM
RAMS1
1
H
of
RAMS0
0
the
Example:
Note that when both RAM1 and RAM0 are set to 1, the
value of P2 defines the upper byte and Rn defines the
lower byte of the external address. In this case the
device will access off-chip memory in the external
memory space using the external memory control
signals, Off chip peripherals can therefore be mapped
into the “P2value”00h to “P2value”FFh address range
Data Bank Control Register
The DBANK register allows the user to enable the
Data Bank Select function and map the entire contents
of the SRAM memory in the range of 40h to 7Fh for
applications that would require direct addressing of the
expanded SRAM.
The Data Bank Select function is activated by setting
the Data Bank Select enable bit (BSE) to 1. Setting this
bit to zero disables this function. The lower nibble of
this register controls the mapping of the entire 1K byte
on-chip SRAM space into the 040h-07Fh range.
T
ABLE
BSE
Bit
7
6
5
4
3
2
1
0
7
14: D
Mnemonic
BSE
Unused
Unused
Unused
BS3
BS2
BS1
BS0
ATA
Suppose that RAMS1, RAMS0 are set to 0 and 1
respectively and Rn has a value of 45h.
Performing MOVX @Rn, A, (where n is 0 or 1) allows the
user to transfer the value of A to the expanded SRAM at
address 145h (page 1).
6
B
ANK
Unused
C
ONTROL
5
Description
Data Bank Select Enable Bit
BSE=1, Data Bank Select enabled
BSE=0, Data Bank Select disabled
-
-
-
Allows the mapping of the 1KB of SRAM
into the 040h - 07Fh SRAM space
R
EGISTER
4
(DBANK) – SFR 86
BS3
3
page 10 of 48
BS2
2
H
BS1
1
BS0
0

Related parts for vrs51c1000