View Single Post
  #5   Spotlight this post!  
Unread 21-04-2008, 22:02
fstumpo's Avatar
fstumpo fstumpo is offline
Question Everything!
FRC #1640 (SAB-BOT-AGE)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Downingtown
Posts: 9
fstumpo is an unknown quantity at this point
Re: using mplab with vex

The Vex Controller is definately based on the PIC18F8520 not the PIC18F8722 plus some of the aliases are named different for the rxData and txData data structures. The PWM stuff is different as well.

But just use the VEX default code, set the MLABS IDE device to PIC18F8520 and load the 8520 library and linker script and you should be set to go.

Some of Kevin's code, particularly the serial stuff has an include for the 8722.h file so this should be changed to 8520.h.

Oh, and remember the slow loop is not 26ms is more like 18ms.

I have ported over the new structure that Kevin wrote this year to the VEX but I have not been able to get more than 4 PWM's working.
Reply With Quote