New 40MHz PIC18F4520 Firmware Posted on Google Code

6 views
Skip to first unread message

abotics

unread,
Nov 14, 2009, 6:15:40 PM11/14/09
to Open-Robot
The new 40MHz Firmware has been published to the PIC18F4520 Firmware
repository on Google Code.

http://code.google.com/p/open-robot-pic-firmware/

For those who want to modify the firmware you must have a suitable
version of the CCS PIC C Compiler. If you are using the new 40MHz
version of the board, then simply refer to the following source files.

OPEN_ROBOT_PIC18F4520_RECOM_40MHz.c
OPEN_ROBOT_PIC18F4520_RECOM_40MHz.h
ex_bootloader_open_robot.c
bootloader_open_robot.h

If you are using the older 20MHz board then you need to refer to the
following source files.

OPEN_ROBOT_PIC18F4520.c
OPEN_ROBOT_PIC18F4520.h
ex_bootloader_open_robot.c
bootloader_open_robot.h

Please note that there are two #define statements within
ex_bootloader_open_robot.c that are critical.

// #define _20MHZ_ // Uncomment this line if using older 20MHz
resonator board.
#define _40MHZ_ // Uncomment this line if using the new 40MHz
crystal board.

If using the 40MHz board, then be sure to comment out the #define
_20MHZ line (by default the file is setup for the 40MHz board).
Otherwise if using the 20MHz board, then comment out the #define
_40MHZ line. This is critical because this tells the compiler which
way to setup the fuses and clock delay.

Abe
Reply all
Reply to author
Forward
0 new messages