PDA

View Full Version : Some initial help for a first time PBP user



jtburnham
- 29th April 2006, 06:04
Hello all,

After giving up trying to use a competitors product, I downloaded the demo PBP and have compiled the blinking LED demo program using the included MicroCode Studio IDE.

I have a small JDM programmer and I'm using IC-PROG.

Could someone tell me how to use the config directive in PBP to set the clock rate. I'm using a 20MHz crystal and it looks like the default clock is set for 8.

Thanks.

Jim

paul borgmeier
- 29th April 2006, 07:22
In code, the default is usually 4 MHz. If you need something different, place this line of code at the top of your PBP file (see online PBP manual)

DEFINE OSC 20 ' Tells PBP that Oscillator is 20.000 MHz

For the actual programmer, you usually have your choice of XT or HS (as well as a few others). Although you did not say what PIC you are using, you are almost certain to need HS for a 20MHz Xtal. (this information is in the PIC data sheet and not the PBP manual). Make sure your specific PIC is rated for at least 20 MHz

Good Luck,

Paul Borgmeier
Salt Lake City, Utah
USA

jtburnham
- 29th April 2006, 07:32
Thanks Paul. That fixed it.