Technical Manual

Table Of Contents
46
Software
and are used for event counting, e.g. rain gauges). These interrupts are handled by
a separate driver.
One of the main concerns of the software design is the power consumption of the
device. The software must ensure that all the peripherals are left in the correct state
in order to reduce their consumption to a minimum; all operations are executed in
the shortest possible time.
Figure 27. General flow chart of the A733 software.
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