User`s guide

LZ87010 Advance User’s Guide Analog Outputs (DAC)
1/15/03 14-7
14.3.4 WGINX0 and WGINX1 (Index) Registers
The WGINX0 and WGINX1 (Waveform Generator Index) registers hold a pointer to the
next byte in waveform memory that will be sent to the DAC.
14.3.5 WGMA0 and WGMA1 (Memory Address) Registers
The WGMA0 and WGMA1 (Waveform Generator Memory Address) registers hold the next
value to be read or written by the processor when it accesses the WGMD0 or WGMD1 reg-
ister. These registers are post-incremented by WGMD0.STEP or WGMD1.STEP after
each access. To write a waveform pattern to waveform memory, the processor writes the
starting address to WGMA0 or WGMD0 and sets the STEP field, then writes successive
bytes to the WGMD0 or WGMD1 register.
Table 14-11. WGINX Registers
BIT 7 6 5 4 3 2 1 0
FIELD /// INDEX[6] INDEX[5] INDEX[4] INDEX[3] INDEX[2] INDEX[1] INDEX[0]
RESET 00000000
RW RW RW RW RW RW RW RW RW
ADDR
WGINX0: 0xCE
WGINX1: 0xCF
Table 14-12. WGINX0 and WGINX1 Register Bits
BIT NAME DESCRIPTION
7///Reserved Reads ‘0’. Write as ‘0’.
6:0 INDEX[6:0]
Memory Address Index Set by software to the initial address of the waveform
pattern. This is incremented by STEP (modulo 128) on each input clock cycle.
Table 14-13. WGMA0 and WGMA1 Register
BIT 7 6 5 4 3 2 1 0
FIELD /// WGMA[6] WGMA[5] WGMA[4] WGMA[3] WGMA[2] WGMA0[1] WGMA[0]
RESET 00000000
RW RW RW RW RW RW RW RW RW
ADDR
WGMA0: 0xFA
WGMA1: 0xFC
Table 14-14. WGMA0 and WGMA1 Register Bits
BIT NAME DESCRIPTION
7 /// Reserved Reads ‘0’. Write as ‘0’.
6:0 WGMA[6:0]
Waveform Memory Address Determines the address of the waveform
memory when data is read or written by software. This value is post-
incremented by the value of the STEP field on reads or writes to WGMD0
or WGMD1 register.