I2C-HAT firmware update

I2C-HAT firmware update

Download and install stm32flash on Raspberry PI stm32flash is the tool you need to update the firmware on the I2C-HATs. Open a terminal on Raspberry PI and go to the directory where you want to download stm32flash, type the following commands to download and install:

STM32 integrated bootloader All I2C-HATs are based on STM32Read more about I2C-HAT firmware update[…]

I2C clock stretching timeout on the Raspberry PI

I2C clock stretching timeout on the Raspberry PI

Clock stretch timeout register – CLKT The TOUT field from CLKT register provides a timeout on how long the master waits for the slave to stretch the clock before deciding that the slave has hung,  the default value for TOUT is 0x40(64 decimal), this is from BCM2835-ARM-Peripherals doc. TOUT field is 16 bit long. Calculating timeoutRead more about I2C clock stretching timeout on the Raspberry PI[…]

Application Wiring

Application Wiring

In the following diagrams there are two sections: Internal External Internal section reflects a simplified version of the on-board circuit. The External section reflects the wiring that should be used. Digital Inputs Bi-directional Opto-coupler Input Wiring a button You need an external power supply different from the one used by Raspberry PI, in this wayRead more about Application Wiring[…]