SLVAFT2A May 2024 – July 2024 TPS2HCS10-Q1
The empty code example is a simple code example that is used to serve as a starting point for smart fuse applications. All this code example does is boot up, configure the underlying SPI peripheral, and then pass control off to the user. The main part of the initial configuration are shown in the following:
/* Configuring the device initially */
HCS_wakeupDevice();
HCS_initializeDevice(&exportConfig);
The HCS_wakeupDevice function simply issues a dummy write to the device. Out of reset, the HCS family is in sleep mode. The wakeup function issues a write to register 0xFF (which doesn't exist) to make sure that the device is out of sleep.
The HCS_initializeDevice function takes the configuration file exported from the Smart Fuse Configurator application and loads it into the high-side switch. This function is typically called every time on MCU boot-up to initialize the high-side switch.