![]() |
programming motors with programming kit
just curious I must be doing something wrong or something but I'm trying to teach our new members how to program and I tried just going into the default routine and just setting the motor to full forward like this:
Code:
pwm01 = 255; |
Re: programming motors with programming kit
Quote:
In the following code, you define who controls the PWM, the USER or the MASTER PIC. You will have to write the code for generating PWMs if you want the USER to to control them. ( For seriously custom code ) Code:
/* SEVENTH: Choose which processor will control which PWM outputs. */ |
Re: programming motors with programming kit
cool thanks alot I'll give it a try!
|
Re: programming motors with programming kit
just clearing up. Is this right?
Quote:
|
Re: programming motors with programming kit
Quote:
You will need to set that line to: Code:
Setup_Who_Controls_Pwms(MASTER,MASTER,MASTER,MASTER,MASTER,MASTER,MASTER,MASTER)Code:
Setup_Who_Controls_Pwms(USER,USER,USER,USER,USER,USER,USER,USER);BTW, If I'm not mistaken, this line will also allow you to mix both USER and MASTER for the various PWM outputs. Thereby, having complete control over certain PWMs while allowing the master processor control the output of others. |
| All times are GMT -5. The time now is 10:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi