Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #define ALLTIME_5V
  2.  
  3. #ifdef ALLTIME_5V
  4. if (T <= MAX_TEMP)
  5.  
  6. {
  7. #else
  8. #endif
  9.  
  10. dP = Max - Min;
  11. if (T < MIN_TEMP)
  12. {
  13. T = MIN_TEMP;
  14. }
  15. T = T - MIN_TEMP;
  16. PWM_ = ((dP / DT) * T);
  17. PWM_ = PWM_ + Min;
  18. goto e1;
  19. }
  20.  
  21. #ifndef ALLTIME_5V
  22. #endif
  23.  
  24. if (T > MAX_TEMP)
  25. {
  26. PWM_ = 255;
  27. FanStoped = 0;
  28. Beep();
  29. }
  30.  
  31. e1:
  32. OCR0A=PWM_;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement