Go to Post I am a firm believer that there is no model that can be transplanted/copied from one team to another and have the same level of success. There just isn't a formula for it. The mindset you should have is: "I know I have made a positive impact on my community". - tim-tim [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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
  #27   Spotlight this post!  
Unread 19-05-2009, 02:09
s1900ahon s1900ahon is offline
Registered User
AKA: Scott McMahon
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 156
s1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant future
Re: Failed attempt to explain JAG linearity

Quote:
Originally Posted by Gdeaver View Post
I don't Know if this affects the discussion, but I believe a high side FET is left on durring the PWM off period.
Uh, no. The low side MOSFET is turned on and the opposite high side MOSFET is turned on and off in proportion to the desired output. This is all done in hbridge.c. For example, the code to make M+ positive and M- GND is..

//
// Update the generator registers with the required drive pattern.
//
HWREG(PWM_BASE + M_MINUS_CTRL_GEN) = LO;
HWREG(PWM_BASE + M_MINUS_PWM_GEN) = ON;
HWREG(PWM_BASE + M_PLUS_CTRL_GEN) = HI;
HWREG(PWM_BASE + M_PLUS_PWM_GEN) = PULSE;
..where HWREG() is a macro that dereferences the unsigned long value pointed to by the BASE+OFFSET, in this case registers within the PWM[*] unit. The defines ON, LO, HI, and PULSE are predefined values for the PWM's[*] GeneratorA/B registers.

What the code above says is to set the control input of the M- gate driver to 0 and set the enable to be 1, making the output turn on the low side MOSFET of M-. The next two lines turn on the control input of the M+ gate driver, BUT to PWM the enable. This pulses the high side MOSFET of M+.

The reverse direction is similar, but reversed.

-Scott

[*] It is important to remember that there are (unfortunately) two things referred to as PWM: the 3-wire hobby servo signal, and the functional unit in the MCU that controls the HBridge. For this note's purposes I strictly refer to the latter. The pulse-width modulating of the HBridge.
 


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
2009 Camera and Jag inventor models problem Creator Mat CAD 5 08-03-2009 14:05
1 Jag and 1 Victor not responding correctly. elbuo NI LabVIEW 4 17-02-2009 22:57
Joystick Linearity NinJA999 Control System 4 28-01-2007 18:49
pic: Yet another attempt at Photoshop Cody Carey Extra Discussion 1 08-04-2006 23:13
pic: Failed attempt at simulation CD47-Bot Extra Discussion 5 17-06-2004 11:03


All times are GMT -5. The time now is 00:06.

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