timestamping data

Feb 01, 2011 1 Replies

Hello, Im using an HCS12 MCU interfaced with an E-field sensor and a 300ksps ADC inorder to record the electric field coming from an EMP bomb. the phenomenon will only last a few milliseconds, maybe microseconds and i want to timestamp the data, which will then be processed in matlab to display magnitude versus time plots. Can anyone point me in the right direction on data timestamping w/ an MCU?..My MCU is configured to operate with a bus speed of 30MHZ.


--------------------------------------- Posted through

formatting link


Just use the internal free running counter as your timestamp having set it up to prescale of 1.

Depending on your interface method to your ACD, either timer capture the timestamp or just read the time counter when the ADC data is ready.

Which HCS12 device are you using to be able to run at 30MHz? Most are limited to 25MHz bus speed.

PhilW

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required