Other Parts Discussed in Thread: DRV8305, MOTORWARE
In my hal.c file in the HAL_setupGpios function I have:
// ECAP
GPIO_setMode(obj->gpioHandle, GPIO_Number_19, GPIO_19_Mode_ECAP1);
Does ecap mode enable the pull-up by default? I have a 3.3k/6.8k resistor divider to drop a 5V level (4.6V in this case) pwm signal coming into GPIO 19. The ecap module is correctly measuring the incoming signal duty cycle but the voltage at the pin shows 2.1V instead of the expected 3.1V. The 2.1V level would indicate that the 140uA pull-up is enabled. I tried the following code to disable the pull-up;
GPIO_setPullUp(obj->gpioHandle, GPIO_Number_19, GPIO_PullUp_Disable);
But this shows the same functionality. Is the pull-up allowed to be disabled in ecap mode? If so, what am I missing here?