Zen Peripherals · Automotive · brief · 2026-11-04

How does your motor controller know where the rotor is?

The Zen Position Decoder is the rotor/shaft position-feedback block for closed-loop motor control — it reads where the motor is so a PWM drive can steer it. It carries two decode paths that run side by side: an incremental quadrature encoder decoder (A/B/Z, x1/x2/x4) and a resolver-to-digital path that turns sine/cosine samples into a shaft angle via a CORDIC atan2. For motor-control SoC integrators building EV traction, EPS steering, and BLDC/PMSM drives. Every number here is sourced from the product datasheet or marked TBC.

1. Position Decoder in one paragraph

The Position Decoder closes the motor loop: the PWM drive moves the rotor, and this block tells the controller where the rotor actually is. Feed it an incremental quadrature encoder — conditioned A/B/Z lines — and it decodes direction and a signed 32-bit position at x1, x2, or x4 resolution, homes or captures on the index pulse, measures speed over a programmable window, and flags illegal A/B transitions. Feed it digitized resolver sine/cosine instead, and a 14-stage CORDIC atan2 turns them into a 16-bit shaft angle plus a wrap-safe angular speed. Both paths run concurrently; the integrating wrapper picks which feedback source is active, and a single interrupt line aggregates index, speed, and fault events.

x1 / x2 / x4selectable quadrature resolution
16-bitresolver angle, LSB ≈ 0.0055°
≤ 3 LSBCORDIC angle vs atan2 (all quadrants)
17 / 17assertion-based tests passing
Position Decoder sensor front endencoder / resolver quadrature decodex1 / x2 / x4 · position · speed resolver CORDICsin / cos → angle motor-control SoCPWM / FOC loop A/B/Z sin/cos pos / angle / irq
Figure 1. The decoder sits between the sensor front end and the motor-control SoC: a quadrature encoder or a resolver ADC feeds conditioned digital signals in; two decode paths produce signed position/speed and shaft angle out to the controller.
Two feedback types, one block. Quadrature and resolver paths coexist and run at the same time — you select the active source at integration without instantiating two separate decoders. The quadrature counter keeps running while the resolver pipeline computes the next angle.
The analog boundary is yours. The block takes conditioned digital A/B/Z and digital sin/cos samples in. The encoder line receiver and the resolver excitation plus sin/cos ADC sit outside the block — supply them in your design.

2. What it is, at a glance

ElementDetailStatus
Quadrature decodeA/B gray-code, 90° apart; signed directionexists
Resolution modesx1 / x2 / x4 edge selectionexists
Position countersigned 32-bit, R/W preset to home/offset, MODULO wrapexists
Index (Z) actionreset-to-home or capture-to-registerexists
Speedsigned counted edges per programmable windowexists
Glitch filterper-channel debounce; programmable dwellexists
Resolver angle14-stage CORDIC atan2; 16-bit, 4-quadrantexists
Angular speedwrap-safe signed delta (360°→0° reads small)exists
Fault detectionillegal-transition + resolver loss-of-signal, both stickyexists
Interrupts4 maskable sources, one aggregated lineexists
Hall-sensor commutationroadmapTBC
BiSS / EnDat / SSI absolute encodersroadmapTBC
Max input rate / fmax at nodecharacterization downstreamTBC

Sources: Zen Position Decoder product datasheet; as-built RTL.

3. How a client uses it

  1. Instantiate the decoder on the peripheral bus; wire its single interrupt line into your controller.
  2. Connect a sensor — route an A/B(/Z) encoder through a line receiver, or feed digitized resolver sin/cos with a per-sample strobe. Both can be wired; select the active source at integration.
  3. Configure — pick x1/x2/x4 and glitch-filter dwell for the encoder, or the resolver magnitude-fault bounds; set the speed window; choose index reset-to-home or capture.
  4. Read the loop — the controller reads signed position and speed (quadrature) or 16-bit angle and angular speed (resolver) each cycle to run the field-oriented control.
  5. React to faults — route the sticky illegal-transition and resolver loss-of-signal flags into your safety aggregator for an ISO 26262 fault reaction.

4. Verification & provenance

Sources read

Sources: Zen Position Decoder product datasheet; as-built RTL.