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

using 37khz internal oscillator in PIC 16f628A

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







using 37khz internal oscillator in PIC 16f628A
PostPosted: Tue Apr 19, 2005 7:59 pm     Reply with quote

Hi everyone,
I have connected the PIC 16f628A in ER mode, But I am not going to use the frequency given by the external resistance. I would like to use the internal 37kHZ mode. How would I do that. I used the INOSC_IO fuse. The data sheet says that we need to clear specific bit PCCON(8Eh) to make the PIC work in 37khz mode. I tried to clear it using ASM, but it did not work. Is there any fuses or configuration bits, which I can make use of, to work in this mode. I tried changing the #use_delay to clock=37000, so that it might operate in 37khz internal oscillator frequency. But the PIC did not work. Any sugestions and comments are most welcome.
Thanks
carl
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 19, 2005 8:49 pm     Reply with quote

Don't use ASM. Use #byte or #bit to define the PIC's register, or a bit
in a register. Then you can access it directly with C code.
See how to do it in this post, which also answers your oscillator question:
http://www.ccsinfo.com/forum/viewtopic.php?t=18258&highlight=pcon
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