Search found 5 matches

by chrylis
Tue Jul 23, 2013 2:39 pm
Forum: ChibiOS/NIL
Topic: Tick-less mode support for NilRTOS
Replies: 27
Views: 34064

Re: Tick-less mode support for NilRTOS

(To clarify: It does appear that the STM port with tickless support does work by setting a hardware timer for the next known event timeout, which is the general approach I'm taking with Timer2, but that implementation at least appears to be limited to the overflow time of the hardware timer, and it ...
by chrylis
Tue Jul 23, 2013 2:30 pm
Forum: ChibiOS/NIL
Topic: Tick-less mode support for NilRTOS
Replies: 27
Views: 34064

Re: Tick-less mode support for NilRTOS

Timer2 can be run in deep sleep, but it has the disadvantages of drawing power and only having 8-bit resolution. My plan was to use the watchdog timer (8s overflow time) when my device is idle to see whether it should scan for events (every half-hour or so; an ISR can track 30 minutes with a single ...
by chrylis
Tue Jul 23, 2013 6:51 am
Forum: ChibiOS/NIL
Topic: Tick-less mode support for NilRTOS
Replies: 27
Views: 34064

Re: Tick-less mode support for NilRTOS

Unfortunately, the AVR's deep sleep states turn off the timer that Nil uses for the system clock, so it's impossible to go into deep sleep and still have the timer run correctly. What I am trying to determine is whether the rest of the system would still work properly if the system clock gets paused ...
by chrylis
Fri Jul 19, 2013 11:12 am
Forum: ChibiOS/NIL
Topic: Tick-less mode support for NilRTOS
Replies: 27
Views: 34064

Re: Tick-less mode support for NilRTOS

What Bad Things would happen if the system clock lost time during sleep? I would like to put an AVR into Power-Save mode (only Timer2 running, but waking up on Timer2 or other interrupt), and it's OK if threads don't get scheduled until the MCU wakes up (the tasks that need to respond promptly will ...
by chrylis
Mon Jul 15, 2013 11:23 am
Forum: ChibiOS/NIL
Topic: Tick-less mode support for NilRTOS
Replies: 27
Views: 34064

Re: Tick-less mode support for NilRTOS

What properties does the "HW counter" need to have? For example, on AVR the main timers are shut down in power-saving modes, and you'd have to use Timer2 with an external crystal to keep accurate time while the processor is asleep. For one application I'm working on, it would be fine for the system ...