Go to Post I love the smell of a upcoming FRC build season in the morning. The sleepless night; the drills; welding; cutting of metal. I wait all yr. for this. - midway78224 [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2003, 12:23
Mike o.'s Avatar
Mike o. Mike o. is offline
Registered User
AKA: Mike O'Brien
FRC #1086 (Blue Cheese)
Team Role: Engineer
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Richmond, Virginia
Posts: 133
Mike o. has much to be proud ofMike o. has much to be proud ofMike o. has much to be proud ofMike o. has much to be proud ofMike o. has much to be proud ofMike o. has much to be proud ofMike o. has much to be proud ofMike o. has much to be proud ofMike o. has much to be proud of
Send a message via AIM to Mike o. Send a message via Yahoo to Mike o.
Shiftout

I need a little refresher on how to calculate the SHIFTOUT statement. and please explain in English, the way that innovationfirst and FIRST explain is a tad bit tooo confusing. so if anyone could help that would be great. thankx and have a great day. later days

Mike O'Brien
__________________
Mike O'Brien
Founder, Almuni, & Mentor Team 1086
2010 GAL Division Finalist & Coopertition Award; NC Regional Winner & Quality Award; VA Regional Winner & Engineering Inspiration Award Winner
2009 CMP Team Spirit Award; VA Regional Winner & Chairman's Award
2008 VA Regional Winner & Chairman's Award
2007 & 2006 VA Delphi "Driving Tomorrow's Technology" Award
2005 VA Team Spirit Award; 2004 VA Imagery Award; 2003 Rookie Year
  #2   Spotlight this post!  
Unread 12-02-2003, 13:26
Jnadke Jnadke is offline
Go Badgers!
#0093
Team Role: Alumni
 
Join Date: Jan 2002
Location: Appleton, WI
Posts: 775
Jnadke is on a distinguished road
Send a message via ICQ to Jnadke Send a message via AIM to Jnadke Send a message via Yahoo to Jnadke
You should never have to play with those statements.


What you do need to do, is go to the section "DEFINE CONSTANTS FOR INITIALIZATION" and set the constants for the variables you are INPUTING to 1.


Then, just set up your serin statement so that it inputs those variables. Look at the sample serin statement for the order of the variables you choose.


Example:

c_p1_y, c_p2_y, c_p3_y, c_p3_x, c_oi_swA, c_oi_swB, c_sensor1, c_rc_swA, c_rc_swB, and c_PB_mode are all set to 1. The serin statement would look like:

Serin COMA\COMB, INBAUD, [oi_swA,oi_swB,rc_swA,rc_swB,p3_x,PB_mode,sensor1,p 2_y,p1_y,p3_y]
__________________
The best moments of our lives fall in two categories: those that did happen and those that did not.
  #3   Spotlight this post!  
Unread 12-02-2003, 13:38
Skabana159's Avatar
Skabana159 Skabana159 is offline
Robotics and Field Hockey
AKA: Jesse C. Owens
#0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2000
Location: Ft. Collins, CO
Posts: 92
Skabana159 is on a distinguished road
Send a message via AIM to Skabana159
I guess my question is this:
Are you sure you need synchronus serial communication? I can only assume that if you truly do, then you are using an external circuit that has a need for a clock. If this is not the case, then you want serout. Otherwise, here is shiftout:

shiftout Dpin,Cpin,Mode[data{\bits},...]

This means that you will have three constants: Dpin, Cpin, and Mode. Dpin is going to be the data line, 16 if your going to use the program port. CPin is the pin where you will connect the clock on your device. I actually have no idea how to do this on an IFI system, only on a breadboard-stamp. Mode must be matched depending on the protocol of the device that you are using. Since it is a constant from 0-3, it won't be too painful to find out by trial-and-error. Then, you put your data. It will, by default, output 8 bits for every value, but you can change this with the optional operand {\bits}. This, once again, depends on the protocol of your device.
Good luck with this, becuase I would not want to try and figure all this out in the last week!
__________________
"What most people do not understand is that the Buddha, the Godhead, resides just as comfortably in gears and circuits as in hills and trees. To believe otherwise is to dilute the Godhead."
-Robert Pirsig, Zen and the Art of Motorcycle Maintenance
Closed Thread


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


All times are GMT -5. The time now is 04:26.

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