New Reply

Burst Sleep mode

 
Share Thread Thread Tools
Apr10-12, 03:59 AM   #1
 

Burst Sleep mode


Hi,
I am correcting a Embedded C code which requires Burst sleep mode. This sleep period is purely depend on the user input cool time and this is really to coll the machine. I thought of using Sleep function for this user input time but is it able to respond to other interrupts in this period? or any other idea to make it would be highly appreciated.

Thank you.
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Ants and carnivorous plants conspire for mutualistic feeding
>> Forecast for Titan: Wild weather could be ahead
>> Researchers stitch defects into the world's thinnest semiconductor
Apr10-12, 04:29 AM   #2
 
Recognitions:
Homework Helper Homework Help
If this is embedded code, then the sleep function and interrupt handling are part of the operating system used for the embedded code. Hopefully there is sufficient documentation for the operating system to determine how it handles this situation.

It is common for embedded multi-tasking operating systems to allow a task to pend (wait) for an event that can be set by another task or an interrupt routine. This basic functionality may be extended so that a task can pend on a message queue (normally fifo), where other tasks and/or interrupts can add messages to a message queue.
Apr13-12, 05:06 AM   #3
 
Quote by rcgldr View Post
If this is embedded code, then the sleep function and interrupt handling are part of the operating system used for the embedded code. Hopefully there is sufficient documentation for the operating system to determine how it handles this situation.

It is common for embedded multi-tasking operating systems to allow a task to pend (wait) for an event that can be set by another task or an interrupt routine. This basic functionality may be extended so that a task can pend on a message queue (normally fifo), where other tasks and/or interrupts can add messages to a message queue.
HI,
i have a doubt about wating time(blank time or cool time or zero current) in my system. The current C code was not working without this blank period. Suppose, i would like to produce current for 1500ms and 600ms as cool time. I can stop the transformer until this 600ms period but how can i wait exactly 600ms or how to write a peice of code to make it work? Please give me any suggestions.
Apr13-12, 11:57 AM   #4
 
Recognitions:
Homework Helper Homework Help

Burst Sleep mode


Quote by rama1001 View Post
The current C code was not working without this blank period. Suppose, i would like to produce current for 1500ms and 600ms as cool time. I can stop the transformer until this 600ms period but how can i wait exactly 600ms or how to write a peice of code to make it work? Please give me any suggestions.
If the device has a timer, and the timer is accurate enough, then use the timer. Otherwise, you may need to code a tight loop and calibrate the loop so it's timing can be programmed to very precise delays. This defeats any interrupt handling or multi-tasking since you'd probably need to do this with interrupts disabled to get the precise timing.
New Reply
Thread Tools


Similar Threads for: Burst Sleep mode
Thread Forum Replies
If sleep were not required, but just optional, would you ever sleep? General Discussion 43
Radiating mode vs Coupled mode leaky cables Electrical Engineering 6
Coupled oscillators - mode and mode co-ordinates Introductory Physics Homework 1
Single Mode to Multi-mode back to Single Mode Electrical Engineering 0