Freescale application note AN4380 explains how the i.MX53 SATA module measures die temperature through SATA PHY registers and ADC readouts.
This Freescale application note (AN4380 Rev. 0, 10/2011) describes the SATA temperature sensor feature of the i.MX53. It explains that die temperature is measured from voltage differences in internal analog circuitry and converted by an ADC in the SATA PHY block.
The document details the SATA_P0PHYCR and SATA_P0PHYSR registers used to access internal SATA registers, lists the DAC control, resistor tuning, ADC output, and MPLL test registers, and provides pseudocode for reading and writing internal register values. It states that usable temperature data requires sampling voltage data 80 times for each of two sampling modes and applying a formula.
| Internal SATA register address width | 16 bits |
|---|---|
| SATA_P0PHYCR write access | 32-bit write access only |
| Temperature sampling requirement | 80 samples each for two sampling modes |
| DAC Control Register address | 0x0008 |
| ADC Output Register address | 0x000A |
| MPLL Test Register address | 0x0017 |
| SATA_P0PHYCR i.MX register address | 0x1000_0178 |
The die temperature is measured through voltage differences within the internal analog circuitry and converted by an ADC within the SATA PHY block.
The voltage data must be sampled 80 times each for two different sampling modes, then applied to the formula.
SATA_P0PHYCR and SATA_P0PHYSR are the two registers mapped to the i.MX SATA register locations.
It is used to monitor PHY status and is where the base data for temperature calculation is obtained.