1) Set output high2) When input is low wait till it is high3) When input is high read 6 characters4) When having read 6 characters then output low and return (or leave while loop)void Get_Instruction(){ HAL_GPIO_WritePin(GPIOA, GPIO_PIN_12, GPI...
Thank you both. It is working now like I ment.Using the same kind of routine for 'wait till input is high' (don't know why, but inputs are inverted detected).void Get1PPS() while (PPSstate == 1) { PPSstate = HAL_GPIO_Read...