Go to Post It's kind of magical how I went from legos to replacing most of the iron in my blood with aluminum, and all thanks to my elementary school science teacher. - Astrokid248 [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
  #1   Spotlight this post!  
Unread 09-02-2009, 23:27
Chipawa's Avatar
Chipawa Chipawa is offline
Registered User
AKA: Mr. Tucker, AKA Chip
FRC #1111 (Powerhawks)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Annapolis, MD
Posts: 41
Chipawa is an unknown quantity at this point
Allocation of PWM and GPIO Channels

We have a lot of motors and limit switches on this year's robot. Is there any reason we cannot use (for example) PWM channels 1-8 and GPIO channels 1-8 from the same digital sidecar?

And if so, how do you address those channels in code?

We're programming in C++. I'm not a programmer, but I understand that you have to specify a slot and a channel number for each signal. I'm just not sure how you differentiate between a PWM channel and a GPIO channel. Any help would be appreciated.
__________________

2010 DC Engineering Innovation Award
2010 DC Spirit Award
2008 Chesapeake Finalist
2008 Chesapeake Rockwell Automation Innovation in Controls award
 


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 02:19.

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