Go to Post 20,000 students 900 teams robots Gracious professionalism = FIRST - Bcahn836 [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
  #8   Spotlight this post!  
Unread 11-02-2009, 00:36
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: Allocation of PWM and GPIO Channels

Well, you are programming in C, so this might be of little help, but this is what I have noticed in LabVIEW:

You can open up the Set and Get VIs (VIs, or SubVIs, are like functions in C) for the PWM input/output plugs and see what they actually do to make controlling the PWM signals. They actually use the Counter VIs to make/read the signal that is going through the pins to sense the ups and downs, ultimately a PWM signal. Then they handle sending/recieving signals through the port similar to a regular digital input-output port.

I would suggest looking into this on the C side and see if you can look into the functions that allow you to control PWM signals. I'll bet they too use counting processes to read/write a PWM signal from scratch. Then you can make your own code that does the same or copy and paste some of those formulas' code, but instead modify it so that it is controlling a digital input/output port/slot/pins.

I hope this makes sense. Cheers!
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
 


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
Dashboard Analog Meters and GPIO? Geek_Girl Programming 1 17-12-2008 09:50
Dynamic Memory Allocation Woes slavik262 Programming 7 12-02-2008 16:15
Random Allocation of Trackballs fabalafae Rules/Strategy 7 07-01-2008 09:31
Please help: Memory allocation problem dealing with sections RbtGal1351 Programming 10 14-03-2006 14:58
Split topic - How many channels can the current (2004) Oi's and Rc's Handle? Elgin Clock Control System 6 02-01-2005 14:02


All times are GMT -5. The time now is 21:47.

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