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
Re: Timer1 using bit0 & bit1 on portc
Posted: Thu Jul 31, 2003 8:16 am
:=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
Re: Timer1 using bit0 & bit1 on portc
Posted: Fri Aug 01, 2003 2:57 am
:=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
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