I'm new! When trying to program I get this message:
"PICkit 3 does not support programming this device if both the internal oscillator and internal MCLR are selected. You may continue programming, but you are encouraged to cancel, reconfigure your device and try again. Select OK to continue programming or CANCEL to avoid programming."
So my question is... Can I use GP3 without setting #fuses NOMCLR? I want to use #fuses #INTRC_IO but also want to use pin 4 (GP3) as an input. What am I doing wrong?
void main(void)
{
while(1)
{
// if the Switch and the LED are opposite then toggle the power
if(input(PIN_A3)^input(PIN_A2)) // XOR Switch to LED
{
//Turn the unit on
output_low(PIN_A5); // Simulate power button press
delay_ms(500); // Wait with button pressed...
output_float(PIN_A5); // Simulate power button release
}
delay_ms(200); // Wait before checking again.
}
}
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Thu Jan 14, 2010 5:31 pm
This is a Microchip issue. The Microchip forum is the best place to look.
Someone offers an explanation near the end of this thread.
It's about using the PicKit 2. Apparently the PicKit 2 has
a standalone application program (in addition to MPLAB)
that can be configured to fix the problem:
http://www.microchip.com/forums/tm.aspx?m=461172
This is a Microchip issue. The Microchip forum is the best place to look.
Someone offers an explanation near the end of this thread.
It's about using the PicKit 2. Apparently the PicKit 2 has
a standalone application program (in addition to MPLAB)
that can be configured to fix the problem:
http://www.microchip.com/forums/tm.aspx?m=461172
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum