17 – data pointer control register (dpc, 0eh[04h]), 18 – general register (gr, 0eh[05h]), 19 – general register low byte (grl, 0eh[06h]) – Maxim Integrated DS4830A Optical Microcontroller User Manual

Page 31: 20 – frame pointer base register (bp, 0eh[07h])

Advertising
background image

DS4830A User’s Guide

31

3.17 – Data Pointer Control Register (DPC, 0Eh[04h])

Initialization: This register is cleared to 001Ch on all forms of reset.
Access: Unrestricted direct read/write access.

BIT

NAME

DESCRIPTION

15:5 RESERVED Reserved. All reads return 0.

4

WBS2

Word/Byte Select 2. This bit selects access mode for BP[OFFS]. When WBS2 is set to logic 1, the
BP[Offs] is operated in word mode for data memory access; when WBS2 is cleared to logic 0,
BP[Offs] is operated in byte mode for data memory access.

3

WBS1

Word/Byte Select 1. This bit selects access mode for DP[1]. When WBS1 is set to logic 1, the
DP[1] is operated in word mode for data memory access; when WBS1 is cleared to logic 0, DP[1]
is operated in byte mode for data memory access.

2

WBS0

Word/Byte Select 0. This bit selects access mode for DP[0]. When WBS0 is set to logic 1, the
DP[0] is operated in word mode for data memory access; when WBS0 is cleared to logic 0, DP[0]
is operated in byte mode for data memory access.

1:0

SDPS[1:0]

Source Data Pointer Select Bits[1:0]. These bits select one of the three data pointers as the active
source pointer for the load operation. A new data pointer must be selected before being used to
read data memory:

SDPS1

SDPS0

SOURCE POINTER SELECTION

0

0

DP[0]

0

1

DP[1]

1

0

FP (BP[Offs])

1

1

Reserved (select FP if set)

These bits default to 00b but do not activate DP[0] as an active source pointer until the SDPS bits
are explicitly cleared to 00b or the DP[0] register is written by an instruction. Also, modifying the
register contents of a data/frame pointer register (DP[0], DP[1], BP or Offs) will change the setting
of the SDPS bits to reflect the active source pointer selection.

3.18 – General Register (GR, 0Eh[05h])

Initialization: This register is cleared to 0000h on all forms of reset.
Access: Unrestricted direct read/write access.

BIT

DESCRIPTION

15:0

This register is intended primarily for supporting byte operations on 16-bit data. The 16-bit register
is byte-readable, byte-writeable through the corresponding GRL and GRH 8-bit registers and byte-
swappable through the GRS 16-bit register.

3.19 – General Register Low Byte (GRL, 0Eh[06h])

Initialization: This register is cleared to 00h on all forms of reset.
Access: Unrestricted direct read/write access.

BIT

DESCRIPTION

7:0

This register reflects the low byte of the GR register and is intended primarily for supporting byte
operations on 16-bit data. Any data written to the GRL register will also be stored in the low byte of
the GR register.

3.20 – Frame Pointer Base Register (BP, 0Eh[07h])

Initialization: This register is cleared to 0000h on all forms of reset.
Access: Unrestricted direct read/write access.

BIT

DESCRIPTION

15:0

This register serves as the base pointer for the Frame Pointer (FP). The Frame Pointer is formed
by unsigned addition of Frame Pointer Base Register (BP) and Frame Pointer Offset Register
(Offs). The content of this base pointer register is not affected by increment/decrement operations
performed on the offset (OFFS) register.

Advertising