Please help, trying to control motor using PWM
Posted: Wed Jul 01, 2009 9:13 pm
Hi
I am currently working on my uni project. I am just trying some basic code i.e. trying to read an analogue value, and based on that vary the speed of my motor using PWM. Please find my code attached. Can someone please help me to find out what I am doing wrong. I used some asm code using MPLAB to control motor using PWM. And its working perfectly fine. Therefore I don't think there is any problem in my hardware. But when I use flowcode, it doesn't work.
I am currently working on my uni project. I am just trying some basic code i.e. trying to read an analogue value, and based on that vary the speed of my motor using PWM. Please find my code attached. Can someone please help me to find out what I am doing wrong. I used some asm code using MPLAB to control motor using PWM. And its working perfectly fine. Therefore I don't think there is any problem in my hardware. But when I use flowcode, it doesn't work.