NetBurner 3.5.6
PDF Version
RV3032 I2C Real-Time Clock

<examples/I2C/Wire/RTC-RV3032>

Supported Platforms: SOMRT1061 with DEV-SOMRT1061

External Real-Time Clock example using the Micro Crystal RV3032 RTC connected to the I2C bus, such as with the SOMRT1061-200IR on the DEV-SOMRT1061 development board containing the RV3032.

The example uses the Wire interface class for I2C operation, and requires an Internet connection to obtain the current time with NTP.

  • Creates a NtpClientServlet instance to run as a background task in the configuration server.
  • Reads the time stored in the RTC
  • Compares the two values and sets the RTC to the NTP time if there is a difference of 2 minutes or more.

There are multiple I2C peripherals on each NetBurner platform as indicated in the tables below. The first

line is the default.

SOMRT1061

SCL SOMRT PIN SDA SOMRT PIN Pin Func Module
Pin_EMC_12 9 Pin_EMC_11 10 PIN_FN_2 4
Pin_SD_B0_00 27 Pin_SD_B0_01 26 PIN_FN_2 3
Pin_AD_B1_00 40 Pin_AD_B1_01 41 PIN_FN_3 1
Pin_AD_B1_07 47 Pin_AD_B1_06 46 PIN_FN_1 3
Pin_EMC_22 83 Pin_EMC_21 84 PIN_FN_2 3

MODM7AE70

Module SCL SDA
I2C0 P2.42 P2.39
I2C1 P2.12 P2.22
I2C2 P2.23 P2.26

SBE70LC

Module SCL SDA
I2C0 17 16

MOD5441X

Module SCL SDA
I2C0 J2.42 J2.39
I2C1 J2.41 J2.44

NANO54415

Module SCL SDA
I2C0 27 29
I2C1 22 20
I2C4 26 24
I2C5 34 32

SB800EX

Module SCL SDA
I2C4 5 4