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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user