View Single Post
  #2   Spotlight this post!  
Unread 29-02-2008, 10:52
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,708
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: how to generate P.W.M pulse between 0-100 d.c

yossi,

The IFI controllers are all based around interfacing with hobby servos and IFI H-Bridges that all take hobby servo pulse-train inputs, so the hardware as configured isn't going to be really useful for what you're attempting. If you're using the full-size IFI Robot Controller, then PWM outputs 13-16 are under direct control of the programmable user processor and are hooked directly into the PIC microprocessors CCP units. You can look in the PIC reference manual and datasheet on Kevin Watson's website to get info on how you could set these up to output a true 0-100% duty cycle PWM output. If you're using the Vex controller, PWM outputs 1-4 are arranged in a similar fashion. If you need more than 4 duty-cycle outputs, then your options are limited:
  1. Use the digital IOs combined with timers and really fast interrupt handlers to bootleg a duty-cycle generation output.
  2. Find or make a serial to duty-cycle PWM conversion board.
  3. Hack the IFI controller's Master hardware and firmware to force it to do what you want it to.
That last option is obviously the most difficult and most likely to totally hose your controller. I'm convinced it's technically possible to pull it off, but it would be very very difficult and it'd require a fairly extensive amount of code decompiling, reverse engineering, etc.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter