Hi everyone,
I'm currently working on the TB-S5D5 target board and particularly the interrupt. I would like to setup manualy a interrupt on a GPIO first and then on the SCI1 to be able to do some RS485 communication. I'm working with some special sensor that requiert conituous clock transmission during communication and also start sending data after some clock edges... So, i need to setup my own interruption handler. And, it's also for my general knowledge.
I'm thinking of doing this in two steps :
first : setting up a basic interrupt on a GPIO on the rising edge for exemple. Write an ISR and do some stuff that i can record with my scope to be sure my interrupt is correctly initialize.
And then, setup the interrupt for the SCI.
If you have any application note, tutorial, explanation on how to initalize and manage interrupt on this microcontroller, I'd be very grateful.
Your help is welcome.
PS : i'm using e² studio
Hello,
You can configure an external interrupt to be triggered with a rising/falling edge with the r_icu module of SSP:
For example to trigger an interrupt from P400 with a rising edge you need to have this configuration:
Hi,
Thanks for your solution. But if i want to configure the interrupt manualy by setting the registers and link it to an ISR ? Without sinergy configurator.
I do not see the reason to do this but you can go through chapter 14 which describes Interrupt Controller Unit (ICU) and configure the registers accordingly.
www.renesas.com/.../s5d5-microcontroller-group-users-manual