Quadrature Decode (QDEC) Mode support simultaneous counting on both the rising and falling edges

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Quadrature Decode (QDEC) Mode support simultaneous counting on both the rising and falling edges

205 Views
192064963
Contributor II

Hello, does the Quadrature Decode (QDEC) Mode(for count and direction encoders type) of the eMIOS module in the MPC5777c processor support simultaneous counting on both the rising and falling edges by setting the EDSEL bit, and generating an event when the internal counter matches the A1 register?

1.PNG

 

As shown by the underlined part in the above picture, is the EDSEL bit valid in the Quadrature Decode (QDEC) Mode (for count and direction encoders type)?

0 Kudos
Reply
2 Replies

171 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

does the Quadrature Decode (QDEC) Mode(for count and direction encoders type) of the eMIOS module in the MPC5777c processor support simultaneous counting on both the rising and falling edges by setting the EDSEL bit,

No. as EDSEL bit describes, the implementation for each mode is state in mode description.

petervlna_1-1757921212696.png

 

In QDEC mode (mode 0x0D), the eMIOS hardware automatically handles quadrature decoding, including edge detection and direction.

The QDEC mode uses two input signals (A and B) and interprets their transitions to determine both count and direction. This logic is independent of the EDSEL bit.

Therefore, setting EDSEL has no effect in QDEC mode—it is ignored by the hardware.

 

 

Best regards,

Peter

0 Kudos
Reply

99 Views
192064963
Contributor II
Understood, thank you very much.
0 Kudos
Reply