Search found 10 matches

by integrator
10 February 2015, 13:34 PM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

Never mind. That may have helped, but did not fix the problem.
by integrator
10 February 2015, 13:32 PM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

I may have it working now. I had to move the following code so that it only checks the COM status once, right after my task instead of every time I call CPUSleep. 'Do While CBool(StatusCom(1) And &H04) _ ' Or CBool(StatusCom(3) And &H04...
by integrator
10 February 2015, 12:46 PM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

I emailed you my code. Let me know if you don't get it.

Thanks!
by integrator
10 February 2015, 6:43 AM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

Is there a way to maintain a timed loop while using CPUSleep with the WatchDog interrupt? I am trying to do one task every four minutes and another task every hour, but I can't figure out a way to do this. The Watchdog is set to wake from CPUSleep every four seconds, but often it wakes immediately. ...
by integrator
07 February 2015, 14:12 PM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

Thanks Don! That did the trick. Now on to the next challenges.
by integrator
07 February 2015, 6:05 AM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

Sorry about the typos. It was a long day and I had tried a bunch of variations. I must have hit the undo button too many times. However, I am still having the same problem with the COM ports. The following works fine on the ZX-24r, but when I switch to the ZX-24s the COM 3 output is garbled (checked...
by integrator
06 February 2015, 18:10 PM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

I think now my problems are with the COM ports. My project uses COM 1 at 9600, COM 3 at 9600, and COM 4 at 19200. I was able to get it to work on the ZX-24r, but not with the native mode device. If I limit it to COM 1 & 3, I can get it to sort of work, but the watchdog times out too fast. When I...
by integrator
06 February 2015, 9:40 AM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

Thanks Don! I have your example running on the ZX-24s you just sent. Now I just need to figure out how to get the ZX-24r code to run on the ZX-24s. I changed the target and compiled, but it will not run. I am about to start from scratch and piece it together. Are there any obvious tricks to porting ...
by integrator
05 February 2015, 9:21 AM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

I am using a non native mode device, ZX-24r. Do I need to somehow provide an interrupt handler?
by integrator
05 February 2015, 7:35 AM
Forum: ZX-24
Topic: WatchDog Interrupt CPUSleep
Replies: 16
Views: 6291

WatchDog Interrupt CPUSleep

With the following code, the processor resets after WatchDog timeout instead of just waking from CPUSleep. What am I missing? Sub Main() debug.print "STARTUP" 'TURN SOME STUFF OFF TO POWER SAVE 'Register.ADCSRA = Bx0111_1111 'disable ADC 'Register.ACSR = Bx1000_0000 'disabl...