|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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; |
|
#2
|
||||
|
||||
|
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. */ //Setup_Who_Controls_Pwms(MASTER,MASTER,MASTER,MASTER,MASTER,MASTER,MASTER,MASTER); Setup_Who_Controls_Pwms(USER,USER,USER,USER,USER,USER,USER,USER); ![]() Last edited by billbo911 : 01-11-2005 at 11:23. |
|
#3
|
||||
|
||||
|
Re: programming motors with programming kit
cool thanks alot I'll give it a try!
|
|
#4
|
|||
|
|||
|
Re: programming motors with programming kit
just clearing up. Is this right?
Quote:
|
|
#5
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Vex Starter Kit To Recieve From Serial Port | firetrap | FIRST Tech Challenge | 0 | 26-09-2005 17:27 |
| Q&A Discuss: How many Van door motor(s) come with the kit? | CD47-Bot | Extra Discussion | 1 | 08-01-2003 11:07 |
| Looking for practice motors & extra tape drive parts? | archiver | 2000 | 1 | 23-06-2002 22:54 |
| "Motors and Drive train edition" of Fresh From the Forum | Ken Leung | CD Forum Support | 6 | 29-01-2002 12:32 |
| Drill Motors | TF8 | Motors | 19 | 12-12-2001 13:13 |