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
Interrupt support
- Tanja_Kovacevic
- mikroElektronika team
- Posts: 98
- Joined: 09 Aug 2021 11:39
Re: Interrupt support
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
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
Re: Interrupt support
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.
Re: Interrupt support
Hi,
You can enable/disable interrupts using the following library functions :
https://docs.mikroe.com/mikrosdk/ref-ma ... rupts.html
Regards,
Filip.
You can enable/disable interrupts using the following library functions :
https://docs.mikroe.com/mikrosdk/ref-ma ... rupts.html
Regards,
Filip.
Re: Interrupt support
I saw those, but what about the IRQ? I do not see a prototype for it.
Re: Interrupt support
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)
{
}
//timer calculator with the "iv" directive.
void INTERRUPTS_UART1_IRQHandler(void) iv INTERRUPTS_USART1
{
}
----OR----
//from stm32f4xxxxx.s file
void UART1_IRQHandler(void)
{
}
- Tanja_Kovacevic
- mikroElektronika team
- Posts: 98
- Joined: 09 Aug 2021 11:39
Re: Interrupt support
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
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