View Single Post
  #5   Spotlight this post!  
Unread 02-02-2005, 13:01
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: pwm definition problems

Quote:
Originally Posted by Anton
well, I'm sure I used the .mcp file(I mean, I wouldn't see the project tree if I hadn't, would I?)
I'm using the 2.2 code version(from ifirobotics.com), with minor difications to the default routine.c & .h
I thought that mabe I didn't use the generate_pwms properly, could you please explain how to use it?
I believe the generate_pwms function handles only PWM outputs 13-16. All the other PWM outputs are handled elsewhere. PWM 13-16 are a little different from 1-12, in that there is explicit code to generate the PWM signals. For pwm 1-12, no such explicit code exists, and to us, those PWM signals are auto-magically generated.

Basically, you should never have to use generate_pwms with pwm outputs 1-12. Just do "pwm01=255;" and get out of the way =).

-SlimBoJones...