RTC interrupt problem in CW5.1 using simulation of S08EL32

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

RTC interrupt problem in CW5.1 using simulation of S08EL32

跳至解决方案
2,111 次查看
robpat
Contributor I
Hello all,
I cannot seem to disable the interrupt call when using the RTC.
I am setting up RTCSC to 0x0D, so RTIE should be disabled, RTCMOD is set to 0X08.
 
In the main loop I am just copying the count RTCCNT to a variable to see what the count it is at and then am resetting the interrupt using RTCSC_RTIF to a 1 to cancel the flag.
 
When I run this it jumps to the RTC interrupt vector and complains that there is nothing there.
 
Should this run in the simulation ok or am I doing something wrong?
 
Your help is appreciated,
Rob P
 
 
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,094 次查看
CrasyCat
Specialist III
Hello
 
Did you initialize the vector table and put the address of the RTC interrupt function at the appropriate location in there?
 
Check what ProcessorExpert is doing when you create a project using RTC with it.
Might help you to find out what you forget.
 
CrasyCat

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,094 次查看
robpat
Contributor I
Sorry, version is 5.7.0!
 
0 项奖励
回复
1,095 次查看
CrasyCat
Specialist III
Hello
 
Did you initialize the vector table and put the address of the RTC interrupt function at the appropriate location in there?
 
Check what ProcessorExpert is doing when you create a project using RTC with it.
Might help you to find out what you forget.
 
CrasyCat
0 项奖励
回复