Continue to Site

# Timestamping data on data aquisition project

Status
Not open for further replies.

#### Flamer1

##### New Member
I've been working hard on a data aquisition system using a pic 16f877a and 16c765. External IC's samples an analog waveform and perform a/d. But, the samples aren't exactly evenly spaced to plot, so I need any help on an efficient way to time-stamp the data somehow. My knowledge of timers on PIC is limited too, please help

Flamer1 said:
I've been working hard on a data aquisition system using a pic 16f877a and 16c765. External IC's samples an analog waveform and perform a/d. But, the samples aren't exactly evenly spaced to plot, so I need any help on an efficient way to time-stamp the data somehow. My knowledge of timers on PIC is limited too, please help

There are various 'clock' IC's available, most of which can be battery backed so they keep correct time even when power is off - by adding one of those you could accurately date and time stamp all readings.

You can make use of I2C Real Time Clock IC like DS1307 : Cheap and easy way of implementing RTC in embedded systems.

DS1307 is Real Time Clock IC with max. 1Hz squarewave output.

But then what is the time interval u need ? That will decide which clock to go for isn't it 8)

well the sampling rate is ~25kHz, so i would guess at least 1/25kHz = 40u sec

Is you change the standard crystal (32.768 kHz) to 3.2768 MHz for DS1307, it is possible to achieve resolution of micro-seconds.

vik1501 said:
DS1307 is Real Time Clock IC with max. 1Hz squarewave output.

But then what is the time interval u need ? That will decide which clock to go for isn't it 8)

1Hz is not the max. that you get at its output. According to the datasheet, 32.768 kHz can be achieved using 32.768 kHz crystal.

Status
Not open for further replies.

Replies
6
Views
4K
Replies
7
Views
5K
Replies
1
Views
3K
Replies
14
Views
2K
Replies
5
Views
2K