Bus Pirate v3 PIC 24FJ blinking LED programming tutorial
From DP
Basic get started Demo. Use the Bus Pirate V3.x to blink the user programmable MODE LED
Contents |
Overview
The Bus Pirate uses the PIC24FJ64GA002 microcontrooler, and as such it can be used as a development board for the same, with some limitations. One of the pins is connected directly to the MODE LED and in this demo we will write just the basic code that is needed to blink that LED.
Basic Configuration
#include <p24fxxxx.h> _CONFIG1(JTAGEN_OFF & GCP_OFF & GWRP_OFF & COE_OFF & FWDTEN_OFF & ICS_PGx1) //turn off junk we don't need _CONFIG2(FNOSC_FRCPLL & OSCIOFNC_ON &POSCMOD_NONE & I2C1SEL_PRI) // Internal FRC OSC = 8MHz #pragma code
