2020-08-19 04:31 AM
Hi ,
Ive started configuring gpio's and ADC with stm32f103 in Assembly ,Can somone tell me the basic procedure to setup ADC interrupts ?? .There's alot to keep in mind while setting up the initialization and i've failed at it.
Solved! Go to Solution.
2020-08-19 06:31 AM
The vector table has the name of the interrupt. Implement that function anywhere in your program.
2020-08-19 05:47 AM
Enable the xxxIE bit in the ADC_IER register. Enable the corresponding global NVIC interrupt. Implement the right routine somewhere.
2020-08-19 06:24 AM
Okay ,thanks I understand that , but how do I write the code where my interrupt service routine will occur ??, like in another mcu I used to write it as
__ADC_interrupt
....
....
....
return from interrupt
thanks ,
2020-08-19 06:31 AM
The vector table has the name of the interrupt. Implement that function anywhere in your program.
2020-08-19 06:32 AM
okay , I see, ill write the proper code and update on this .
Thanks
2020-08-20 12:06 AM
Hi,
I cannot quite get this part ,If i'm enabling the NVIC interrupt ,what does all the 32 bits correspond to in the NVIC_ISERx??,which bits do I have to enable ?