Skip to content

Commit

Permalink
fix encoder dat late warning, last cube updates has faster adc interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
dukelec committed Jul 1, 2024
1 parent e9675d6 commit 1f6cb23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdrv_fw/usr/app_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ void app_main(void)
__HAL_TIM_SET_COMPARE(&htim1, TIM_CHANNEL_1, DRV_PWM_HALF);
__HAL_TIM_SET_COMPARE(&htim1, TIM_CHANNEL_2, DRV_PWM_HALF);
__HAL_TIM_SET_COMPARE(&htim1, TIM_CHANNEL_3, DRV_PWM_HALF);
__HAL_TIM_SET_COMPARE(&htim1, TIM_CHANNEL_4, 1); // >= 1, ```|_|``` trigger on neg-edge, sensor
__HAL_TIM_SET_COMPARE(&htim1, TIM_CHANNEL_4, 250); // >= 1, ```|_|``` trigger on neg-edge, sensor
__HAL_TIM_SET_COMPARE(&htim1, TIM_CHANNEL_5, 12); // >= 1, ```|_|``` trigger on neg-edge, adc
// adc 3.5 cycles @ 170M/4 -> 82.35 nS -> /2 -> 41.2 nS, pwm 12 -> 70.6 nS /1

Expand Down

0 comments on commit 1f6cb23

Please sign in to comment.