A Hardware PWM is supposed to run in the background.
However the program seems to work only when the while loop is present.The PWM module shows no activity otherwise..
I have no idea why.
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Wed Jun 01, 2005 6:36 am
Without the while loop, the program would fall off into nevernever land and eventually roll over and restart. For this reason, CCS inserts a sleep command at the end of main. The while loop keeps the pic running.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum