SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
There is a comparator block responsible for the thermal alert function of the CTRL_MODULE_CORE thermal management logic. This comparator block is composed of two comparators. One dedicated to low temperature threshold and the other one to high temperature threshold. Because of the five temperature sensors there are also five comparator blocks. Software can configure the low temperature threshold through the CTRL_CORE_BANDGAP_THRESHOLD_x[9:0] THOLD_COLD_x bit fields and high temperature threshold through the CTRL_CORE_BANDGAP_THRESHOLD_x[25:16] THOLD_HOT_x bit fields. The values which have to be loaded in these bit fields are the same as those listed in Table 18-13. For example, to set the high temperature threshold value to 120°C, the THOLD_HOT filed must be loaded with value of 931 (0x3A3).
The thermal alert logic provides also a capability to mask the outputs of the comparators associated with low and high temperature thresholds. The low temperature threshold comparator outputs are masked by setting to 0x0 the corresponding MASK_COLD_x bits in the CTRL_CORE_BANDGAP_MASK_1 and CTRL_CORE_BANDGAP_MASK_2 registers. The high temperature threshold comparator outputs are masked by setting to 0x0 the corresponding MASK_HOT_x bits in CTRL_CORE_BANDGAP_MASK_1 and CTRL_CORE_BANDGAP_MASK_2 registers.
The masked low and high temperature threshold outputs are ORed once and as a result a single thermal alert signal is produced. As there are five temperature sensors there are also five thermal alert output signals produced. These five signals are then ORed (see Figure 18-6) in the CTRL_MODULE_CORE_IRQ_THERMAL_ALERT signal, which delivers an interrupt to the IRQ_CROSSBAR_121 input line of the IRQ_CROSSBAR module. Software can use this interrupt to implement the device thermal management policy. The CTRL_MODULE_CORE_IRQ_THERMAL_ALERT signal is also routed to the CTRL_CORE_BANDGAP_STATUS_1[31] ALERT bit. Value of 0x1 indicates that the CTRL_MODULE_CORE_IRQ_THERMAL_ALERT signal is asserted.
The non masked (raw) comparator outputs are available for reading through the corresponding bits in the CTRL_CORE_BANDGAP_STATUS_1 and CTRL_CORE_BANDGAP_STATUS_2 registers. The low temperature threshold comparator outputs are read through the COLD_x bits and the high temperature threshold comparator outputs through the HOT_x bits.
Figure 18-7 shows the behavior of the thermal alert logic.
For details regarding the CTRL_CORE_BANDGAP_THRESHOLD_x registers, see Table 18-12.
Figure 18-7 Behavior Of The Thermal Alert Logic