CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC12F675 - INTRC_IO with NOMCLR not allowed?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Squintz



Joined: 08 Dec 2009
Posts: 11

View user's profile Send private message

PIC12F675 - INTRC_IO with NOMCLR not allowed?
PostPosted: Thu Jan 14, 2010 11:03 am     Reply with quote

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?


Code:

#include <12F675.h>

#fuses INTRC_IO     //Inernal RC Oscillator
#fuses NOWDT        //No Watchdog Timer
#fuses NOBROWNOUT   //No Brownout Detection
#fuses NOMCLR       //No Master Clear Reset. Used for I/O Instead

#use delay(clock=31000) //

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

View user's profile Send private message

PostPosted: Thu Jan 14, 2010 5:31 pm     Reply with quote

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 thread is on the PicKit 3, and the same problem:
http://www.microchip.com/forums/tm.aspx?m=461553

What is your Vdd voltage on the PIC ?
Linxroot



Joined: 16 May 2011
Posts: 17

View user's profile Send private message

PostPosted: Wed Jun 17, 2015 12:50 pm     Reply with quote

PCM programmer wrote:
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 thread is on the PicKit 3, and the same problem:
http://www.microchip.com/forums/tm.aspx?m=461553

What is your Vdd voltage on the PIC ?


The VDD is 5,07 V RMS
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group