
4/29/2020
Loongson 3A3000 / 3B3000 Processor User Manual
39
44
Do not correspond to high temperature interrupt and low temperature interrupt, any write operation to this register will clear the interrupt status.
The specific descriptions of these registers are as follows:
Table 8- 2 High and low temperature interrupt register description
register
address
control
Explanation
High temperature interrupt control register
Thsens_int_ctrl_Hi
0x3ff01460
RW
[7: 0]: Hi_gate0: high temperature threshold 0, an interrupt will be generated if this temperature is exceeded
[8: 8]: Hi_en0: High temperature interrupt enable 0
[11:10]: Hi_Sel0: Select the temperature sensor input source of high temperature interrupt
[23:16]: Hi_gate1: high temperature threshold 1, exceeding this temperature will generate an interrupt
[24:24]: Hi_en1: High temperature interrupt enable 1
[27:26]: Hi_Sel1: Select the temperature sensor input source for high temperature interrupt 1
[39:32]: Hi_gate2: High temperature threshold 2, above this temperature will generate an interrupt
[40:40]: Hi_en2: High temperature interrupt enable 2
[43:42]: Hi_Sel2: Select the temperature sensor input source for high temperature interrupt 2
[55:48]: Hi_gate3: High temperature threshold 3, exceeding this temperature will generate interrupt
[56:56]: Hi_en3: High temperature interrupt enable 3
[59:58]: Hi_Sel3: Select the temperature sensor input source for high temperature interrupt 3
Low temperature interrupt control register
Thsens_int_ctrl_Lo
0x3ff01468
RW
[7: 0]: Lo_gate0: low temperature threshold 0, below this temperature will generate an interrupt
[8: 8]: Lo_en0: Low temperature interrupt enable 0
[11:10]: Lo_Sel0: Select the temperature sensor input source for low temperature interrupt 0
[23:16]: Lo_gate1: low temperature threshold 1, below this temperature will generate an interrupt
[24:24]: Lo_en1: Low temperature interrupt enable 1
[27:26]: Lo_Sel1: Select the temperature sensor input source for low temperature interrupt 1
[39:32]: Lo_gate2: Low temperature threshold 2, below this temperature will generate an interrupt
[40:40]: Lo_en2: Low temperature interrupt enable 2
[43:42]: Lo_Sel2: Select the temperature sensor input source for low temperature interrupt 2
[55:48]: Lo_gate3: Low temperature threshold 3, below this temperature will generate an interrupt
[56:56]: Lo_en3: Low temperature interrupt enable 3
[59:58]: Lo_Sel3: Select temperature sensor input source for low temperature interrupt 3
Interrupt status register
Thsens_int_status / clr 0x3ff01470
RW
Interrupt status register, write any value to clear the interrupt
[0]: High temperature interrupt trigger
[1]: Low temperature interrupt trigger
8.3 High temperature automatic frequency reduction setting
In order to ensure the operation of the chip in a high-temperature environment, you can set the high-frequency automatic frequency reduction, so that the chip exceeds
In the range, it actively divides the clock to achieve the effect of reducing the chip turnover rate.
For the high temperature frequency reduction function, there are 4 sets of control registers to set its behavior. Each set of registers contains the following four
Control bit:
Page 49
Godson 3A3000 / 3B3000 Processor User Manual • Volume 1
GATE: Set the threshold for high or low temperature. When the input temperature is higher than the high temperature threshold or lower than the low temperature threshold, i
Frequency division operation;
EN: interrupt enable control. The setting of this group of registers is valid after being set to 1;
SEL: Input temperature selection. At present, 3A3000 / 3B3000 integrate two temperature sensors inside, this register is used to configure
The temperature of which sensor is selected as input. You can use 0 or 1.
FREQ: frequency division number. When the frequency division operation is triggered, the frequency is adjusted to FREQ / 8 times the current clock frequency.
Table 8- 3 High-temperature down-frequency control register description
register
address
control
Explanation
Four sets of setting priority from high to low
[7: 0]: Scale_gate0: High temperature threshold 0, frequency will be reduced if this temperature is exceeded