Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC 12 F 675 low power oscillator using 32,768MHz crystal

Status
Not open for further replies.

Tukan

Junior Member level 1
Joined
May 24, 2010
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Slovakia
Activity points
1,406
PIC 12 F 675 low power oscillator using 32,768kHz crystal

Hello guys,

I am using low power oscillator configuration on PIC12F675 MCU with 32,768kHz crystal.
My problem is that the program starts after approx. 12 sec from power supply switching on, what is too long time for me.
I am using 100pF capacitors on oscillator pins.
Does anybody have any idea to solve my problem please? Or is this starting time normal for this osc. type?

Thanks in advance
 
Last edited:

Have you looked at the oscillator pin OSC2 to see if a slow clock startup is genuinely the cause? You could try adding a resistor in series with OSC2. I am not sure if you are allowed to dynamically change the oscillator mode, but if so, maybe you could start in XT mode then switch (although I think the problem should be solvable without that). You could make C2 greater than C1 (C2 is on OSC2).

Most of this information is here: https://ww1.microchip.com/downloads/en/DeviceDoc/33023a.pdf rather than in the data sheet. Also, this might be worth a read: https://ww1.microchip.com/downloads/en/AppNotes/00588b.pdf

Keith.
 

Are you sure, that the "program startup" delay is actually caused by the oscillator startup or do you have some initial code processed before? The processor is rather slow at 32 kHz clock frequency.

If it's actually an oscillator issue, I noticed that Microchip specified 68 - 100pF capacitors for LP oscillator, but it's far off usual manufacturer specifications for watch crystals. The crystal may be simply unable to achieve a sufficient Q with this load impedance.
 

using 32,768MHz crystal

that would be a miracle for a 12F675 to run that fast.

starts after approx. 12 sec

you probably ran the chip on 32Khz xtals and you are observing the WDT.
 

Actually, if it was 32 point 768 MHz and the caps were 100pF it might oscillate eventually but if that is the Crystal frequency the values should be nearer 10pF. If it is a watch crystal at 32.768KHz, I find caps of around 47pF work best.

Brian.
 
  • Like
Reactions: Tukan

    Tukan

    Points: 2
    Helpful Answer Positive Rating
Please notice the term low power oscillator in the title, which effectively means 32 kHz with a PIC. Although it sounds strange, the datasheet suggests 68 to 100 pF for it with PIC12 devices. As I already mentioned, I fear it won't work with some watch crystals.
 

I am sorry for my mistake, of course, the frequency is in kHz
Many thanks for all responds.
 

Hello, I changed caps to 47pF. It works better now. The start up time is up to 2 seconds.
Thanks to everybody, especially to betwixt.

But I am confused about the oscillator´s wave shape - I supposed the square wave but I have sinusoidal wave instead.
Is it normal for such frequency please?
 

if you observe on the crystal, it will be a sine wave. the internal circuitry converts it into a square wave.
 

One pin - the input osc1 - will be a sine. The output - osc2 - will be more like a square. 2 seconds is still longer than I would expect from an oscillator working correctly.

Keith
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top