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

About ICD2 and Clock speed

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



Joined: 21 Aug 2016
Posts: 1

View user's profile Send private message

About ICD2 and Clock speed
PostPosted: Sun Aug 21, 2016 6:55 am     Reply with quote

Hi,

I use a 18f4455 and two crystals (4mhz and 20mhz) to do some tests and understanding all about quartz clocking and internal clocking.

I would like to know if Mplab, CCS Compiler or my ICD2 will detect if I make a mistake in choosing my clock speed ?

And how to know if my quartz is broken ?

Thank you.
temtronic



Joined: 01 Jul 2010
Posts: 9229
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Aug 21, 2016 8:15 am     Reply with quote

Well if the xtal is broken, PIC won't operate ! Unless it has a 'backup internal RC oscillator (failsafe). Since I don't use that PIC I don't know without looking at the specsheet...

NO, if you code for a 4MHz xtal and use a 20, nothing KNOWS that but you !!

If coded for 4 and a 20 is in use, an LED will flash 5x faster though.

Now you could get 'clever' and code some 'autoconfig' code, though that's beyond most students I've seen post here, more of an ASM thing...
Jay
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