Go to Post ...never do something because it is comfortable, do something because you WANT to do it. - Andrew Schreiber [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 27-04-2006, 13:53
Yuriy Yuriy is offline
Registered User
no team
 
Join Date: Apr 2006
Location: Earth
Posts: 2
Yuriy is an unknown quantity at this point
PIC18F8520 port mapping to VEX microcontroller module.

Hello everyone,

I have searched for several days for the answers I seek with little success so I decided to just ask. I recently purchased a VEX starter kit and programming module after reading the system is designed around the PIC series of microcontrollers, specifically the 80-pin PIC18F8520. I have some experience programming with PIC and dsPIC devices and already have MPLAB and the C18/C30 compiler along with Hi-Tech and CCS PCWH C compilers. I understand the VEX microcontroller module consists of two 80-pin PIC18F8520 devices and is programmed via a serial/USB bootloader style format. What I’m not sure of is what exactly the Master PIC is responsible for and to what level if any can it be programmed/controlled? I realize it holds the bootloader that communicates with the IFI loader software via a USART I/O module and is what programs the second PIC via SPI which holds the user programmable software. I would guess that the Master PIC bootloader code is not being made public. So, what I would really like to know is what level of control I have over the 80-pin PIC18F8520 devices in the VEX microcontroller module? Can any one tell me what ports from the 80-pin PIC18F8520 devices correspond to on the VEX microcontroller module? As many of you already know the 80-pin PIC18F8520 has Ports A,B,C,D,E,F,G,H and J, knowing the actual hardware port being utilized would greatly help with the programming. Any information concerning hardware level control would be great as the documentation that came with the programming kit provides none.

Last edited by Yuriy : 27-04-2006 at 13:58.
  #2   Spotlight this post!  
Unread 27-04-2006, 21:55
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,721
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: PIC18F8520 port mapping to VEX microcontroller module.

First off, you'll find a lot of helpful information at Vexlabs, IFI's store dedicated to Vex. There's a FAQ there with some programming info. From what I understand, the master controller handles the RC communication and various other housekeeping tasks. It also has a watchdog timer to shut things down if the User processor is stuck in a loop.

As you surmise, source for the Master processor is not available. Compiled code is available if you really feel like reverse engineering it.

In the Downloads section at Vexlabs, you'll find default source code for the controller. There's an ifi_aliases.h file that aliases variables to pins on the User processor. All the pins on the controller as off the User processor, so you can use them all. There's a few CCP pins, but I didn't see any exceedingly interesting sets of pins available. I've attached the ifi_aliases.h file if you don't want to bother with the downloads.
Attached Files
File Type: h ifi_aliases.h (11.5 KB, 101 views)
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #3   Spotlight this post!  
Unread 28-04-2006, 13:11
Yuriy Yuriy is offline
Registered User
no team
 
Join Date: Apr 2006
Location: Earth
Posts: 2
Yuriy is an unknown quantity at this point
Re: PIC18F8520 port mapping to VEX microcontroller module.

Super fantastic!!!

Many thanks Kevin for the Vexlabs link and especially for the ifi_aliases.h header file, it is exactly what I was looking for. I was specifically looking for three pins PGM, PGC, and PGD which are multiplexed to port B at RB5, 6, and 7 and are being utilized as interrupt-on-change pins which map to the VEX microcontroller module interrupts ports 4, 5, and 6. I knew somebody would have the answer I only had to ask the question, thanks again Kevin.
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
Transmitting from the Microcontroller Module dgreenbean Programming 1 24-04-2006 22:07
Programming Vex Starter Kit To Recieve From Serial Port firetrap FIRST Tech Challenge 0 26-09-2005 17:27
TTL port to a serial port on a demo board ImmortalAres Programming 16 09-07-2005 23:44
Updated: Serial Port Driver Code Kevin Watson Programming 4 05-02-2005 18:39
New Serial Port Driver Kevin Watson Programming 16 09-01-2005 01:56


All times are GMT -5. The time now is 23: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