![Dallas DS87C550 Скачать руководство пользователя страница 67](http://html1.mh-extra.com/html/dallas/ds87c550/ds87c550_user-manual-supplement_3298646067.webp)
DS87C550 High-Speed Microcontroller User’s Guide Supplement
67 of 93
SECTION 6:MEMORY ACCESS
The DS87C550 supports the memory access features of the DS87C520 described in the High-Speed
Microcontroller User's Guide. Exceptions are noted below.
INTERNAL PROGRAM MEMORY
The DS87C550 contains 8 kbytes of EPROM as on-board program storage. This memory resides at fixed
addresses from 0000h to 1FFFh.
ROMSIZE FEATURE
The ROMSIZE feature is used to select the maximum on-chip decoded address for program memory. The
ROMSIZE is selected as follows:
RMS2
RMS1
RMS0
Maximum on-chip
Program Address
0
0
0
0K
0
0
1
1K (0h – 03FFh)
0
1
0
2K (0h – 07FFh)
0
1
1
4K (0h – 0FFFh)
1
0
0
8K (0h – 1FFFh) default
1
0
1
Invalid – reserved
1
1
0
Invalid – reserved
1
1
1
Invalid – reserved
DATA MEMORY ACCESS
Two new features related to the dual data pointers found in the High-Speed Microcontroller family have
been added to the DS87C550. These are a data pointer decrement capability and the ability to
automatically toggle the selection bit between the two data pointers.
Although the 8051 architecture has always had an INC DPTR instruction, users have often wished for the
ability to decrement the data pointers as well. To maintain instruction set compatibility, the DS87C550
supports a decrement data pointer feature through unused bits in the DPS register. Setting the ID1:0
(DPS.7-6) bits and the SEL (DPS.0) bit before performing an INC DPTR instruction selects the active
data pointer and whether it is to be incremented or decremented. By setting these bits, the user can
determine the count direction (increment or decrement) for each data pointer. This allows very efficient
movement of data regardless of whether it is more convenient to traverse the data (source or destination)
from low to high addresses or high to low addresses. The bits were added, and operate in conjunction
with to allow DPTR decrementing as follows:
ID1
ID0
SEL = 0
SEL = 1
0
0
Increment DPTR
Increment DPTR1
0
1
Decrement DPTR
Increment DPTR1
1
0
Increment DPTR
Decrement DPTR1
1
1
Decrement DPTR
Decrement DPTR
The other new feature is the ability to automatically toggle the SEL bit. With this feature enabled, i.e.,
with TSL bit (DPS.5) set, every time an instruction dealing with the DPTR is executed, the SEL bit is
toggled to select the other DPTR. The instructions that affect this automatic toggle function are: