Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 5th January 2008, 04:25 PM   (permalink)
Default

Quote:
It appears that the displaying part of the routine is correct, but the actual time displayed is nowhere close to the time that I have set it to.
You are reading it as BCD, aren't you?
BeeBop is offline   Reply With Quote
Old 5th January 2008, 07:01 PM   (permalink)
Default Noted

Quote:
Originally Posted by Nigel Goodwin
and that's considerably less capacitance than a breadbopard adds!. Considering he appears to be having trouble with his 32KHx crystal, that could well be the reason?.
Duly noted
__________________
Agustín Tomás
In theory, there is no difference between theory and practice. In practice, however, there is.
atferrari is offline   Reply With Quote
Old 5th January 2008, 07:59 PM   (permalink)
Default

Quote:
Originally Posted by BeeBop
You are reading it as BCD, aren't you?
My functions processed the BCD and displayed the register contents as normal decimal numbers (integers).
ssylee is offline   Reply With Quote
Old 6th January 2008, 12:31 AM   (permalink)
Default

I have used breadboards for many projects and as I stated in the breadboards thread,
Quote:
I have never had a problem with capacitance. This is probably because I normally don't go over 20MHz but I have done USB stuff running at 48MHz without any problems. Besides, how much capacitance can there be between 2 strips with a few square mm of area and separated with over a mm of plastic. I really think the capacitance problem is very overstated. Maybe someone can work it out, 40mm˛ area and 1mm of some plastic (say polycarbonate - Relative permeability 2.8). The long strips are intended for supply and capacitance is always a good thing there. (added) I was curious and so I worked it out. I get 1pF. Completely irrelevant unless your building RF circuits. For the curious I did (8.85*10^-12 * 2.8 * 40*10^-6)/1*10-3
Aren't scope probes still around 10pF even on 10X?

Mike.
Pommie is offline   Reply With Quote
Old 6th January 2008, 12:43 AM   (permalink)
Default

ssylee,

Is the clock running. If so, is it running slow or fast. If you set a time and immediatly read it back, is it correct?

Mike.
Pommie is offline   Reply With Quote
Old 6th January 2008, 02:17 AM   (permalink)
Default

Pommie:

Should the crystal's signal be a PWM or sine waveform? B/c when I measured the clock, I don't see anything.
ssylee is offline   Reply With Quote
Old 6th January 2008, 05:16 AM   (permalink)
Default

I'm getting a sine wave signal between pin 3 and ground at 32.7 kHz with a peak to peak voltage of 247 mV. I don't see anything between pin 2 and ground, only a constant voltage of 200 mV. Is this an indicator of anything?
ssylee is offline   Reply With Quote
Old 6th January 2008, 05:59 AM   (permalink)
Default

Monitoring the crystal may stop it working. The data sheet suggests monitoring the second register in order to establish if the crystal is running. Have a read of the section "Checking For Oscillation" in the data sheet linked to earlier by Picasm.

Mike.
Pommie is offline   Reply With Quote
Old 6th January 2008, 07:50 AM   (permalink)
Default

Nothing thing aout breadboards and crystals.....of course they add all sort of parasitic stuff to it, but also, quite simply...watch crystals do not have very thick legs.....and breadboards need good pins to make contact I have had watch crystals working on a breadboard..not ideal I know but you have to solder it to a bit of stripboard then use pin headers.

My two cents.

Blueteeth
__________________
Inconsistency is the key to flexibility!
Blueteeth is offline   Reply With Quote
Old 6th January 2008, 10:55 AM   (permalink)
Default

Quote:
Originally Posted by Pommie
Aren't scope probes still around 10pF even on 10X?
It's a 1/10th of what it says on the front of your scope

I regularly check oscillators on micro-controllers, at x1 it stops pretty well all of them, at x10 it usually works perfectly fine on either end of the crystal. Now I would have expected (probably like most people here?) that the lower the crystal the less effect it would have - however, like I said before, I had occasion to scope a 32KHz crystal last week, and even on x10 it killed the oscillation on one end of it.

I presume this is probably because it's a very low power circuit, so it can run off tiny batteries?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 6th January 2008, 01:37 PM   (permalink)
Default

Nigel,

I was questioning your statement with regard to a x10 probe, you stated,
Quote:
and that's considerably less capacitance than a breadbopard adds!.
As I calculated the breadboard capacitance as 1pF and scopes are typically 15pF+ with a x10 probe, your statement appears erroneous.

Mike.
Pommie is offline   Reply With Quote
Old 6th January 2008, 02:01 PM   (permalink)
Default

Quote:
Originally Posted by Pommie
Nigel,

I was questioning your statement with regard to a x10 probe, you stated,

As I calculated the breadboard capacitance as 1pF and scopes are typically 15pF+ with a x10 probe, your statement appears erroneous.

Mike.
I was (and still am) under the impression that breadboard capacitance is considerably higher than that?.

From a Wikipedia article:

Quote:
Due to large stray capacitance (from 2-25pF per contact point),
Your scope probe capacitance estimate is also much too high, from a x10 probe spec:

Quote:
The probe is suited to equipment with an input impedance of 1MΩ shunted by 25pF. However, it is possible to compensate for equipment with an input capacitance in the range 10-35pF.
This would give a loading capacitance of between 1pF and 3.5pF, with 2.5pF being what the probe is designed for.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk

Last edited by Nigel Goodwin; 6th January 2008 at 02:09 PM.
Nigel Goodwin is offline   Reply With Quote
Old 6th January 2008, 02:13 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
I was (and still am) under the impression that breadboard capacitance is considerably higher than that?.
Maybe you can suggest where my calculation is erroneous.

Quote:
You scope probe capacitance estimate is also much too high, from a x10 probe spec:
A quick google finds this page which suggests that a x10 probe is 11-15pF.

Mike.
Pommie is offline   Reply With Quote
Old 6th January 2008, 02:21 PM   (permalink)
Default

Quote:
Originally Posted by Pommie
Maybe you can suggest where my calculation is erroneous.
I wouldn't bother calculating something like that, measure it, or refer to the manufacturers measurements - for the ones which might mention it?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 6th January 2008, 02:25 PM   (permalink)
3v0
Default

One would think that by looking a the title of a thread you could guess at about how many posts it would take to put it to rest.

There are a few things that put this out of wack.
Change of topic or hijack.
Clueless OP
The use of the word breadboard....

Last edited by 3v0; 6th January 2008 at 02:28 PM.
3v0 is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Real Time FLIR Video Feed digital0ne Robotics Chat 3 11th April 2004 06:21 PM
digital clock setting the time mode Jay Duluguin Electronic Projects Design/Ideas/Reviews 0 19th February 2004 10:09 PM
real time clock finst Micro Controllers 4 17th January 2004 12:11 AM
list of Real Time Clock thendo Micro Controllers 2 8th November 2003 05:41 PM
time clock gogo01 Electronic Projects Design/Ideas/Reviews 2 22nd August 2003 05:05 AM



All times are GMT. The time now is 12:20 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.