User Activity

My controller is STM32L462. I need to compute CRC16 for Modbus application. There is CRC initialization function:void MX_CRC_Init_CRC16(void) { hcrc.Instance = CRC; hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE; hcrc.Init.DefaultI...
I use MCU STM32L462ET6TR. When I set CPHA=1, the NSS signal is always at low. When CPHA=0, NSS signal works normally. There is my initialization code:void MX_SPI1_Init(void) { hspi1.Instance = SPI1; hspi1.Init.Mode = SPI_MODE_MASTER; hspi1.Init...
Posted on July 14, 2017 at 07:24The magnetometer on my device has different scale and offset on its axes.This is because of influence of hard iron on the board. So, it needs to be calibrated. I've read https://my.st.com/resource/en/design_tip/dm0028...
Posted on July 06, 2015 at 05:19Timer works in Input capture mode. It captures period of rectangular wave. I would like to get interrupt on each eighth front, but interrupt does not dependent of prescaler. Controller: stm32f030f6p6. There is code fr...