Arrow DECA User Manual page 63

Table of Contents

Advertisement

l data and save in register. This IC register can be read by MAX10 I2C bus and the IC sl
ave address is 0xb4.
 Function Block Diagram
Figure 5-8
is the function block diagram of this demonstration. LSEN_CTRL module is used to
read three digital values in register. Three digital values are 16-bit, low byte and high byte are saved
respectively in two registers. LSEN_CTRL module keep sending I2C master timing to read three
registers: PS1_DATA [ PS1_DATA1(0x27) :PS1_DATA0(0x26)], PS2_DATA [ PS2_DATA1(0x29) :
PS2_DATA0(0x28)], PS3_DATA[PS3_DATA1(0x2b) : PS3_DATA0(0x2a)]. In this demonstration,
we take the average of the three values as the distance value and send it to LEVEL_CAMP,
LEVEL_CAMP will output 8bit level to LED0~LED7.When the object is closest to the light sensor
IC, more LEDs(LED0~LED7) light up. On the contrary, when object gets further to DECA board,
less LEDS light up.
 Design Tools
 Quartus II v15.0
 Demonstration Source Code
 Project directory: Gesture_Light_Sensor_RTL
 Bitstream used: DECA_Gesture_Light_Sensor.sof
 Demonstration Batch File
Demo batch file folder: \Gesture_Light_Sensor_RTL\demo_batch
DECA User Manual
Figure 5-8 Block diagram of the Gesture Light Sensor
62
www.terasic.com
May 22, 2015

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents