
DECA User Manual
61
www.terasic.com
May 22, 2015
The directory includes the following files:
Batch file: test.bat
FPGA configuration file: DECA_Power_Monitor.sof
Demonstration Setup
Quartus II v15.0 must be pre-installed to the host PC.
Connect the DECA board (J10) to the host PC with a USB cable and install the USB-Blaster II
driver if necessary
Plug the 5V adapter to DECA Board
Execute the demo batch file “ test.bat” from the directory \DECA_Power_Monitor\demo_batch
Double click the PowerM.stp in the path\DECA_Power_Monitor\demo_batch
QuartusII SignalTap II will be activated as shown in
Figure 5-7
.
Click Signaltap II "Start" to run Signaltap II.
Calibration value and Current value will display on SignalTap II window.
Figure 5-7 Reading the register value of voltage and current via I2C interface
5
5
.
.
5
5
P
P
r
r
o
o
x
x
i
i
m
m
i
i
t
t
y
y
/
/
A
A
m
m
b
b
i
i
e
e
n
n
t
t
L
L
i
i
g
g
h
h
t
t
S
S
e
e
n
n
s
s
o
o
r
r
There is a Proximity/Ambient Light Sensor IC (Si1143) with three LEDs on the back of D
ECA. This demonstration will show how to use this IC to measure the distance between D
ECA board and an object. The light from three Infrared Light diodes (DS1~DS3) impinge
on an object and reflect to Si1143 photodiode. Photodiode converts the brightness of three i
nfrared lights into three electricity values, pass the values to ADC IC to convert into digita