Ask questions, find answers, and share insights on STM32 products and their technical features.
ContextI am working on NUCLEO-U575ZI-Q with an external ADC wired to the board. The ADC generated a rising edge on one of its pins, "DRDY" each time a sample is available.My objective is to retrieve the ADC sample without involving the CPU. The curre...
I am now dealing with the work of I2C. As a device, I connect an Eeprom AT24 chip. There are 10K Ohm pull-up resistors. There are no other devices on the bus and nothing else is connected to the boards. Transmission rate 400 kHz.When I connect Eeprom...
I have an ADC chip, CS5532, that sets the MISO line on PB14 Hi if data not available, and Lo if it is. Can I read the state of the MISO line?Every time I try to do it I read that the pin is Hi (I am reading the IDR register)
Hi everyone,In my project, I try to create a TTL signal generator, and I found a useful function that uses DMA on PWM signal (HAL_TIM_DMABurst_MultiWriteStart), so that I can create arbitrary rectangle signal that I want. I am using a timer frequency...
Have tried using hal_spi_transmit and receive but cant figure it out, any suggestions?
Dear,I currently trying to used the timer in encoder mode.It seems to working fine whatever the mode configured.I useing the timer interrupt (Capture Compare) to read the number of step (Counter (CNT)).In mode 1 and mode 2, the CNT is decrement by 2 ...
What is this value that is written to the USART_BRR register?What is it for?I don’t understand why the calculation is done using the formula: fclock / (the divisor, in my formula it is 5 * baudrate)For example, here is an example calculation:I made t...
Background: The MCU chip I use is stm32L476RG. Since the MCU usually needs to work in the standby mode and will wake up within 2s, I want to count the time the MCU is in the standby mode each time. Implementation method: The clock source of RT...
update (a week later, after a vacation to clear head):This was solved by changing the entry in the vector table from ".word timer7"to ".word timer7+1". The +1 is to set bit 1 of the handler address to signal that it is a 16 bit thumb instruction. ...