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 2
nd
Example - Simple Bi-Stable Relay ON/OFF Schedule executed 1 time for
15 minutes 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
2
nd
Example it is number 1;
sudo i2cset -y 1 0x6b 0x16 0x01
0x6c -> ETR SAS Start Time Stamp Registers
Setting up of the
ETR SAS Start Time Stamp
need to program their registers, as described in
detail here below. Acording 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). Sequence conatin 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 delclared above month (August)
Hour
= 0x09;
means it will start at 09 morning time
Minute
= 0x59;
means it will start exactly at 09:59
The data entering should looks like below (it important to follow the below order to avoid
any mistake in programming):
1.
Activate the current (already selected ETR SAS) by entering 0xff or (0x01) to the
proper register
sudo i2cset -y 1 0x6c 0x00 0x01
for making the Schedule (ETR SAS) Active
2.
Enter
Year
for start, year must be the same with actual or higher, and not the past.
Two digits only in BCD format i.e. 2017 should be 0x17. Possible to program up to
2099.
sudo i2cset -y 1 0x6c 0x05 0x17
for starting year (in BCD)
3.
Enter
Month
for start, month must be the same with actual or higher, and not the
past. Two digits in BCD format i.e. August should be 0x08. Allowed from 0x01 up to
0x12.
sudo i2cset -y 1 0x6c 0x04 0x08
for starting month (in BCD)