RTI interrupt with external clock

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

RTI interrupt with external clock

跳至解决方案
3,909 次查看
Diana
Contributor I

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? 
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,253 次查看
peg
Senior Contributor IV

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)

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,253 次查看
peg
Senior Contributor IV

Hello Diana,

 

You need to tell us what part you are using.

With some devices the RTI does not function in all clock modes.

 

0 项奖励
回复
2,253 次查看
Diana
Contributor I

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.

 

 

 

0 项奖励
回复
2,254 次查看
peg
Senior Contributor IV

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)

 

0 项奖励
回复
2,253 次查看
Diana
Contributor I

Hi Pej,

 

I had found this frecuency in the next file.

 

MC13192_EVBRM.pdf

Message Edited by t.dowe on 2009-10-22 09:14 AM
0 项奖励
回复
2,253 次查看
peg
Senior Contributor IV

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.