View previous topic :: View next topic |
Author |
Message |
derya
Joined: 12 Jan 2005 Posts: 4
|
internal oscillator |
Posted: Thu Jan 13, 2005 9:21 am |
|
|
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
|
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Thu Jan 13, 2005 10:20 am |
|
|
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
|
|
Posted: Thu Jan 13, 2005 10:22 am |
|
|
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
|
it's okey |
Posted: Fri Jan 14, 2005 2:15 am |
|
|
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
|
Re: it's okey |
Posted: Sat Jan 15, 2005 9:19 am |
|
|
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. |
|
|
Guest
|
|
Posted: Tue Jan 18, 2005 1:14 am |
|
|
|
|
|
|