ZHCAE13B May   2024  – April 2025 TPS2HCS10-Q1

 

  1.   1
  2.   摘要
  3.   商标
  4. 1软件生态系统
  5. 2平台驱动程序
    1. 2.1 驱动程序概念
    2. 2.2 支持平台
    3. 2.3 移植到其他平台
    4. 2.4 API 指南
      1. 2.4.1  tHCSResponseCode 联合体参考
      2. 2.4.2  float_t HCS_convertCurrent (uint16_t rawValue, uint16_t ksnsVal, uint16_t snsRes)
      3. 2.4.3  float_t HCS_convertTemperature (uint16_t rawValue)
      4. 2.4.4  float_t HCS_convertVoltage (uint16_t rawValue)
      5. 2.4.5  tHCSResponseCode HCS_getChannelFaultStatus (uint8_t chanNum, uint16_t * fltStatus)
      6. 2.4.6  tHCSResponseCode HCS_getDeviceFaultSatus (uint16_t * fltStatus)
      7. 2.4.7  tHCSResponseCode HCS_gotoLPM (tps2hcsxx_man_lpm_exit_curr_ch1_mask_t ch1ExitCurrent, tps2hcsxx_man_lpm_exit_curr_ch2_mask_t ch2ExitCurrent, uint16_t existingValue)
      8. 2.4.8  tHCSResponseCode HCS_gotoSleep (void )
      9. 2.4.9  tHCSResponseCode HCS_initializeDevice (TPS2HCSXXQ1_CONFIG * config)
      10. 2.4.10 tHCSResponseCode HCS_readRegister (uint8_t addr, uint16_t * readValue)
      11. 2.4.11 tHCSResponseCode HCS_setSwitchState (uint8_t swState)
      12. 2.4.12 tHCSResponseCode HCS_updateConfig (TPS2HCS10Q1_CONFIG * config)
      13. 2.4.13 tHCSResponseCode HCS_wakeupDevice (void )
      14. 2.4.14 tHCSResponseCode HCS_writeRegister (uint8_t addr, uint16_t payload)
  6. 3配置或评估工具
  7. 4代码示例
    1. 4.1 空示例
    2. 4.2 I2T 跳变示例
    3. 4.3 低功耗模式示例
    4. 4.4 电流检测示例
  8. 5总结
  9. 6参考资料
  10. 7修订历史记录

支持平台

智能保险丝驱动器和配置包包含针对多种不同微控制器或处理器的实现示例。会定期添加其他实现,但当前架构和相关开发套件的列表如表 2-1 所示:

可以通过实现节 2.3中所述的相关器件级函数来添加其他器件支持。

HSS-HCMOTHERBRDEVM 具有通用 SPI 接头,可用于将外部 SPI 信号插入 到所连接的高侧开关子卡中。在开发代码示例和 HCS 平台驱动程序期间,下面列出的开发板与 HSS-HCMOTHERBRDEVM 协同使用以进行验证。下面的图 2-2 中提供了此配置中使用的 LP-MSPM0G3507 评估模块的示例:

 连接的 MSPM0+图 2-2 连接的 MSPM0+

下图展示了使用 NUCLEO-H723ZG 板的连接:

 NUCLEO-H723ZG 连接图 2-3 NUCLEO-H723ZG 连接