Hello,
I need to create a time interruption to send some data, and I have choose RTI interrupt, but it don't run.
The interruptions is:
/////////////////////////////
__interrupt 25 void Vrti_isr(void)
{
SRTISC_RTIACK=1;
tiempo=1; // when this variables is 1 I send the dates.
}
////////////////////
In the main funcion I inicialize de interrupt with:
SRTISC=0x77; // I use external clock of 62,5kHz because we are on run mode
EnableInterrupts;
What is wrong?
Is there any easy way to make a break in time?Solved! Go to Solution.
Hi Diana,
It seems setup correctly to me!
A couple of things though:
I thought the SARD's MPU used the clock output from the radio device for its clock (16MHz?)
If you are only going to set a flag in the ISR for later use you may as well not enable interrupts and simply test the RTIF bit in SRTISC. (still need to ACK it)
Hello Diana,
You need to tell us what part you are using.
With some devices the RTI does not function in all clock modes.
Hello,
I am using 13192sard, with MC9S08GT60 44pins microcontroller. The frecuency of its external clock is 62.5kHz. I need send information to the PC every minute and had thought with a interrupt RTI.
Hi Diana,
It seems setup correctly to me!
A couple of things though:
I thought the SARD's MPU used the clock output from the radio device for its clock (16MHz?)
If you are only going to set a flag in the ISR for later use you may as well not enable interrupts and simply test the RTIF bit in SRTISC. (still need to ACK it)
Hi Pej,
I had found this frecuency in the next file.
Hello Diana,
You mentioned SARD before now you are talking EVB!
It does say 62.5kHz here but the output of the radio is programmable so you would need to check. You could also test it at TP6.
It should still work though.