User Activity

i am trying to bit bang 14 bits grey code. my output is not steadyuint16_t readbits(uint16_t dataPin, uint16_t clockPin) { uint16_t value =0;  for (int i = 0; i <14; ++i) {   value <<= 1;  HAL_GPIO_WritePin(GPIOC, clockPin, GPIO_PIN_RESET);  delay_...
I made a test code in arduino to read SSI. How can I make the shiftin function work correctly in the stm32 controllers? . In the stm32cubeIDE I can't manage to make it work like in the arduino ide.In the shiftin function the variables: data_pin, cloc...