SPRUJ55D September 2023 – July 2025 AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
This diagnostics check can be used for detecting any drift in the DC offset of Sine and Cosine Inputs to RDC. The DC offset estimation block of RDC will correct DC offsets, but through software a threshold can be programmed for detecting excessive and unexpected DC offset values in the Sine and Cosine Inputs to RDC. A seperate positive and negative threshold can be programmed and can be of different magnitude/values. The external Resolver connected to RDC needs to be rotating for this diagnostics to work.
The below Table 7-126 shows the relevant diagnostics registers for both RDC0 and RDC1.
| RDC Instance | Diagnostic Register Name | Physical Address | Offset |
|---|---|---|---|
| RDC0 | DIAG1_0 | 502C B098h | 098h |
| RDC1 | DIAG1_1 | 502C B268h | 268h |
The below Table 7-127 shows the corresponding bits to be programmed in the diagnostics registers. The typical programmed value can be about 3295d, which is 5% of the signal's total dynamic range.
| Diagnostic Register Name | Bit | Field | Type | Reset | Typical Programmed Value | Description |
|---|---|---|---|---|---|---|
|
DIAG1_0 |
31:16 | offsetdrift_threshold_lo | R/W | 0h | -3295d | An estimated DC Offset lower than the programmed magnitude would trigger change in the status bits |
| 15:0 | offsetdrift_threshold_hi | R/W | 0h | +3295d | An estimated DC Offset higher than the programmed magnitude would trigger change in the status bits |
The below Table 7-128 shows the register bits of IRQ registers to be used for Reading Status, Enabling/Disabling the Error Diagnostic check.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 23 | offsetdrift_cos_hi_err | R/W | 0h | Cosine Signal Drift Crossing the High Threshold Error |
| 22 | offsetdrift_cos_lo_err | R/W | 0h | Cosine Signal Drift Crossing the Low Threshold Error |
| 21 | offsetdrift_sin_hi_err | R/W | 0h | Sine Signal Drift Crossing the High Threshold Error |
| 20 | offsetdrift_sin_lo_err | R/W | 0h | Sine Signal Drift Crossing the Low Threshold Error |
The typical steps for programming the Sine and Cosine DC Offset Drift checks are mentioned below.
Associated AM263Px MCU+ SDK API with this check: Diag_Mon_SinCos_Offset_drift_data