modified ADC trigger: now it starts before ADC samplig (as it was), stops after some ADC clocks (while in current varying routine)

This commit is contained in:
2025-10-16 17:33:05 +03:00
parent 76b6bb36f8
commit 03bb95db58
7 changed files with 9390 additions and 9387 deletions

View File

@ -410,8 +410,9 @@ int main(void)
Set_LTEC(TT_CHANGE_TEMP_2, temp16);//Drive Laser TEC 2
// Toggle pin for oscilloscope
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, GPIO_PIN_SET); //start of the whole frequency sweep procedure
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, GPIO_PIN_SET); //start of the whole frequency sweep procedure (start trigger pulse)
//for (uint32_t i = 100000; i; --i){;}
st = HAL_TIM_Base_Start_IT(&htim10);
if (st != HAL_OK)
@ -461,6 +462,8 @@ int main(void)
++trigger_counter;
}
++step_counter;
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_7, GPIO_PIN_RESET); //stop trigger pulse
//*/
/*
++task_sheduler;