Hello George,
The event can be described as a crash. Let's say I will have this
device in a car and all it will do is record when the crash will occur.
The current thaught is that it should sleep and when the event occurs
an interrupt will be generated. Now is it possible the accelerometer
record the level and some how the device wakes up, stores the value and
goes to sleep again ?
Yes. Ken hinted in the right direction. Assuming the accelerometer
output is analog you can develop a circuit that catches the peak and
holds that value for a few hundred msec or whatever time it takes for
the uC to wake up. A MSP430 can wake up in under 10usec but it'll still
need some time after that to read the analog value which will commonly
reside in a small storage capacitor.
So, the analog circuit would do two things:
a. Generate a digital interrupt to the uC, to one of its port pins. This
is commonly done by employing a comparator whose output logic status
changes when a preset threshold has been exceeded. That is your "event
signal". This causes the uC to wake up and then, after verifying that
its innards work ok it would jump to the memory address that contains
your code.
b. Track the accelerometer signal and store the highest value in analog
fashion. That would become your "event magnitude indicator". This could
be done via an "ideal rectifier" comprised of comparator stages. So if
you spend enough time on it you could possibly do it with a cheap quad
comparator plus maybe an opamp and a few discrete parts, plus that mirco
controller and whatever else you'd like to provide behind it (Horn,
LEDs, display, comms port, wireless link etc).