Page 1 of 1

Please help, trying to control motor using PWM

Posted: Wed Jul 01, 2009 9:13 pm
by elecrobot
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.

Re: Please help, trying to control motor using PWM

Posted: Thu Jul 02, 2009 9:06 am
by elecrobot
cheers guys. it works perfectly fine now. I was compiling the hex file using demo version and it was not working. But when I went to uni and used the professional version of flowcode to compile it, my circuit is working now. Thanks