Explorer16 + Pickit2?

Discussion in 'Embedded Systems and Microcontrollers' started by msr, Oct 4, 2010.

  1. msr

    Thread Starter Active Member

    Jul 8, 2008
    62
    1
    Hello,

    Can I program PIM modules that came with Explorer16 board with Pickit2 programmer?

    In the Explorer16 user guide its said:
    Connector J14 provides the footprint for a 6-pin PICkit 2 programmer interface. This will
    provide a third low-cost programming option, besides MPLAB ICD 2 and the JTAG
    interface, when PICkit 2 support for larger devices become available in the future.

    In the Pickit2 webpage its said that this programmer is able to program dsPIC33F uC's (in which Im interested to).

    However Im trying to run this simple program (which is built successfuly) and I can'n see any LED on:

    Code ( (Unknown Language)):
    1. #include <p33FJ256GP710.h>  
    2.    
    3.   int main()  
    4.   {  
    5.       TRISA = 0;  
    6.       PORTA = 0x0f;  
    7.    
    8.       return 0;  
    9.   }  
    10.    
    Any suggestions?

    Thanks!
     
  2. maxpower097

    Well-Known Member

    Feb 20, 2009
    795
    388
    Yah it works fine. You just have to switch it around and use pin 6 on 1 and 1 on 6. MC had a misprint on the board. That may be why its not recognizing. Also I highly recommend flashing the onboard PIC18LF455 to a PICKIT2, That way you just plug the USB into the EXP 16 and it's recognized as a pickit 2. No need for a programmer at all. Just need to flash the PIC18 one time to turn it into a PICKIT2.

    Also if your using the onboard LED's you must turn off JTAG in configuration. You can steal this code from other code examples or set it up in configuration bits in mplab. Once jtag is off, it will light up the LED's. Unfortunately they use the same pins.
     
  3. maxpower097

    Well-Known Member

    Feb 20, 2009
    795
    388
    Try this. Its what I'm using for PIC24 but should work.
    Code ( (Unknown Language)):
    1.  
    2. #include <p33FJ256GP710.h>  
    3.  
    4. _CONFIG1( JTAGEN_OFF)
    5.  
    6.  
    7.   int main()  
    8.   {  
    9.       TRISA = 0;  
    10.       PORTA = 0x0f;  
    11.    
    12.       return 0;  
    13.   }  
    14.    
     
Loading...