UPS PIco HV3.0A Firmware Code 040 Print Date 18.08.2017
Designed and Manufactured by PiModules and ModMyPi
www.pimodules.com www.modmypi.com
Definition of the 1
st
Example -
Simple Raspberry Pi® ON/OFF Schedule executed
1 time for
1 minutes and repeated every day
We need to start up - set ON -
the Raspberry Pi® at 10:00 (date for the
first-time start-up is
20
th
August 2017). The Raspberry Pi
® will run for 1 minute
(executing their tasks), then system
will shut down. Next day the above Sequence (has only one Action) will be repeated. Please
check below settings to understand exactly and properly the meaning of the
ETR SAS
vocabulary. Involved Registers and programmed values for this example are the following:
0x6A -> UPS PIco Hardware RTC Registers Direct Access
Not needed. Can be used just for monitoring or any other application.
0x6B -> UPS PIco 0x16 SAS Selection Register
SAS_number
= 0x00;
means it will use for that Schedule the SAS0
0x6B -> UPS PIco 0x17 SAS RUN Register
SAS_RUN
= 0x00;
during programming phase and then must be set to
0x01 to make ETR SAS running
0x6B -> UPS PIco 0x19 Time Scheduler Selector
Time_Scheduler_Selector
= 0x01;
This register is used to select the System Time
Scheduler. Two values are possible 0x00 (default
value)
–
which means
Basic Scheduler
,
or 0x01
–
which means
Event Triggered RTC Based System
Actions Scheduler
. Setting of it is necessary to select
the proper System Time Scheduler.
0x6c -> ETR SAS Start Time Stamp Registers
Active
= 0x01;
means that this Sequence is active when Scheduler
will be activated (so will be executed). Sequence
contains one or more Actions.
Year
= 0x17;
means it will start at Year 2017
Month
= 0x08;
means it will start at August
Mday
= 0x20;
means it will start at 20
th
of declared above month
(August)
Hour
= 0x10;
means it will start at 10 morning time
Minute
= 0x00;
means it will start exactly at 10:00
0x6d -> ETR SAS Actions Running Time Stamp
Action Duration
= 0001;
means it will run for 1 minute