2021-11-11 08:32 AM
I am trying to receive data from the HX711 amp. This module requires a CLK signal from the mcu (stm32407VG). What is the best solution to send a clock signal to the HX711 module from a GPIO pin ? How to configure this GPIO pin in CubeMx ?
2021-11-11 09:03 AM
This isn't an ST product, expect to have to read the data-sheet and implement a suitable interface to the STM32
Based on my reading of the data-sheet you'll need to configure two GPIO, one as input the other as output, and review the protocol so you can implement it in your code.
I'd say you'd need to start with a bit-banging driver, and then see if you can optimize that, of make it TIM or IRQ driven.
2021-11-11 12:56 PM
Keep in mind that PD_SCK longer than 50 us sets the device in PowerDown. If you Bitbang make sure not to hit that limit! Generating with a timer or UART will generate secure timing.