Hi Henrik, thanks you for your comments..I guess I have to rearrange my codes.
Does this mean I have to remove this in the main loop..don't change it the main loop.
and place it in a sub program?Code:; Start rolling HPWM 1 ,Gear[i],10 HPWM 2 ,Gear[i],10
I did remove the analog reading to digital because I thought it will better...don't you think so?
Regarding the timer, should this be the value T1CON = %00100001 ?
I really appreciate for answering my questions..not really all clear to me at this time but I hope I will learn some if not all.
BTW do you think it is best to have a fix speed instead of changing from time to time?
regards,
tacbanon




Bookmarks