User manual
AREXX Engineering & JM3 Engineering
Version: 1.05 Nov. 9
th
, 2014 page: 6
Manual
1. Connecting to ASURO xTend Board
The module will be simply plug in to the K3 connector on the ASURO xTend board. There is a
voltage regulator on the module.
1.1. PIN OUT Barometer Module
PIN 1 = VDD
PIN 2 = n/c
PIN 3 = SQW-INT
PIN 4 = n/c
PIN 5 = n/c
PIN 6 = n/c
PIN 7 = SCA
PIN 8 = SCL
PIN 9 = n/c
PIN 10 = GND
PIN1 Pin10
2. Software
The data access and works over I2C Bus. There is no special initialization required – refer to datasheet
of the DS1339 for more information.
2.1. Reading data via I2C
Principle way of reading data via I2C from the RTC.
/**********************************************************************\
* read RTC data (generalized description)
\**********************************************************************/
master.ReadRegisters(I2C Addr, Register | AUTO_INC, mBuffer, 6);
2.2. Writing data via I2C
Principle way writing data via I2C to the RTC
/**********************************************************************\
* write RTC data to register (generalized description)
\**********************************************************************/
master.TransmitBytes(I2C Addr, Register | AUTO_INC, data0, data1, data2);