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

Timer1 using bit0 & bit1 on portc

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



Joined: 08 Sep 2003
Posts: 21

View user's profile Send private message

Timer1 using bit0 & bit1 on portc
PostPosted: Thu Jul 31, 2003 4:59 am     Reply with quote

To create an date/time system in my project I used a 32KHZ crystal connected at RC0/t1OSO/T1CKL and RC1/T1OSI/CCP2.
To oscillate this crystal need that I set the T1CON register (T1OSCEN bit) with 1 (Timer1 oscillator enable).
Is possible to activate this bit using a CCS function without use the direct register setting ?
The setup_timer_1() function do this purpose ?

___________________________
This message was ported from CCS's old forum
Original Post ID: 144516517
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: Timer1 using bit0 & bit1 on portc
PostPosted: Thu Jul 31, 2003 8:16 am     Reply with quote

:=To create an date/time system in my project I used a 32KHZ crystal connected at RC0/t1OSO/T1CKL and RC1/T1OSI/CCP2.
:=To oscillate this crystal need that I set the T1CON register (T1OSCEN bit) with 1 (Timer1 oscillator enable).
:=Is possible to activate this bit using a CCS function without use the direct register setting ?
:=The setup_timer_1() function do this purpose ?
:=

If your going to keep time using a crystle have a look at the thread on RTC. You will probably find some insight.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516520
Flavio58



Joined: 08 Sep 2003
Posts: 21

View user's profile Send private message

Re: Timer1 using bit0 & bit1 on portc
PostPosted: Fri Aug 01, 2003 2:57 am     Reply with quote

:=If your going to keep time using a crystle have a look at the thread on RTC. You will probably find some insight.

I known the rtcc method....
My problem is another.
When you connect a crystal to a pic it must to oscillate....
If you connect the oscilloscope's probes directly to PIC pins (rc0 and rc1) to measure the oscillator frequency you don't see nothing until you initialize correctly the T1CON register....
In my project I use two quartz.
The first s a 4 MHZ connected to OSC2 and OSC1 pins.
The date/time quartz is a 32KHZ connected to RC0 and RC1 pin.
Using the CCS #fuse directive (HS ...) you can start the first quartz oscillation.
I want to known if is possible to start the second quartz oscillation using some ccs functions without use the direct register setting.
Do you known if the setup_timer_1() start the quartz oscillation ?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516545
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