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 CCS Technical Support

12LF1822 CLKOUT PIN

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



Joined: 23 Jun 2010
Posts: 19

View user's profile Send private message

12LF1822 CLKOUT PIN
PostPosted: Thu Feb 03, 2011 3:07 am     Reply with quote

Hi everyone,

I just got the 12LF1822 and attempting to run a working program from the 12F683. Noticed PIN 4 - CLKOUT is outputting fosc/4 despite the fact that I had disabled it in the fuses directive (INTRC_IO). This directive works in the 12F683.

Appreciate your suggestions on disabling the CLKOUT so that I can use the PIN_A4 on the 12LF1822 as an output pin. Unfortunately, all other pins are been utilized.

Kind regards.
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Thu Feb 03, 2011 3:32 am     Reply with quote

Triple check your fuses. Classic cause is having another clock fuse, and the values of the two fuses get 'ored' together, resulting in the wrong fuse actually being set.
What compiler version?. We can't tell you whether it should work with your compiler, without knowing this.
Load the compiled code into MPLAB, and see what the configuration bits are actually set to. Most probable thing, is that CCS have got the option wrong....


Best Wishes
delesan



Joined: 23 Jun 2010
Posts: 19

View user's profile Send private message

12LF1822 CLKOUT PIN
PostPosted: Thu Feb 03, 2011 3:50 am     Reply with quote

Thanks Ttelmah.

I do apologize for omitting the details. I am using the PICKIT 3 version 01.26.05. The compiler is CCS C-compiler. Couldn't find the version. I am using the MPLAB IDE version 8.50.
I checked the Configuration Word 1 in memory location 8007h and it has a data 30D4. By default, CLKOUT is enabled.

Regards
delesan



Joined: 23 Jun 2010
Posts: 19

View user's profile Send private message

12LF1822 CLKOUT PIN
PostPosted: Fri Feb 04, 2011 3:13 am     Reply with quote

Placed before main() the following and was able to disable the CLKOUT for the 12LF1822:

#rom 0x8007 = {0b00100110100100}.

Regards
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