Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <project.h>
- int main()
- {
- int16 convres;
- PWM_Start();
- pot1_Start();
- pot1_StartConvert();
- for(;;)
- {
- pot1_IsEndConversion(pot1_WAIT_FOR_RESULT);
- convres = pot1_GetResult16(0x00);
- PWM_WriteCounter(convres);
- CyDelay(10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement