SPRUJ55D September 2023 – July 2025 AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
As the motor rotates the external Resolver generates Sine and Cosine signals where in
Rotational Sine or Cosine, meaning the demodulated signal containing the modulating Sine and Cosine signal, without the excitation signal part. This Diagnostic check monitors the demodulated rotational Sine and Cosine components obtained from the RDC input signals after demodulation and after Phase and Gain correction.
Since this check depends on the zero crossings
A zero crossing is detected on Sine and Cosine signals when they pass from ±rotfreq_level to ∓rotfreq_level. When there is more than 1 zero crossing, between 2 zero crossings of the other signal, this fault is immediately triggered and the sin_multi_zc_error_count counter counts the number of zero crossings of the failing signal. For example, if there are 5 Sine zero crossings between 2 Cosine Zero crossings, sin_multi_zc_error_count = 5.
The below Table 7-138 shows the relevant diagnostics registers for both RDC0 and RDC1.
| RDC Instance | Register Name | Physical Address | Offset |
|---|---|---|---|
| RDC0 | DIAG12_0 | 502C B0C4h | 0C4h |
| DIAG13_0 | 502C B0C8h | 0C8h | |
| RDC1 | DIAG12_1 | 502C B294h | 294h |
| DIAG13_1 | 502C B298h | 298h |
The below Table 7-139 shows the corresponding bits to be programmed in the diagnostics registers.
| Register | Bit | Field | Type | Reset | Typical Programmed Value | Description |
|---|---|---|---|---|---|---|
|
DIAG12_0 |
31:16 | rotpeak_level | R/W | 0x0 | 26214(with Phase and Gain Correction) or 18351 | Expected value of Peak level of Sine or Cosine when the other signal crossed zero |
| 15:0 | rotfreq_level | R/W | 0x0 | 128 | Expected ±value for detecting Zero Crossing for Sine or Cosine | |
|
DIAG13_0 |
31:24 | cos_multi_zc_error_count | R | x | Count of faulty Cosine signal zero crossings | |
| 23:16 | sin_multi_zc_error_count | R | x | Count of faulty Sine signal zero crossings | ||
| 3 | cos_neg_zc_peak_mismatch_err | R | x | During negative zero crossing of Cosine signal, the Sine signal is not beyond +ve or -ve peak | ||
| 2 | cos_pos_zc_peak_mismatch_err | R | x | During positive zero crossing of Cosine signal, the Sine signal is not beyond +ve or -ve peak | ||
| 1 | sin_neg_zc_peak_mismatch_err | R | x | During negative zero crossing of Sine signal, the Cosine signal is not beyond +ve or -ve peak | ||
| 0 | sin_pos_zc_peak_mismatch_err | R | x | During positive zero crossing of Sine signal, the Cosine signal is not beyond +ve or -ve peak |
The below Table 7-140 shows the register bits of IRQ registers to be used for Reading Status, Enabling/Disabling the Error Diagnostic check.
| Bit | Field | Type | Reset | Description |
|---|---|---|---|---|
| 10 | sin_pos_zc_peak_mismatch_err | R/W | 0x0 | During positive zero crossing of Sine signal, the Cosine signal is not beyond +ve or -ve peak |
| 9 | sin_neg_zc_peak_mismatch_err | R/W | 0x0 | During negative zero crossing of Sine signal, the Cosine signal is not beyond +ve or -ve peak |
| 8 | cos_pos_zc_peak_mismatch_err | R/W | 0x0 | During positive zero crossing of Cosine signal, the Sine signal is not beyond +ve or -ve peak |
| 7 | cos_neg_zc_peak_mismatch_err | R/W | 0x0 | During negative zero crossing of Cosine signal, the Sine signal is not beyond +ve or -ve peak |
| 6 | sin_multi_zc_error_err | R/W | 0x0 | Between two Cosine zero crossings, there are multiple Sine zero crossings |
| 5 | cos_multi_zc_error_err | R/W | 0x0 | Between two Sine zero crossings, there are multiple Cosine zero crossings |
The below are the typical steps for programming the Rotational Signal Integrity Diagnostics.
Associated AM263Px MCU+ SDK API with this check: Diag_Mon_Rotational_Signal_Integrity_data