You are here

Reusing pin in custom application

1 post / 0 new
Last seen: 1 week 2 days ago
Joined: 2020-12-19 04:16
Posts: 1
Reusing pin in custom application

Hi All,

I'm playing with making a custom application for an e-bike with bottom bracket torque and speed sending. Modifying the ADC app for reading in the torque is straightforward, but I also need to repurpose a pin to use as a digital input with an interrupt to count the pulses coming in from the speed sensor. I'm using the 4.12 hardware. Can anyone give me some advice on that?

I have a relevant degree, but I haven't done much with embedded hardware since then and I've only recently started playing with the STM32Fs.

I was going to use one of the comms pins, but I'm getting a bit confused because it looks like the i2c and uart are assigned to different pins on the micro but then they use the same pins on the header. ,