# Firmware for controllers of thermal sensors Make regular scan of 8 sensors' pairs. USART speed 115200. Code for ../../kicad/stm32 ### Serial interface commands (ends with '\n'): - **C** show coefficients for all thermosensors - **D** detect seosors (reseting them) - **H** switch I2C to high speed (100kHz) - **L** switch I2C to low speed (default, 10kHz) - **R** reset both sensors - **T** get temperature in degrC ### PINOUT - I2C: PB6 (SCL) & PB7 (SDA) - USART1: PA9 (Tx) & PA10 (Rx) - CAN bus: PB8 (Rx), PB9 (Tx) - USB bus: PA11 (DM), PA12 (DP) - I2C multiplexer: PB0..PB2 (0..2 address bits), PB12 (~EN) - sensors' power: PB3 (in, overcurrent), PA8 (out, enable power) - signal LEDs: PB10 (LED0), PB11 (LED1) - ADC inputs: PA0 (V12/4.93), PA1 (V5/2), PA3 (I12 - 1V/A), PA6 (V3.3/2) - controller CAN address: PA13..PA15 (0..2 bits); 0 - master, other address - slave