User`s guide

Analog Outputs (DAC) LZ87010 Advance User’s Guide
14-8 1/15/03
14.3.6 WGMD0 and WGMD1 (Memory Data) Registers
The WGMD0 and WGMD1 (Waveform Generator Memory Data) registers are used to
access waveform memory or the DACs. If waveform memory accesses are enabled,
(WGCTL(x).WEN = 1) reads and writes go to waveform memory. Otherwise
(WGCTL(x).WEN = 0), they go directly to the DAC.
Table 14-15. WGMD0 and WGMD1 Registers
BIT 7 6 5 4 3 2 1 0
FIELD WGMD[7] WGMD[6] WGMD[5] WGMD[4] WGMD[3] WGMD[2] WGMD[1] WGMD[0]
RESET 00000000
RW RW RW RW RW RW RW RW RW
ADDR
WGMD0: 0xFB
WGMD1: 0xFD
Table 14-16. WGMD0 and WGMD1 Register Bits
BIT NAME DESCRIPTION
7:0 WGMD[7:0]
Waveform Memory Data Register If the WEN field of the WGCTL(x) reg-
ister is ‘0’, data written to this register is sent directly to the DAC. If the WEN
field is ‘1’, reading this register returns value of the waveform memory at the
address stored in WGMA(x)[6:0]. Writing to this register stores the value in
the waveform memory at the address in WGMA(x)[6:0]. WGMA(x) is post-
incremented by the value of STEP on both reads and writes.