RTC interrupt problem in CW5.1 using simulation of S08EL32

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTC interrupt problem in CW5.1 using simulation of S08EL32

Jump to solution
1,393 Views
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
 
 
Labels (1)
Tags (1)
0 Kudos
1 Solution
376 Views
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

View solution in original post

0 Kudos
2 Replies
376 Views
robpat
Contributor I
Sorry, version is 5.7.0!
 
0 Kudos
377 Views
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 Kudos