CY8CKIT-025 PSoC® Precision Analog Temperature Sensor Expansion Board Kit Guide, Doc. # 001-65791 Rev. *J
80
Example Projects
shows the IDAC component configuration. The Polarity parameter of the IDAC is set to
the current sourcing mode and the Speed parameter is set to
High Speed
to have a faster settling
time for the IDAC output.
Figure 5-41. IDAC Configuration
5.4.3.3
Firmware Description and Flowchart
The thermal management system example consists of the main application and thermal manager.
The main application is responsible for the user interface and for periodically calling the thermal
manager. The application implementation is available in
main.c
and on the Test Application tab of the
project schematic. The thermal manager implementation is available in
ThermalManager.c
and on
the Thermal Manager tab of the project schematic.
The main application must call ThermalManager_Start() to initialize the thermal manager. Then it
must periodically call ServiceThermalManager() to run temperature and speed updates. In this
example, this is done every 500 ms but can be changed by modifying
#define THERMAL_UPDATE_MS_RATE in main.c.
All the parameters that define the zone composite temperature sensor algorithm and the zone tem-
perature-to-fan speed algorithm are defined in the beginning of
ThermalManager.c
. To modify these
settings, refer to
ThermalManager.h
for the relevant keywords.
The following flowchart shows the basic function of the thermal manager along with the APIs in
Ther-
malManager.c
that implement the main service loop.