Connect the hardware as mentioned in
previous sections.
Import the demo codes into CCS.
Open project
FAN_Control_host_LP_MSPM0L1306 and comment out #define MSPH3216_6FANs if using
MSPM0C1104 as the fan controller in the file fan_control_host.c. Comment the FANs
operations code if the user is not connected to a FAN in hardware.
Build project
FAN_Control_host_LP_MSPM0L1306 and download the project into LP-MSPM0L1306.
Build project FAN_Controller_MSPM0C1104
or FAN_Controller_MSPM0H3216 depending on which board is used and download the project
into the board.
Keep both boards powered up, run the
logic analyzer, and press the reset button on LP-MSPM0L1306 to resend the commands, or
make the project of FAN_Control_host_LP_MSPM0L1306 start debug mode and start running
debug mode. When all the fans stop after running, pause the code and add the
temp_c4 to watch the window to obtain the temperature result.
The fans starts running from FAN1 to
FAN4/6 in turn and stopped at the same time.
Figure 4-1 shows signals captured with Saleae (The Saleae only has eight channels. Only a few
signals were captured). Analyze the signals with I2C commands to verify if the Saleae
matches expectations.