DS89C420-ENL MAXIM [Maxim Integrated Products], DS89C420-ENL Datasheet - Page 20

no-image

DS89C420-ENL

Manufacturer Part Number
DS89C420-ENL
Description
Ultra-High-Speed Microcontroller
Manufacturer
MAXIM [Maxim Integrated Products]
Datasheet
ON-CHIP MOVX DATA MEMORY
On-chip data memory is provided by the 1kB SRAM and occupies addresses 0000h through 03FFh. The
internal data memory is disabled after a power-on reset, and any MOVX instruction directs the data
memory access to the external data memory. To enable the internal data memory, software must
configure the data memory enable bits DME1 and DME0 (PMR.1-0). See “SFR Bit Descriptions” in the
DS89C420 User’s Guide for data memory configurations. Once enabled, MOVX instructions with
addresses inside the 1k range access the on-chip data memory, and addresses exceeding the 1k range
automatically access external data memory.
An internal data memory cycle spans only one system clock period to support fast internal execution.
DATA POINTER INCREMENT/DECREMENT AND OPTIONS
The DS89C420 incorporates a hardware feature to assist applications that require data pointer
increment/decrement. Data pointer increment/decrement bits ID0 and ID1 (DPS.6 and DPS.7) define how
the INC DPTR instruction functions in relation to the active DPTR (selected by the SEL bit). Setting
ID0 = 1 and SEL = 0 enables the decrement operation for DPTR, and execution of the INC DPTR
instruction decrements the DP TR contents by 1. Similarly, setting ID1 = 1 and SEL = 1 enables the
decrement operation for DPTR1, and execution of the INC DPTR instruction decrements the DPTR1
contents by 1. With this feature, the user can configure the data pointers to operate in four ways for the
INC DPTR instruction:
The active data pointer is always selected by the SEL (DPS.0) bit. The DS89C420 offers a programmable
option that allows any instructions related to data pointer to toggle the SEL bit automatically. This option
is enabled by setting the toggle-select-enable bit (TSL-DPS.5) to a logic 1. Once enabled, the SEL bit is
automatically toggled after the execution of one of the following five DPTR-related instructions:
The DS89C420 also offers a programmable option that automatically increases (or decreases) the
contents of the selected data pointer by 1 after the execution of a DPTR-related instruction. The actual
function (increment or decrement) is dependent upon the setting of the ID1 and ID0 bits. This option is
enabled by setting the automatic increment/decrement enable (AID-DPS.4) to a logic 1 and is affected by
one of the following three instructions:
ID1
0
0
1
1
ID0
0
1
0
1
Increment DPTR
Decrement DPTR
Increment DPTR
Decrement DPTR
MOV DPTR #data16
MOVC A, @A+DPTR
MOVC A, @A+DPTR
MOVX A, @DPTR
MOVX @DPTR, A
MOVX A, @DPTR
MOVX @DPTR, A
SEL = 0
INC DPTR
20 of 58
Increment DPTR1
Increment DPTR1
Decrement DPTR1
Decrement DPTR1
SEL = 1
DS89C420

Related parts for DS89C420-ENL