|
Re: Potentiometer Problems
Quote:
Originally Posted by Joohoo
one thing that I can see that might be problem is you are locking yourself in an infinite while loop which might not be allow the program to print anything.
thats just what i see but, I have not worked with easy c.
|
With EasyC you don't need to worry about your loop speed like in MPLab, the while(1) loop is fine.
Isn't the potentiometer built in to EasyC, there should be a block under Inputs(I think) that says potentiometer that you can use that may help, although the way you are doing it should work fine.
__________________
2007 UTC Champions  Thanks 1124 and 558
2007 UTC GM Industrial Design Award
2006 Newton Divisional Winners
2006 Championship finalists
(Thanks 25 and 968 for picking us!)
2006 National Innovation in Control
|