Interrupt support

Fully featured ARM compilers available on Windows, Linux, and macOS.
Post Reply
Author
Message
iqsoft
Posts: 6
Joined: 12 Aug 2022 11:14

Interrupt support

#1 Post by iqsoft » 18 Jul 2023 08:52

Hello
I am using the tm4c129xnczad and necto studio. I am trying to find the interrupt libraries for gpio and other peripherals, with all the necessary structures and callback functions like the stm32 mcus have in the libraries folder but i only see the interrupt pins configured as gpio without any callback functions support. Could you guide me through this because i was to implement time interrupts using the rtc16 click and i don't want to implement it in polling mode because i have other peripherals like a gsm and the usb to uart click board.
Best regards
NN

User avatar
Tanja_Kovacevic
mikroElektronika team
Posts: 98
Joined: 09 Aug 2021 11:39

Re: Interrupt support

#2 Post by Tanja_Kovacevic » 20 Jul 2023 15:50

Hi,

The best solution is to install the newest Necto Studio (4.0.0),
and make a GCC setup.
There you will be able to change everything you want
as far as the interrupt routine is concerned - because there is a startup file that links them.
You will need to do is initialize the interrupt in your code.

Our development team has confirmed to me that we will be adding it to our libraries as well
because it is really useful and should exist.


Kind regards,
Tanja

jperez
Posts: 10
Joined: 24 Feb 2023 10:48

Re: Interrupt support

#3 Post by jperez » 02 Nov 2023 13:23

So just to confirm. If I want interrupts in Necto Studio 5.0 I have to manually set them up using registers? independent of MikroC for Arm or GCC setups.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Interrupt support

#4 Post by filip » 03 Nov 2023 11:40

Hi,

You can enable/disable interrupts using the following library functions :
https://docs.mikroe.com/mikrosdk/ref-ma ... rupts.html

Regards,
Filip.

jperez
Posts: 10
Joined: 24 Feb 2023 10:48

Re: Interrupt support

#5 Post by jperez » 03 Nov 2023 13:30

I saw those, but what about the IRQ? I do not see a prototype for it.

jperez
Posts: 10
Joined: 24 Feb 2023 10:48

Re: Interrupt support

#6 Post by jperez » 03 Nov 2023 16:02

I saw the handlers on the startup file. Do I use those or do I use something like what the timer calculator outputs?

//timer calculator with the "iv" directive.
void INTERRUPTS_UART1_IRQHandler(void) iv INTERRUPTS_USART1
{
}
----OR----

//from stm32f4xxxxx.s file
void UART1_IRQHandler(void)

{

}

User avatar
Tanja_Kovacevic
mikroElektronika team
Posts: 98
Joined: 09 Aug 2021 11:39

Re: Interrupt support

#7 Post by Tanja_Kovacevic » 09 Nov 2023 12:57

Hi,

GCC generally works so that you declare a routine that is like in a startup file.

The timer calculator is only valid for MikroC compilers.
But it just turns the timer interrupt on and that's it.
Again you have to set everything in the timer register.

Kind regards,
Tanja

Post Reply

Return to “ARM AI Compilers”