Have a look at this one
http://www.picbasic.co.uk/forum/show...20&postcount=4
PS: It's Melabs PICBasic forum here, Proton PDS is at the following
http://www.picbasic.org/forum/
Have a look at this one
http://www.picbasic.co.uk/forum/show...20&postcount=4
PS: It's Melabs PICBasic forum here, Proton PDS is at the following
http://www.picbasic.org/forum/
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
And check your config fuse setting. Seems you can move PWM4 on RB5 or on RD5. Possible that you have LVP enabled, if so it will screw up the signal on RB5 indeed!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Steve,
Apologies for posting on the wrong forum. To be honest I stumbled across this picbasic forum through good old google. I also noticed that members like Bruce have had good results from this particular PIC and thought this the best location to post. I am not looking to upset anyone and if by posting on this forum I have done this then please accept my apologies. In the future I will post on the proton forum only.
Thanks for the heads up on the LVP I will check on this and be on my merry way.
Thanks again
Lothar
Don't worry about that, we are here to help each other!
I think Bruce's post can help you. Easy to convert to PDS later anyways![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Steve you will be happy to know that i am currently checking the config settings within the datasheet as we speak/ type.
I have Bruce's PWM scaling code working but needed to make the full step to using the override function for the PWM Brushless sequence output.
I must add when I do crack it I will post on this forum to hopefully assist others who may be trying to get this pretty interesting PIC working.
Anyway back to the datasheet....what joy
As promised I have found the resolution to my problem (the PWM issue not the posting on the wrong forum issue) after much soul searching and datasheet reading I tracked it down to be a typo.
the line:
should have been:PDC2L = Duty.LowByte
PDC2L = Duty.HighByte
the code works fine now and I can now move through the commutation pattern of the brushless motor drive. I cant believe it came to this damn you cut-copy-paste.PDC2L = Duty.LowByte
PDC2H = Duty.HighByte
Once again I apologies for posting here![]()
Glad to hear you have it working now!
No need for apologies, your post will be useful for some.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks