sinara-hw / Thermostat_EEM

Thermostat with 4 TEC and 8 sensor channels in EEM form factor
2 stars 1 forks source link

ADC_DOUT/RDY to SPI_MISO and EXTI #45

Closed jordens closed 2 years ago

jordens commented 2 years ago

It's useful to interrupt when the ADC is ready instead of polling. For that it's nice if we can use an EXTI interrupt from a GPIO input pin concurrently with SPI. Then we don't have to reconfigure the single pin between SPI and GPIO all the time and don't run into software issues when doing so.

We should connect ADC_DOUT/RDY to both SPI_MISO (PE5 as currently) and some other pin for EXTI usage (e.g. PC11 currently unused).

image

filipswit commented 2 years ago

Connected PC11 RDYn to ADC_DOUT/RDyn through 0R jumper: image