Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 months ago.
attaching an ADC read to timer 2 overflow flag on F411RE
Hello, I'd like to do an analog read when one of my PWM timers overflows. The timer runs at 5kHz in phase correct mode. Does anyone know the name of the ISR vector I need to call? I'm told it's buried deep in mbed source code.
Thank you
1 Answer
9 years, 5 months ago.
Not that deep: http://developer.mbed.org/users/mbed_official/code/mbed-src/file/119543c9f674/targets/cmsis/TARGET_STM/TARGET_STM32F4XX/stm32f4xx.h
So I think you need:
TIM1_CC_IRQn
That is if you want to use a dynamic vector (using NVIC_SetVector). If you just want a static one: http://developer.mbed.org/users/mbed_official/code/mbed-src/file/119543c9f674/targets/cmsis/TARGET_STM/TARGET_STM32F4XX/TOOLCHAIN_ARM_STD/startup_STM32F40x.s