Go to Post When you build a practice robot, you're literally buying time. - sanddrag [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 22-12-2007, 03:36
Capt. Quirk Capt. Quirk is offline
Registered User
AKA: Bill Mazzacane
FRC #1704 (Robotic Steelers)
Team Role: Mentor
 
Join Date: Aug 2007
Rookie Year: 2007
Location: SoCalif
Posts: 64
Capt. Quirk will become famous soon enoughCapt. Quirk will become famous soon enough
Can the VEX controller be programmed in assembly?

I want to use it like a demo board, to learn the chip and use LED's in the 16 Analog / Digital I/O ports.

Besides modifying the programming dongle to program only the slave. And possibly program the master with an inert program, to disconnect the communication between the master and slave?

Does anybody know if it will work or have a suggestion

Thanks
  #2   Spotlight this post!  
Unread 22-12-2007, 09:03
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,854
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Can the VEX controller be programmed in assembly?

It can be programmed in Assembly using MPLAB. MPLAB comes with the Assembler by default as part of the freeware package.

It's pretty easy to isolate the master processor in code, so you can program the user processor fairly freely.
If you're really thinking about a hardware bypass then it'd be simpler to just purchase a PIC of your own.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 22-12-2007, 14:50
Capt. Quirk Capt. Quirk is offline
Registered User
AKA: Bill Mazzacane
FRC #1704 (Robotic Steelers)
Team Role: Mentor
 
Join Date: Aug 2007
Rookie Year: 2007
Location: SoCalif
Posts: 64
Capt. Quirk will become famous soon enoughCapt. Quirk will become famous soon enough
Re: Can the VEX controller be programmed in assembly?

I am not sure where to start.

I have plenty of experience with Parallax 8 bit SX28 & 52's, but I haven't ever worked with "C" or Pic's. So I bought Myke Predko's "123 PIC Controller experiments for the evil genius" to help get me going over the Christmas break and a VEX controller to program with.

I know I need to start with EasyC, but after that I want to use a regular IDE like MPLAB & C18 to program with. The biggest problem I see is, what Loader program would I use and how does it know which chip it's programming?



