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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

214 次查看
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 项奖励
回复
2 回复数

180 次查看
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 项奖励
回复

108 次查看
192064963
Contributor II
Understood, thank you very much.
0 项奖励
回复