Other Parts Discussed in Thread: TIDA-01057
Hi,
TIDA-01507 connect the EQEP1 just to test points, How can these codes working?
// initialize the ENC module
encHandle = ENC_init(&enc, sizeof(enc));
// setup the ENC module
ENC_setup(encHandle, 1, USER_MOTOR_NUM_POLE_PAIRS, USER_MOTOR_ENCODER_LINES, 0, USER_IQ_FULL_SCALE_FREQ_Hz, USER_ISR_FREQ_Hz, 8000.0);
...
// compute the electrical angle
ENC_calcElecAngle(encHandle, HAL_getQepPosnCounts(halHandle));
..
Thanks,
Nick