(I am planning on buying Myke Predko's "Programming and Customizing the PIC Microcontroller" after Christmas. I would like to use the VEX robot to learn more Assembly using the Pic instead of the SX, but after the competition)


Thanks

Bill
  #4   Spotlight this post!  
Unread 22-12-2007, 16:04
gblake's Avatar
gblake gblake is offline
6th Gear Developer; Mentor
AKA: Blake Ross
no team (6th Gear)
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Virginia
Posts: 1,940
gblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond reputegblake has a reputation beyond repute
Re: Can the VEX controller be programmed in assembly?

Quote:
Originally Posted by Capt. Quirk View Post
... I know I need to start with EasyC, but after that I want to use a regular IDE like MPLAB & C18 to program with. The biggest problem I see is, what Loader program would I use and how does it know which chip it's programming? ...
Bill - Take a look here (https://jvex-robotics.dev.java.net/ToolChainSetup.html) - See if the utilities and explanations take care of (most of) your questions - Blake
__________________
Blake Ross, For emailing me, in the verizon.net domain, I am blake
VRC Team Mentor, FTC volunteer, 5th Gear Developer, Husband, Father, Triangle Fraternity Alumnus (ky 76), U Ky BSEE, Tau Beta Pi, Eta Kappa Nu, Kentucky Colonel
Words/phrases I avoid: basis, mitigate, leveraging, transitioning, impact (instead of affect/effect), facilitate, programmatic, problematic, issue (instead of problem), latency (instead of delay), dependency (instead of prerequisite), connectivity, usage & utilize (instead of use), downed, functionality, functional, power on, descore, alumni (instead of alumnus/alumna), the enterprise, methodology, nomenclature, form factor (instead of size or shape), competency, modality, provided(with), provision(ing), irregardless/irrespective, signage, colorized, pulsating, ideate
  #5   Spotlight this post!  
Unread 22-12-2007, 16:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,854
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Can the VEX controller be programmed in assembly?

Quote:
Originally Posted by Capt. Quirk View Post
The biggest problem I see is, what Loader program would I use and how does it know which chip it's programming?
Blake catches the toolset questions.

The latest IFI_Loader is what you're looking for to download the code to Vex.
You don't need to specify the PIC model to IFI_Loader though.

You tell MPLAB what PIC model you're working with either using it's "Project Wizard" (you select the PIC model you're working with on the first menu), or under "Configure->Select Device."

I like Myke Predko's books.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-12-2007 at 16:58.
  #6   Spotlight this post!  
Unread 23-12-2007, 02:25
Capt. Quirk Capt. Quirk is offline
Registered User
AKA: Bill Mazzacane
FRC #1704 (Robotic Steelers)
Team Role: Mentor
 
Join Date: Aug 2007
Rookie Year: 2007
Location: SoCalif
Posts: 64
Capt. Quirk will become famous soon enoughCapt. Quirk will become famous soon enough
Re: Can the VEX controller be programmed in assembly?

I need clarification on a few more things (For now ) How does the IFI loader know if it's programming the Master or the Slave mpu?

After working with EasyC v2 and reading my book today, I would rather skip EasyC and go with the book ("C" doesn't seem to be as difficult as I thought it would be). So the Master-Slave, is an issue (I think) if I am going to use the VEX controller like it was a development board (or Pic-Kit 1).

Also, what is the "desired directory" to install Java Term into?

Mark and Blake, Thank you for your help.

Sincerely

Bill M.

Last edited by Capt. Quirk : 23-12-2007 at 04:26.
  #7   Spotlight this post!  
Unread 23-12-2007, 08:10
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,393
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: Can the VEX controller be programmed in assembly?

One of the cool things about using a PIC is that once the hardware is done, it's easy to change the code. It's faster to download new code rather than breaking out the solder.

For me, creating the initial hardware design is a stumbling block. I can do block setups of what needs to connect to what, but the devil is always in the details. VirtualBreadboard is a way to draw the circut out and test it. It has the ability to read the output from the MPLabs compiler and use it to drive the simulation. You can do either assembler or C.

You might want to take a look at using it as a practice point. A bonus is the examples from the 123 book have been converted, so you can see the code, see the circuit and off you go.

Once you get the hang of it in the Virtual environment, it may be easier to do the programming on the Vex.

http://www.virtualbreadboard.com/
  #8   Spotlight this post!  
Unread 23-12-2007, 09:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,854
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Can the VEX controller be programmed in assembly?

Quote:
Originally Posted by Capt. Quirk View Post
I need clarification on a few more things (For now ) How does the IFI loader know if it's programming the Master or the Slave mpu?
IFI_Loader defaults to loading the user processor files, but can be changed on the "Browse" pop-up. Down at the bottom of that pop-up window you'll see "Files of type:"
The user processor takes hex files of type "INHEX32 Files (*.HEX)," the hex files that MPLAB produces from your source code after compiling and linking.

IFI doesn't release the Master processor code source, or provide the proprietary information required to program it directly ourselves.
They only release binary updates to the Master processor. Think of the Master processor as an Operating System with periodic patch updates. Those show up in the IFI_Loader Browse pop-up as type: "Master Files (*.BIN)"
The Vex system is at version 7 of the Master Code, re: http://www.vexlabs.com/vex-robotics-downloads.shtml

For your purpose it's easiest to write a shell that handles the existing communications/control from the Master processor and program in assembly within that shell.

Quote:
Also, what is the "desired directory" to install Java Term into?
It's just another application so typically that goes into "Program Files" on your C drive, but it doesn't have to be any particular place.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-12-2007 at 10:07.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
IR on the Vex controller? jgarbers FIRST Tech Challenge 0 18-04-2006 14:07
Making the VEX OI (controller) beep? ForgottenSalad FIRST Tech Challenge 2 27-03-2006 08:50
Can the pic controller send the data to pc? sunnyrx7turbo Control System 2 05-08-2005 13:14
How much can the window assembly lift? archiver 2000 9 23-06-2002 22:59


All times are GMT -5. The time now is 18:39.

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