Advertisement
Guest User

Untitled

a guest
May 20th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <project.h>
  2.  
  3. int main()
  4. {
  5. int16 convres;
  6. PWM_Start();
  7. pot1_Start();
  8. pot1_StartConvert();
  9. for(;;)
  10. {
  11. pot1_IsEndConversion(pot1_WAIT_FOR_RESULT);
  12. convres = pot1_GetResult16(0x00);
  13. PWM_WriteCounter(convres);
  14. CyDelay(10);
  15.  
  16.  
  17.  
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement