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

Timer1 Crystal question

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



Joined: 15 Nov 2004
Posts: 42

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

Timer1 Crystal question
PostPosted: Mon Mar 03, 2008 1:34 pm     Reply with quote

Is it possible to run the Timer1 OSC with 1Mhz external crystal ? I see 18F reference and it suggested value in 32-200Khz range .

If yes what Capacitor value should I use for 1Mhz?

PIC=18f452 ,Freq=40Mhz.

Thx .
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 03, 2008 1:43 pm     Reply with quote

From the 18F452 data sheet:
Quote:

11.2 Timer1 Oscillator
The oscillator is a low power oscillator rated up to 200 kHz.
Imanjl



Joined: 15 Nov 2004
Posts: 42

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

PostPosted: Mon Mar 03, 2008 3:35 pm     Reply with quote

if I set the timer to operate with internal oscillator it can reach to 10mhz freq when PIC run at 40Mhz .

I think an external clock with 1Mhz Freq can solve the problem ,but I dont have access to external clock source in my board .

Is it possible to connect the PWM output of PIC to timer1 clock input ?
I want to drive the timer with PWM module .
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 03, 2008 3:48 pm     Reply with quote

Quote:
Is it possible to connect the PWM output of PIC to timer1 clock input ?

Use a wire and connect the two pins.
Imanjl



Joined: 15 Nov 2004
Posts: 42

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

PostPosted: Mon Mar 03, 2008 4:01 pm     Reply with quote

Thanks PCM programmer It was done with a piece of wire .
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