Table of Contents | ||||
---|---|---|---|---|
|
Software
MCU config tool
https://www.st.com/en/development-tools/stm32cubemx.html
...
The difference is stored in a 16 bit value which then is divided by two and stored in a 8 byte arrary. The difference is the raw count value (0 → 65536 ) of the timer so the conversion to Hz or RPM need to be done else wareelsewhere.
Front Right B[0]: MSB B[1]:LSB
...
To get the value from the STM32 simply clock out 8x8 clock pulses. It dose not matter if there is data on the MOSI line.
Example
Front_right = (dataIn[0]<<8) + dataIn[1];
Front_right = (1 / (Front_right * 0.000007629948)) / 2; // 1/(count * sec/count) we have two magnets per wheel so divide everything by 2 and you get Hz
...
Hardware
reference design: https://www.st.com/resource/en/user_manual/um1956-stm32-nucleo32-boards-mb1180-stmicroelectronics.pdf
Crystal load capasitance
Pinout
...
page 37 for pin description: https://www.st.com/content/ccc/resource/technical/document/datasheet/42/c0/ab/e5/71/7a/47/0b/DM00206508.pdf/files/DM00206508.pdf/jcr:content/translations/en.DM00206508.pdf
Footprint
...
Version 1.0