Please help, trying to control motor using PWM

Any general or miscellaneous queries that do not fit into the other forum catagories

Moderators: Benj, Mods

Post Reply
elecrobot
Posts: 12
Joined: Tue Oct 09, 2007 11:18 pm
Contact:

Please help, trying to control motor using PWM

Post 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.
Attachments
pwm_adc.fcf
(7 KiB) Downloaded 307 times

elecrobot
Posts: 12
Joined: Tue Oct 09, 2007 11:18 pm
Contact:

Re: Please help, trying to control motor using PWM

Post 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

Post Reply