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
Setting Up of the 1
st
Example -
Simple Raspberry Pi® ON/OFF Schedule executed
1 time for
1 minute and repeated every day
0x6A -> UPS PIco Hardware RTC Registers Direct Access
Setting up of these Registers is not possible. There are used only for monitoring.
0x6B -> UPS PIco 0x16 SAS Selection Register
Before start setting-up of ETR SAS user need to select the current Scheduler. In case of the
1
st
Example it is number 0;
sudo i2cset -y 1 0x6b 0x16 0x00
0x6c -> ETR SAS Start Time Stamp Registers
Setting up of the ETR SAS
Start Time Stamp
require to program the following registers, as
described in detail here below:
Address
Name
Size Type
R/W
Explanation
0x00
active
Byte Common
R/W
Activation Stamp 0x00 not active (Stop), 0xff active (Start) of
current SAS (Scheduler)
0x01
minute
Byte Common
R/W
Starting Minute of hour in BCD - 2 digits (0-59) i.e. 22
0x02
hour
Byte Common
R/W
Starting Hour of the Day in BCD - 2 digits (0-23) i.e. 22
0x03
mday
Byte Common
R/W
Starting Day of the Month in BCD - 2 digits (1-31) i.e. 22
0x04
month
Byte Common
R/W
Starting Month in BCD - 2 digits (1-12) i.e. 12
0x05
year
Byte Common
R/W
Starting Year in BCD - 2 digits (0-99) i.e. 16
Table 14 ETR SAS Start Time Stamp Registers
According to specification of the 1
st
Example need to set below values:
Active
= 0x01;
means that this Sequence is active when Scheduler will be activated
(so will be executed when scheduler is running). Sequence have 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 hours morning time
Minute
= 0x00;
means it will start exactly at 10:00
The data entering should looks like below (it important to follow the below order to avoid
any mistake in programming):
6.
Activate the current (already selected ETR SAS) by entering 0xff or (0x01) to the proper
register