Go to Post Smokey the Fisher Price motor says only YOU can prevent rule infractions. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 04-10-2003, 12:08
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
If I understand you correctly, you want the drive_L variable to be used for both PWM16 and PWM14, and the drive_R to be used for PWM13 and PWM15.

One way you could do this is to place each of those two variables (drive_L and drive_R) into the positions for each of the two PWM outputs in the SEROUT command.
Code:
'  Serout USERCPU, OUTBAUD, [255,255,(PWM1),relayA,(PWM2),relayB,(PWM3),(PWM4),(PWM5),(PWM6),(PWM7),(PWM8),(PWM9),(PWM10),(PWM11),(PWM12),(PWM13),(PWM14),(PWM15),(PWM16),(OSC)]

   SEROUT USERCPU, OUTBAUD, [255,255,127,relayA,127,relayB,127,127,127,127,127,127,127,127,127,127,drive_R,drive_L,drive_R,drive_L]
The first line is the example SEROUT that IFI provides in the default 2003 EduRC code, so what I did was place the drive_L and drive_R variables in the string of output bytes where the system will be expecting PWM[13-16]. I set all other PWM values to 127, but you can replace these with whatever you'd like.

I hope this helps. If I misunderstood the question, I blame the fact that I just woke up...
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PWM and burning out motors patrickrd Technical Discussion 7 19-06-2003 15:30
Limiting PWM in pbasic archiver 2001 4 24-06-2002 00:38
Ugh...PWM pin vs. Speed Controller archiver 2001 1 24-06-2002 00:27
Loss of signal in PWM cables. archiver 2001 6 23-06-2002 23:29
PWM Wires... Anton Abaya Technical Discussion 3 04-02-2002 05:07


All times are GMT -5. The time now is 12:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi