
SapIP – IRT Instruction Manual 1/23/2017
Page 45
Dynamax, Inc.
33
3
30
0
0D
last char
0C
checksum
4.
CPU Blink Codes (DS1)
-
Blink codes (from the CPU LED DS1) radio LED codes are separately discussed.
4.1
A PulseLED(x) function does the following:
-
LED is turned off for 1 millisecond.
-
LED is turned on for 1 millisecond.
Note: Steps 1 and 2 are repeated ‘x’ times (the input parameter).
-
After ‘x’ repeats the function delays 1 millisecond and then turns off the LED.
Example: PulseLED(5) means that there are 5 LED pulses which are spaced 1 millisecond apart;
1 millisecond on, with the first and fifth LED being 2 milliseconds long.
-
Calls to the PulseLED function are placed in strategic positions to mark or signal conditions.
4.2
Calls to PulseLED(x): Starting at Reset
-
Note: All the above steps occur only once after a reset has occurred.
4.3
Battery Check Blink
-
If the battery voltage is below 3.8 volts the processor stays in a battery charge loop until it
rises above 4.2volts. While in that loop, the LED is on for 10 milliseconds every 10 seconds
(charge the battery).
4.4
Measurement Loop Initialization
-
LED turns on for 500 milliseconds while the IRT simultaneously wakes up.
-
Turns off for 1.5 seconds during the IRT measurement.
-
It will also be off for 8 seconds while the CPU sleeps.
-
If the output counter says it’s time for a radio transmission then do the following: otherwise
repeat the ‘Measurement Loop’.
-
Note: The measurement loop lasts 10 seconds.
4.5
Data Transmission
First a PulseLED(x) occurs where the parameter ‘x’ is the last reset cause:
o
The reset cause codes are: 0 – no pulses for power on Reset.
o
Code = 5 for a watchdog timer reset (not enabled so this should not happen).
o
Code = 10 for a brownout reset.
o
Code = 20 for an external reset on the hardware input pin.
Data is formatted and ready to send: