PDA

Επιστροφή στο Forum : ΜΕΤΑΤΡΟΠΗ ΚΡΥΣΤΑΛΟΥ 32.768 ΚΗΖ



tzortzakos
22-05-12, 13:23
ΜΠΟΡΟΥΜΕ ΑΡΑΓΕ ΝΑ ΑΛΛΑΞΟΥΜΕ ΤΗΝ ΧΩΡΗΤΗΚΟΤΗΤΑ ΤΩΝ ΜΙΚΡΩΝ ΑΥΤΟΝ ΚΡΥΣΤΑΛΩΝ
ΤΑ ΜΙΚΡΑ ΒΑΡΕΛΑΚΙΑ 32.768 ΚΗΖ
ΑΝΤΙ ΓΙΑ 12 pf ΝΑ ΤΑ ΚΑΝΟΥΜΕ 6pf
ΑΝ ΠΑΡΑΛΗΛΗΣΟΥΜΕ ΕΝΑΝ ΠΥΚΝΩΤΑΚΙ ?
Η ΜΗΠΩΣ ΔΥΟ 2 ? :001_huh:
ΘΕΛΩ ΝΑ ΒΡΩ ΑΝ ΕΥΘΗΝΕΤΑΙ Ο ΚΡΥΣΤΑΛΟΣ ΓΙΑ ΤΗΝ ΔΙΑΦΟΡΑ ΤΗΣ ΩΡΑΣ
ΔΗΛ
ΚΑΠΟΙΑ ΩΡΟΛΟΓΙΑ ΧΑΝΟΥΝ ΜΕΧΡΙ ΚΑΙ 15 ΛΕΠΤΑ ΤΗΝ ΕΒΔΟΜΑΔΑ
ΕΙΝΑΙ ΘΕΜΑ ΚΡΥΣΤΑΛΟΥ Η ΟΧΙ ?

GeorgeVita
22-05-12, 13:38
... 32.768 KHz αντί για 12 pf να τα κάνουμε 6pf ...
... κάποια ωρολόγια χάνουν μέχρι και 15 λεπτά την εβδομάδα, είναι θέμα κρυστάλλου ή όχι;
Μεταβάλλοντας την χωρητικότητα στη μία ή και τις δύο πλευρές του κρυστάλλου μπορείς να ρυθμίσεις ελαφρά τη συχνότητα ταλάντωσης. Σχεδόν όλα τα ρολόγια με κρύσταλλο 32.768KHz έχουν τον ένα πυκνωτή μεταβλητό (λ.χ. 6-50pF), ακόμη και αυτά του χεριού. Για την μέτρηση της συχνότητας χρειάζεσαι ένα ελεγμένο συχνόμετρο ή απλά να περιμένεις αρκετές ημέρες. Σημείωσε ότι 2 πυκνωτές παράλληλα αθροίζουν την χωρητικότητά τους ενώ όταν συνδεθούν σε σειρά τη μειώνουν (υπολογίζεις όπως σε παράλληλες αντιστάσεις).
gV

tzortzakos
31-05-12, 22:28
δεν ξερω πως να ελενξω την ακριβεια του κρυσταλου ?
το εχω με ενα ds 1302 και δεν παει καλα τι να φταιει ?
το ds θελει 6pf κρυσταλο στην αγορα δεν ξερουν ποσο ειναι τα κρυσταλλα που πουλανε
αλλα μαλον ειναι πανω απο 12 pf και ετσι νομιζω παει λαθος

FILMAN
01-06-12, 12:51
Στο κύκλωμα ο κρύσταλλος πρέπει να συνοδεύεται από έναν, ή συχνότερα, από 2 πυκνωτές. Με τις τιμές αυτών των πυκνωτών παίζεις για να κάνεις τριμάρισμα της συχνότητας. Δείξε μας το κύκλωμα.

tzortzakos
01-06-12, 16:46
αυτο ειναι το κυκλωμα πανω κατω δηλ το ds 1302 με τον κρυσταλο http://eet.etec.wwu.edu/brownr3/DS1302_files/image002.jpg

FILMAN
01-06-12, 16:48
Χμ... Η ώρα μένει πίσω; Αν ναι, δοκίμασε να βάλεις έναν μικρό πυκνωτή σε σειρά με τον κρύσταλλο.

GeorgeVita
01-06-12, 17:24
Σύμφωνα με το datasheet του DS1302 (http://datasheets.maxim-ic.com/en/ds/DS1302.pdf) και του Maxim-IC AN58 (http://pdfserv.maxim-ic.com/en/an/AN58.pdf), αν "χάνει" χρόνο μπορεί να είναι κάτι από:


Slow Clocks
The following are the most common scenarios that cause a crystal-based RTC to run slow.
1. Overshoots on RTC input pins. It is possible to cause a RTC to run slow by periodically stopping the oscillator. This can be
inadvertently accomplished by noisy input signals to the RTC. If an input signal rises to a voltage that is greater than a diode
drop (~0.3V) above VDD, the ESD protection diode for the input pin will forward bias, allowing the substrate to be flooded with
current. This, in turn, stops the oscillator until the input signal voltage decreases to below a diode drop above VDD.
This mechanism can cause the oscillator to stop frequently if input signals are noisy. Therefore, care should be taken to
ensure there is no overshoot on input signals.
Another situation that is common to overshoot problem is having an input to the RTC at 5V when the RTC is in battery-
backup mode. This can be a problem in systems that systematically shut down certain circuits but keep others powered up. It
is very important to ensure there are no input signals to the RTC that are greater than the battery voltage (unless stated
otherwise in the device data sheet) when the device is in battery-backup mode.
2. Wrong crystal. A RTC typically runs slow if a crystal with a specified C L is less than the C L of the RTC. The severity of the
inaccuracy is dependent on the value of the C L .
3. Stray capacitance. Stray capacitance between the crystal pins and/or to ground can slow an RTC down. Therefore, care must
be taken when designing the PC board layout to ensure the stray capacitance is kept to a minimum.
4. Temperature. The further the operating temperature is from the crystal turnover temperature, the slower the crystal oscillates.
See Figures 3 and 4.

Διάβασε τα παραπάνω και περίγραψέ μας πως λειτουργεί το κύκλωμα. Στην περίπτωση #1 (overshoots) τι κάνει ο μC όταν το κύκλωμα λειτουργεί από την μπαταρία; Τι έχεις στα I/O pins του DS1302;

Σίγουρα χρειάζεσαι και την προδιαγραφή/datasheet του κρυστάλλου που αγόρασες. Αν δεν την έχει ο πωλητής απλά αγόρασε από κάποιον που ξέρει τι πουλάει.
gV