cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

mata_4341751
New Contributor

The QuadDec's phiA and phiB have input frequencies of 700Hz,how do set the QuadDec clock?

0 Likes
Reply
1 Solution
VenkataD_41
Moderator
Moderator

Hi,

>>"I set the clock to 50Hz, but the data read through the "QuadDec_Hall_ReadCounter" API is always 32678."

--> The input clock frequency of QuadDec should be greater than or equal to 7 KHz since the frequency of PhiA and PhiB are 700Hz (as per 10x rule).

>>Please check the "Quadrature_Decoder" code example from PSoC Creator. You can use this project as a reference to test your board.

Kindly update if you have any queries once you have gone through the code example.

Thanks and regards

Ganesh

View solution in original post

0 Likes
Reply
3 Replies
VenkataD_41
Moderator
Moderator

Hi,

The clock input frequency should be greater than or equal to 10x the maximum A or B input frequency.Y

The best practice is to set the QuadDec input clock frequency as high as possible.

Do you have any restriction for keeping this clock frequency high? If yes, what is the limit?

Thanks

Ganesh

0 Likes
Reply
mata_4341751
New Contributor

I set the clock to 50Hz, but the data read through the "QuadDec_Hall_ReadCounter" API is always 32678.

I don't know if the clock configuration is incorrect or the other configuration is incorrect?

0 Likes
Reply
VenkataD_41
Moderator
Moderator

Hi,

>>"I set the clock to 50Hz, but the data read through the "QuadDec_Hall_ReadCounter" API is always 32678."

--> The input clock frequency of QuadDec should be greater than or equal to 7 KHz since the frequency of PhiA and PhiB are 700Hz (as per 10x rule).

>>Please check the "Quadrature_Decoder" code example from PSoC Creator. You can use this project as a reference to test your board.

Kindly update if you have any queries once you have gone through the code example.

Thanks and regards

Ganesh

View solution in original post

0 Likes
Reply