R to, Figure 14, Cs5484 – Cirrus Logic CS5484 User Manual
Page 23
CS5484
DS981F3
23
After reset, all four energy pulse generation blocks are
disabled (DOxMODE[3:0] = Hi-Z). To output a desired
energy pulse to a DOx pin, it is necessary to follow the
steps below:
1. Write to register PulseWidth (page 0, address 8) to
select the energy pulse width and pulse frequency
range.
2. Write to register PulseRate (page 18, address 28) to
select the energy pulse rate.
3. Write to register PulseCtrl (page 0, address 9) to
select the input to each energy pulse generation
block.
4. Write ‘1’ to bit EPGx_ON of register Config1 (page 0,
address 1) to enable the desired energy pulse
generation blocks.
5. Wait at least 0.1 seconds.
6. Write bits DOxMODE[3:0] of register Config1 to
select DOx to output pulses from the appropriate
energy pulse generation block.
7. Send DSP instruction (0xD5) to begin continuous
conversion.
P
SUM
Sign
Q
SUM
Sign
P1 Sign
P2 Sign
Q1 Sign
Q2 Sign
V1/V2 Crossing
I1/I2 Crossing
DO1_OD
(Config1)
DO2_OD
(Config1)
DO4_OD
(Config1)
(PulseCtrl) EPGxIN[3:0]
DOxMODE[3:0]
(Config1)
DO4
DO2
DO1
Hi-Z
Interrupt
P
SUM
Q
SUM
S
SUM
P1
AVG
P2
AVG
Q1
AVG
Q2
AVG
S1
AVG
S2
AVG
PULSE RATE
EPGx_ON
(Config1)
MCLK
(PulseWidth) PW[7:0]
(PulseWidth) FREQ_RNG[3:0]
0000
0001
0010
0011
0100
0101
0110
0111
1000
Ene
rg
y Pu
ls
e
G
e
ne
ra
ti
o
n
(
E
PG
1
)
E
n
e
rg
y
P
u
ls
e
G
e
n
e
ra
ti
o
n
(E
P
G
2
)
E
n
e
rgy
Pul
s
e
G
e
ne
ra
ti
on
(
E
PG
3
)
4
4
8
4
D
ig
it
a
l O
u
tp
u
t
M
u
x
(D
O
3
)
D
ig
it
a
l O
u
tp
u
t
M
u
x
(D
O
2
)
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
D
ig
it
a
l O
u
tp
u
t
M
u
x
(D
O1
)
RESERVED
RESERVED
E
n
e
rgy
Pul
s
e
G
e
ne
ra
ti
on
(
E
PG
4)
DO3_OD
(Config1)
DO3
Di
g
it
a
l O
u
tp
u
t
M
u
x
(
D
O
4
)
Figure 14. Energy Pulse Generation and Digital Output Control