ADC Interrupt setup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-19 4: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.
- Labels:
-
ADC
-
STM32F1 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-19 6:31 AM
The vector table has the name of the interrupt. Implement that function anywhere in your program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-19 5:47 AM
Enable the xxxIE bit in the ADC_IER register. Enable the corresponding global NVIC interrupt. Implement the right routine somewhere.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-19 6: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 ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-19 6:31 AM
The vector table has the name of the interrupt. Implement that function anywhere in your program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-19 6:32 AM
okay , I see, ill write the proper code and update on this .
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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 ?
