Embedded C help

  • Thread starter rama1001
  • Start date
  • #1
132
1
Hi,
I am correcting a C code which was written for a flame machine. My desire is to give a burst cool time when the machine working continuously. In deep, user could have the facility to enter the flame time and cool time before a continuous operation. So, i exactly want to off the current when user time met the flame time and then cool period starts here and so on continuously.
I thought of using Sleep function with an argument of user entered cool time. Is this handle other interrupts in this period? Or any other suggestions would be appreciated.
 

Answers and Replies

  • #2
anorlunda
Staff Emeritus
Insights Author
9,431
6,438
Yes, the sleep function is appropriate. But you don't give enough information for us to say more.

Interrupt? Are you writing an interrupt handler?


What operating system?

Do you have a library to handle turning current on/off?

Does this process run forever?

Lots of questions.
 

Related Threads on Embedded C help

  • Last Post
Replies
9
Views
3K
  • Last Post
Replies
3
Views
3K
Replies
1
Views
9K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
6
Views
3K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
3
Views
1K
Replies
4
Views
3K
  • Last Post
Replies
4
Views
2K
Replies
4
Views
3K
Top