DECA User Manual
76
www.terasic.com
May 22, 2015
Press the CapSense button will light up corresponding LED, as shown in
Figure 6-4
If B0
or B1 is pressed, LED[0] or LED[1] will lit, respectively. If both B0 and B1 are pressed, both
LED[0] and LED[1] will lit simultaneously.
Figure 6-4 Press the CapSense button
6
6
.
.
2
2
T
T
e
e
m
m
p
p
e
e
r
r
a
a
t
t
u
u
r
r
e
e
S
S
e
e
n
n
s
s
o
o
r
r
This demonstration illustrates how to use the LM71CIMF sensor with the Nios II Processor to
realize the function of board temperature detection
. Figure 6-5
shows the system block diagram of
this demonstration. The ambient temperature information, which is collected by the built-in
temperature sensor on the DECA board, can be converted into digital data by a 14-bit A/D converter.
A
Temp Controller
is used by Nios II software to access the sensor’s registers. The C program will
configure and read the registers, and then calculates the centigrade degree. The relative values are
finally displayed onto the nios2-terminal window, in order to let the user monitor the board
real-time temperature.
The sensor has three registers:
Temperature
,
Configuration
and
Manufacturer/Device
Identification
registers, respectively. The sensor will output the manufacturer/device ID
information in shutdown mode when Configuration Register set to 0xFF, and output 16bits
temperature digital data in Continuous conversion mode when Configuration Register set to 0x00.