Technical Manual

35
AMOS
order to reduce their consumption to a minimum; all operations are executed in the
shortest possible time.
Figure 22. General flow chart of the AMOS.
4.1.1. Initialization
This section initializes the peripherals needing an one time configuration, like:
Microcontroller option registers;
The RTC timer (Timer 1), in order to generate the 0.5 sec RTC interrupts;
Various peripherals (SCI, Timers, A/D Converter, parallel ports).
Reset
Initialization
Sleep
0.5 sec
interrupt?
No
Yes
Connectivity
Check?
Do Connectivity
Check
Yes
Terminal
Mode?
No
Enable Terminal
Mode
Yes
No
RF Channel
Activity?
Handle Incoming
Message
Yes
No
Time to A/D
Sample?
A/D Sample
and Process
Yes
Switch off
Everything
Battery
Low?
Storage
Mode?
Yes
No
No
No
Stop
Battery
Distress?
Yes
Yes
No
0.5 sec Interrupt
Advance the
RTC one second
Return
Increment
the RTC?
Yes
No
Counter Interrupt
Debounce input
Return
Increment
affected Counter