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 external oscillator for RTC on PIC18F47j13
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jan 25, 2020 10:27 am     Reply with quote

I believe he actually means Epson Toyocom.

There is no Epson MC-164, so I conclude it is likely this one:
https://www5.epsondevice.com/en/products/crystal_unit/mc146.html
According to the data sheet on that page, the loads available are
6pf, 9pf, and 12.5pf.

Also, a 0 parameter in setup_rtc_alarm() does not mean no alarms.
It means no repeat alarms. With 0, you will get one alarm only.
With 10, you get the initial alarm and then 10 repeats.
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Sat Jan 25, 2020 11:53 am     Reply with quote

Good. The ESR on this is nicely in the required range.
However, if he has the 7pF version, he will probably have this much
capacitance without any add on capacitors. Even the 9pF one will only
want something like 10pF for the external capacitors.
HaveAchat



Joined: 02 Aug 2015
Posts: 16
Location: Australia

View user's profile Send private message

PostPosted: Thu Jan 30, 2020 4:11 pm     Reply with quote

Sorry for delay in getting back to you, been dragged out into the sunshine for a few days!
The datasheet PCM found is correct. I had thought I had ordered the 12.5pF device but it looks like I have the 7pF version.

Every little error adds up!
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Fri Jan 31, 2020 2:47 am     Reply with quote

OK. The 7pF versions are designed basically to work without extra capacitors.
Typically the chip has a pin capacitance around 3 to 4pF. If you then have a
couple of cm of trace, with a power plane round it on both sides, you have
perhaps another 5pF. The crystal itself will have a pin capacitance of
perhaps 3pF, so the effective load capacitance will be:

(4+5+3)/2 = 6pF

Very close to the 7pF.

In fact some of the RTC clock chips are specifically specified to work
correctly with the 7pF crystals, with a specific board layout, and no extra
capacitors.

No wonder it is overloaded with the extra capacitors though!... Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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