Resonator setting on 16F886

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Walbeek
Flowcode v5 User
Posts: 68
Joined: Thu Mar 01, 2007 10:48 am
Location: Netherlands
Been thanked: 3 times
Contact:

Resonator setting on 16F886

Post by Walbeek »

Hi there,

I have programmed a flowcode (V5) listing and send it into a SOIC version of the PIC with ICSP.
On the PCB is a 20MHz resonator (instead of a crystal with two capacitors)
When I program the PIC with Oscillator set to HS in the configuration screen, the PIC doesn't seem to run.
When I change the Osc setting to "Internal RC clockout", the PIC reacts on I/O.
Can you please tel me what is the proper setting for a resonator (Kyocera PBRC20.00HR 50Y000)

Rinie
Greetings, Rinie
Flowcode V7 user

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Re: Resonator setting on 16F886

Post by Kenrix2 »

20Mhz is definitely High Speed (HS) setting. Microchip's AN869 might help you in your design. You may need RFext to help it start oscillating. I have used a number of 12mhz resonators with built-in caps but, they were through hole package and they started oscillating extremely fast without the resistor. With care, you can hand solder the resistor. Best of luck to you.

Walbeek
Flowcode v5 User
Posts: 68
Joined: Thu Mar 01, 2007 10:48 am
Location: Netherlands
Been thanked: 3 times
Contact:

Re: Resonator setting on 16F886

Post by Walbeek »

Hello Kenrix2,

AN869 is about "External Memory Interfacing Techniques for the PIC18F8XXX", cant find anything about resonators and crystals.
I will try a resistor (1Mohm), maybe that will do the job.
My PCB is SMD so it will give some trouble soldering it on i think.
If you have any other aplication note suggestion, please let me know.

Rinie
Greetings, Rinie
Flowcode V7 user

Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Re: Resonator setting on 16F886

Post by Kenrix2 »

My error, sorry. The correct document is AN849. The last sentence on page five does recommend the R value you have chosen.

Walbeek
Flowcode v5 User
Posts: 68
Joined: Thu Mar 01, 2007 10:48 am
Location: Netherlands
Been thanked: 3 times
Contact:

Re: Resonator setting on 16F886

Post by Walbeek »

Hi again,

I have added the resistor, however no result.
Earlier it seems to have started once, but just only once.
For now, there is no result anymore.
Just a simple flowchart that checks 2 inputs and set two outputs.
Doe anybody have any suggestions on what to check?
Please let me know.

Rinie
Greetings, Rinie
Flowcode V7 user

temtem
Posts: 1
Joined: Sun Oct 27, 2013 12:41 am
Contact:

Re: Resonator setting on 16F886

Post by temtem »

maybe you have to check the MCLR pin, must be high (5volts or Vcc).

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: Resonator setting on 16F886

Post by dazz »

hi walbeek

cany you try the config settings below and see if it helps also can you attach your flowchart if it doesnt work
Regards
Dazz
Untitled.jpg
Untitled.jpg (111.24 KiB) Viewed 5712 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Post Reply