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

EC mode..oscillator

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



Joined: 04 Apr 2007
Posts: 20

View user's profile Send private message

EC mode..oscillator
PostPosted: Thu Jul 26, 2007 5:33 am     Reply with quote

ALL,
System is using a 30Mhz OSC in EC mode. the output of PIC, OSC2(FoSC/4 =7.5Mhz) is feed to pheripheral chip.
on based on OSC2 output i have to generate some control signals..

which is the best way of the following..
1. input the OSC2(uP_CLK) output (while (input (uP_CLK));//wait till CLK is high).
2. use a timer0,
(
setup_timer_0(RTCC_8_BIT|RTCC_INTERNAL|NO_PRESCALER);
set_timer0(1);
)
on interrupt set the flag to generate the control signals.
3. or trace the OSC2 output to any input pin of PIC and sample/generate the control signal ..


any suggetion is welcome..
tom
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