QuadDec compare interrupt

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
mata_4341751
Level 1
Level 1

QuadDec is configured to compare Interrupt. Why is there an interrupt when QuadDec is started?

The QuadDec is startup with the following interface:

QuadDec_Int_StartEx(QuadDec_Hall_Int);

QuadDec_Hall_Start();

QuadDec_Hall_Enable();

QuadDec_Hall_TriggerCommand(QuadDec_Hall_MASK, QuadDec_Hall_CMD_RELOAD);

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

这个需要看你的中断配置,正交解码器可以配置CC和TC中断,start之后有中断不能作为异常的依据。

我在042的工程里面写了一个CC中断的测试工程,可以正常进入和退出中断程序,你可以参考一下。

pastedImage_0.png

更多的信息,你可以参考TRM:https://www.cypress.com/file/126171/download

同时可以参考组件的datasheet。

View solution in original post

0 Likes
1 Reply
lock attach
Attachments are accessible only for community members.
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

这个需要看你的中断配置,正交解码器可以配置CC和TC中断,start之后有中断不能作为异常的依据。

我在042的工程里面写了一个CC中断的测试工程,可以正常进入和退出中断程序,你可以参考一下。

pastedImage_0.png

更多的信息,你可以参考TRM:https://www.cypress.com/file/126171/download

同时可以参考组件的datasheet。

0 Likes