Posted on Friday, June 15th, 2012 in firmware, open source, USB by DP
We ported the open source USB echo demo to the PIC18F2550 Breakout Board. It has only the bare essentials you’ll need to get a CDC class USB project going on a PIC18F2550.
The code is setup for a 12 MHz crystal. To change to another just edit the
#pragma config PLLDIV = 3 line in the configwords.h file with a value hat divides your clock down to 4MHz. The equation for the PLLDIV parameter is [Frequency of your crystal]/4. Here are a few common examples:
- 20 MHz,
#pragma config PLLDIV = 5
- 16 MHz,
#pragma config PLLDIV = 4
- 12 MHz,
#pragma config PLLDIV = 3
- 8 MHz,
#pragma config PLLDIV = 2
- 4 MHz,
#pragma config PLLDIV = 1
You can download the source code from SVN.
This entry was posted
on Friday, June 15th, 2012 at 7:00 pm and is filed under firmware
, open source
You can follow any responses to this entry through the RSS 2.0
You can skip to the end and leave a response. Pinging is currently not allowed.