RTC interrupt problem in CW5.1 using simulation of S08EL32

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RTC interrupt problem in CW5.1 using simulation of S08EL32

ソリューションへジャンプ
2,114件の閲覧回数
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,097件の閲覧回数
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,097件の閲覧回数
robpat
Contributor I
Sorry, version is 5.7.0!
 
0 件の賞賛
返信
1,098件の閲覧回数
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 件の賞賛
返信