Reading a 16-bit word via SPI
In order to read a 16-bit word from a current sensor, is it correct to say: HAL_SPI_Receive(&hspi1, &SPIRx[0], 1, 1); //?SPIRx is declared as uint16_t SPIRx[1];I told CubeMx that the data size for SPI1 is 16 bits
Ask questions, find answers, and share insights on STM32 products and their technical features.
In order to read a 16-bit word from a current sensor, is it correct to say: HAL_SPI_Receive(&hspi1, &SPIRx[0], 1, 1); //?SPIRx is declared as uint16_t SPIRx[1];I told CubeMx that the data size for SPI1 is 16 bits
I’m trying to write a context switch assembly on STM32F411E but I encounter a usageFault right after I make a second call to the SVC 0 (in my second task) instruction. The funny thing is the first task can make SVC calls just fine but the second task...
I have an LCD is on an 8080 16bit FMC interface with A0 register select.I can read the status correctly here:#define LCD1_DEVICE_ADDR (uint32_t)0x60000000 #define LCD1_DEVICE_DATA (uint32_t)0x60000001 uint16_t *pLcdRStatusWAddress = LCD1_DEVICE_...
�?�片机型�?�:stm32f103vet6 。出现问题 :数值�?�化基本是准的,就是ad转�?�波动。以4096的�?和范围有正负50-80的波动。实验对比:12V开关电�?和电池/晶振接地两端有1M电阻/软件中�?�?�值滤波/�?�AD转�?�和多AD MDA 无差异�?3路AD转�?�,采用MDA,请大家指点�?
I have managed to communicate via I2C1, but when I switch over to I2C2 I always get a "Busy" response state from the MCU.Please keep in mind that this is the same I2Cx module from the same datasheet which is set up and executed in the same way as I2C...
How to calculate the time for bit of CAN in Stm32Cubemx ?
Hi,I have configured my Nucleo-64 board with the STM32F030R8 with the STMCube software.The HSI is set as system clock (no PLL) and measured over the MCO pin (PA8). I will attach the main.c.The measurement you can see below.There are breaks within the...
I'm having a problem which appears to relate to initialisation of the I2C. When I turn on the clock to the I2C1 it sets the busy flag. Sometimes when setting up the GPIO this flag clears, sometimes it doesn't! Could someone point me at guaranteed rel...
What's the easiest way to obtain a list of all STM32F446 hardware registers? Extracting them from different H-files or from the reference guide in pdf-format seems like a lot of work. Is there a more efficient way?