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

internal oscillator

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



Joined: 12 Jan 2005
Posts: 4

View user's profile Send private message

internal oscillator
PostPosted: Thu Jan 13, 2005 9:21 am     Reply with quote

As I know, some PIC models have internal oscillator circuit and no need to assemble any external oscillator. Such models run with 4MHz frequency in general. Which models of PIC has internal oscillator? Is PIC16F648A has? If it has;Could you give me the example code?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Thu Jan 13, 2005 9:28 am     Reply with quote

Don't be lazy, go here:

www.microchip.com
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Jan 13, 2005 10:20 am     Reply with quote

Beware that most of the internal oscillators have poor accuracy and may not even be good enough for reliable serial communication. But if you are just making a talking Teddy bear they may be fine.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Thu Jan 13, 2005 10:22 am     Reply with quote

So far this poster wanted to generate a 1MHz PWM. If that is still their intention, it is not going to happen and 4MHz (not with a 25% duty cycle).
derya



Joined: 12 Jan 2005
Posts: 4

View user's profile Send private message

it's okey
PostPosted: Fri Jan 14, 2005 2:15 am     Reply with quote

Hi,

I have achieved to get 1MHz PWM signal with 1/4 duty cycle.
I used 20MHz oscillator and parameters are as following;

setup_timer_2(4, 4, 1);
set_pwm1_duty(1);

Thanks...
regall



Joined: 15 Jan 2005
Posts: 6
Location: Turkey

View user's profile Send private message MSN Messenger

Re: it's okey
PostPosted: Sat Jan 15, 2005 9:19 am     Reply with quote

derya wrote:
Hi,

I have achieved to get 1MHz PWM signal with 1/4 duty cycle.
I used 20MHz oscillator and parameters are as following;

setup_timer_2(4, 4, 1);
set_pwm1_duty(1);

Thanks...


tembel olmak yok derya biraz okuyacaksın calısacaksın . yok ole hemen kod falan istemek. Smile
Guest








PostPosted: Tue Jan 18, 2005 1:14 am     Reply with quote

Twisted Evil
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