Hello all,
I am writing a program that is large enough to require using another SLOT. In the SLOT0 program I use SETTIMER to produce a 1/100 second timer. Anytime the program runs SLOT1 then goes back to SLOT0 it looks like TIMER defaults to a 1 second timer. If I use the SETTIMER command to set up the 1/100 second timer every time there is a transition from SLOT1 to SLOT0 then all seems to work. I also use a PWM output that is declaired in SLOT0 but not SLOT1. This PWM output does not get re-declaired after SLOT 1 runs either but it seems to be unaffected.
QUESTIONS: Is this normal? Does the SETTIMER command need to be re-declaired every time I run SLOT0 eventhough it is not used in SLOT1? If so, why does the the transition from one SLOT to another not affect the PWM output? And lastly, what other commands are affected when the program goes from one slot to another?
Any input will be welcome.
Dave E
I am writing a program that is large enough to require using another SLOT. In the SLOT0 program I use SETTIMER to produce a 1/100 second timer. Anytime the program runs SLOT1 then goes back to SLOT0 it looks like TIMER defaults to a 1 second timer. If I use the SETTIMER command to set up the 1/100 second timer every time there is a transition from SLOT1 to SLOT0 then all seems to work. I also use a PWM output that is declaired in SLOT0 but not SLOT1. This PWM output does not get re-declaired after SLOT 1 runs either but it seems to be unaffected.
QUESTIONS: Is this normal? Does the SETTIMER command need to be re-declaired every time I run SLOT0 eventhough it is not used in SLOT1? If so, why does the the transition from one SLOT to another not affect the PWM output? And lastly, what other commands are affected when the program goes from one slot to another?
Any input will be welcome.
Dave E