nah thats cool mate, I really appreciate everybodys help.
Ive just fixed the 16 seconds to initialise problem. I put a 1meg resistor across the crystal and it initilises and locks instantly at switch on. Ive a 4mhz xtal with a 22pf to ground either side as i would normally use. I remove the resistor and it takes 16 seconds again. Any idea what is happening here?
Calling all code necks for help..
-
- no manz can test innit
- Posts: 137
- Joined: Thu Sep 11, 2014 10:01 pm
-
- no manz can test innit
- Posts: 137
- Joined: Thu Sep 11, 2014 10:01 pm
Re: Calling all code necks for help..
and ive tried several different 4mhz xtals all with same results
- Analyser
- tower block dreamin
- Posts: 319
- Joined: Fri Sep 26, 2014 9:11 pm
Re: Calling all code necks for help..
I can't remember if you had the crystal on the PIC or the PLL, but in any case some ICs need a parallel high value resistor across the crystal for the clock to start properly.
-
- no manz can test innit
- Posts: 137
- Joined: Thu Sep 11, 2014 10:01 pm
Re: Calling all code necks for help..
For some strange reason I cant get it to work when I put the xtal connected to the Pic chip with a link to osc in on motorola. It only works if I put the crystal on the motorola chip with a link across to osc in on the pic chipAnalyser wrote:I can't remember if you had the crystal on the PIC or the PLL, but in any case some ICs need a parallel high value resistor across the crystal for the clock to start properly.
cheers analyser
- Analyser
- tower block dreamin
- Posts: 319
- Joined: Fri Sep 26, 2014 9:11 pm
Re: Calling all code necks for help..
No worries. Does it really matter? I'm not sure the MC145 was designed to work with an external clock pulse but if you're experimenting you could try tying the unused pin of the PLL to ground via a 10nF/ 100nF decoupling cap and see if that works?radio-berlin wrote:For some strange reason I cant get it to work when I put the xtal connected to the Pic chip with a link to osc in on motorola. It only works if I put the crystal on the motorola chip with a link across to osc in on the pic chipAnalyser wrote:I can't remember if you had the crystal on the PIC or the PLL, but in any case some ICs need a parallel high value resistor across the crystal for the clock to start properly.
cheers analyser
-
- no manz can test innit
- Posts: 237
- Joined: Tue Dec 02, 2014 11:03 am
Re: Calling all code necks for help..
From a quick web search, it seems that many have had issues with PIC crystal oscillators not oscillating - in similar scenarios, and without obvious explanation in the hardware or config, so I guess this may be the issue here.radio-berlin wrote: For some strange reason I cant get it to work when I put the xtal connected to the Pic chip with a link to osc in on motorola. It only works if I put the crystal on the motorola chip with a link across to osc in on the pic chip
In terms of the (now fixed) slow start of the Motorola oscillator, I guess either the overall feedback, or the phase of the feedback via the crystal, is marginal for oscillator startup, and the resistor is providing a little startup excitation ?
-
- no manz can test innit
- Posts: 137
- Joined: Thu Sep 11, 2014 10:01 pm
Re: Calling all code necks for help..
Cheers for all your help peeps