Tool/software: Code Composer Studio
Hi,
I'm using a TMDSCNCD28069MISO Piccolo F28069M controlCARD. I'm working with lab 12b, the encoder resolution is 18000 PPR, my BLDC motor has 5 pole pairs. I defined encoder resolution as below
#define USER_MOTOR_ENCODER_LINES (18000)
and after compilation i have a warning: #62-D: integer operation result is out of range
I believe, in effect of warning the value of register QPOSMAX is equal 6462 (i think for encoder with resolution 18000 this value should be equal 4*18000=72000) and next issue is that when i manually rotate the motor 1 revolution clockwise the value in "st_obj.vel.conv.Por_mrev" increases to 10, next decreases and after one revolution "st_obj.vel.conv.Por_mrev" is approximately equal to -8,5.
Is there any way to solve this problem?
Thanks for the help