GIGAVAC Contactors I 2 C Communication

Similar documents
Lecture 25 March 23, 2012 Introduction to Serial Communications

Parallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this?

BV4531U. I2C or Serial 6 Way Relay

BV4615. Dual Interface Zero Keypad. Product specification. Dec 2009 V0.a. ByVac Page 1 of 11

A0061. Overview. Features. Ordering Information. HSS Touch Signature IC 15 Input - I 2 C. Part Number Format: A X Y Z

USB-I2C USB to I2C Communications Module Technical Specification

Introduction the Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications

BV4626 General Purpose I/O. Product specification. Mar 2010 V0.a. ByVac Page 1 of 13

A0021. Overview. Features. Ordering Information. HSS Touch Signature IC 6 Input - I 2 C. Part Number Format: A X Y Z

Nuvoton Touch Key Series NT1160 Datasheet

BV4218. I2C-LCD & Keypad. Product specification. December 2008 V0.a. ByVac 2006 ByVac Page 1 of 9

DS WIRE INTERFACE 11 DECOUPLING CAP GND

ArduCAM-M-2MP Camera Shield

EPT-200TMP-TS-U2 TMP102 Temperature Sensor Docking Board Data Sheet

KNJN I2C bus development boards

Manual iaq-engine Indoor Air Quality sensor

XS S ERIES TM PMB US TM O PTION C ARD

DS1870 LDMOS BIAS CONTROLLER EV KIT

2-Wire, 5-Bit DAC with Three Digital Outputs

Introduction to I2C & SPI. Chapter 22

USB-to-I2C. Professional Hardware User s Manual.

SmartFan Fusion-4. Speed Control and Alarm for DC Fans CONTROL RESOURCES INCORPORATED. The driving force of motor control & electronics cooling.

Markus Hintermann Global Technical Marketing / Sales Manager at Micro Crystal

KNJN I2C bus development boards

USER MANUAL EXPERIENCE INCREDIBLE PERFORMANCE V2.3

OEM-ORP ORP. Reads mV mV. Range. 1 reading every 420ms. Response time. Any type & brand. Supported probes. Single point.

I2C to DALI Interface

BV4205. I2C-10 Channel A to D. Product specification. January 2008 V0.a. ByVac Page 1 of 10

What is SmartUPS. Connections. Button and LED Indicator. SmartUPS User Guide

JMY505G User's Manual

Embedded Workshop 10/28/15 Rusty Cain

GIGAVAC Contactors J1939 Protocol

Application Note 152 July Power System Management Addressing AN Michael Jones

USB-to-I2C Basic. Hardware User s Manual.

SmartFan Vortex. I2C Speed Control for 12 VDC Fans CONTROL RESOURCES INCORPORATED. The driving force of motor control & electronics cooling.

I 2 C Application Note in Protocol B

DS1682 Total-Elapsed-Time Recorder with Alarm

keyestudio Keyestudio MEGA 2560 R3 Board

34 Series EEPROM Application Note. 1. Introduction. 2. Power supply & power on reset

DS1845 Dual NV Potentiometer and Memory

Application note Differential Pressure Sensor Type D6F-PH (Rev 1.0)

XRA1201/1201P 16-BIT I2C/SMBUS GPIO EXPANDER

XRA BIT I2C/SMBUS GPIO EXPANDER WITH INTEGRATED LEVEL SHIFTERS

Digital Thermometer and Thermostat

Review for Exam III. Analog/Digital Converters. The MC9S12 has two 10-bit successive approximation A/D converters - can be used in 8-bit mode

1.3inch OLED User Manual

Digital Thermometer and Thermostat

Digital Thermometer and Thermostat

ESPino - Specifications

RL78 Serial interfaces

JMY504M User's Manual

SRF02 Ultrasonic range finder Technical Specification

Enhanced Closed-loop Trim with I 2 C Control for Platform Manager Devices

RFID MODULE Mifare Reader / Writer SL030 User Manual Version 2.4 Nov 2011 StrongLink

RFID MODULE. Mifare Read/Write Module. CM030 User Manual. Version 2.1 Apr 2010 chenmingcard

DS75 Digital Thermometer and Thermostat

McMaster University Embedded Systems. Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016

I2C and SPI Foundation

SRF08 Ultra sonic range finder Technical Specification

TPMC815 ARCNET PMC. User Manual. The Embedded I/O Company. Version 2.0. Issue 1.2 November 2002 D

USB-1208LS Specifications

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI

I2C Demonstration Board I 2 C-bus Master Selector

CMPS03 - Compass Module

ArduCAM USB Camera Shield

Dual Interface LCD Display Controller

K20/K21/K22/K30 plattforms

5. What happens if we attempt to program a new frequency outside the specified speed grade of the device?

DS2756EVKIT+ High Accuracy Battery Fuel Gauge With Programmable Suspend Mode Evaluation Kit

DS Wire Digital Thermometer and Thermostat

TOP VIEW CLOCK GENERATOR A1 A2 GND CPU SPEED SELECT

TIP815. ARCNET Controller. Version 1.0. User Manual. Issue September 2009

EMERALD-MM-8P. 8-Channel Software Programmable Protocol. Serial Port PC/104 TM Module. User Manual V1.20

NuSpeech Family N5132 High Sound Quality Voice Synthesizer Technical Reference Manual

DS1846 NV Tri-Potentiometer, Memory, and MicroMonitor

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Adafruit seesaw. Created by Dean Miller. Last updated on :30:23 AM UTC

1. Features and Benefits

Version Action Author Date

RFID MODULE Mifare Reader / Writer SL030 User Manual Version 3.1 Jan, 2018 StrongLink

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

SILICON MICROSTRUCTURES

DS1855 Dual Nonvolatile Digital Potentiometer and Secure Memory

US x 32 OLED/PLED Segment/Common Driver with Controller For 20x4 Characters.

Device: FDRV-04S. This document version: v1. Matches module version: v2 [2 Oct 2015] Document revision date: 9 November 2015

Win-I2CUSB Hardware User s Manual

1.6inch SPI Module user manual

LCD Module with I2C / Serial Interface and Keypad Control «LCD I2C/Serial» User s Guide. Copyright 2008 IMS

Doc: page 1 of 6

3. The MC6802 MICROPROCESSOR

Description: 4x 7 segment display module with decimals and colon

MANHATTAN PROGRAMMING GUIDE IR38060/IR38062/IR38063/IR38064

Product Family Specification

USB-to-I2C. Ultra Hardware User s Manual.

I2C Interface for QL Emulators Part 1 Originally Published in QL Today, Vol 15, Issue 4, May-June 2011

Tutorial for I 2 C Serial Protocol

3E Design Kit Evaluation Board

CW2013. Low-Cost 1s Fuel Gauge IC with Low-SOC Alert. General Description. Features. Applications. Order Information

DS2782EVKIT+ Standalone Fuel Gauge IC Evaluation Kit

CAN / RS485. Product Description. Technical Reference Note. Interface Adapter. Special Features

Transcription:

Document Revision: 3 GIGAVAC Contactors I 2 C Communication Product models: MXST15/16-mm-ss, delay on break contactors. Attention: Read this instruction entirely for a top-level-feel of what you prefer to focus on the details to accomplish your goal. Hardware Connection Each contactor needs 4 wires hookup to the connector in order to communicate in I 2 C mode: pin1 to SCL, pin 2 to GND, pin 6 to SDA and pin 7 to power. Two resistors 10K each internally pull up to 5V on the SCL and SDA lines. If a need for disconnecting the internal pullups resistors from the users, future hardware revision can implement pull-up (enable/disable) option. For now, multiple units on the network, combine internal pull-up total resistance of about 4.7K will work. At low speed, 10K pull-up alone will also fine. These MXST15/16 products always communicate in slave interface, and the users are in master role on the bus.

Operating modes The relays have two operating modes: Voltage-control-mode and I 2 C-control-mode. When the products leave the factory, they are in the voltage-control mode (default). To commutate with the relay while it is in voltage control-mode follow the Power-Up Procedure. The 10K pull-up resistors permanently installed on the relays is for one to one master and slave communication at start-up. Some USB to I 2 C converts (master side) need to remove the pull-up resistors for the contactor to start its I 2 C mode. After I 2 C mode is activated, the removal of master pull-up is not necessary. At first power-apply to the unit, it waits for 20ms to see if any request from the master. If no signal on the bus, it will start its operation. The mode of operation (voltage control or I 2 C control) depends on the I 2 C enable byte at the contactor s memory. This I 2 C enable byte is default to disable state when the customers first receive the units; the following steps will bring the unit into I 2 C mode: Power-Up Procedure: 1. Make sure the relay power is off. 2. Master and slave are properly connected. 3. Some I 2 C masters need to remove pull-up resistors in order not to receive its reflection. 4. Master send out an I 2 C read to address 0x7F and read-back from the same address. 5. The master keeps repeating step 4 for less than 20ms typically every 10ms to 15ms. 6. Turn relay power on. 7. When the relay is fired up and receives a read-command from the master, it will send out an I character (0x49) and stay in the loop to listen. 8. When the master receives an I, the relay is ready for commands from the master. The above steps bring the relay into I 2 C control-mode in a configure-state. At this state you can send command and receive data to and from the contactor (see command list for details). The 2 states of I 2 C mode: configure-state and operate-state. Configure-state is activated by the above start-up procedure. The operate-state is enabled by sending an I 2 C enable command. After the I 2 C is enabled, cycle power and the unit will start in I 2 C mode with operate-state. The starting of configure-state and operate-state is different, but they are no different in functionality. The configure-state always uses I 2 C address 0x7F and the operate-state uses I 2 C address from the command setting. No matter the unit will start in voltage-control mode or I 2 C control-mode, the start-up procedure will be available every time. Important note: firmware version A cannot control the contactors in I 2 C configure-state. In case you forget what address had been set to the relay, use power-up procedure to bring the relay into the configure-state and read the address setting.

Note: remove pull-up resistors on the master side is only for startup procedure. After the I 2 C is activated, the mater can have the pull-up resistors stay to talk to the slave. For startup, some I 2 C masters may not need to remove its pullup, and some others probably need no pullup. It depends on the type of I 2 C module or I 2 C controller is being used. I 2 C Version This I 2 C controller chip supports clock stretching and 10 bit address which is up to version 2.1, and data rate is up to 400Kbits/s. Because little data to exchange in this application, it is better to operate at lower speed for clear messages typically 100Kbits/s. These products use 7 bit address for simple and quick. Therefore, 10 bit address is not implemented. If you want you use lower bit-rate at power-up configuration make sure all the bits (start, address, ACK, readback ) can fit in less than 20ms time frame with the chosen speed because the relay only wait for 20ms at power-up. After establishing communication with the relay, lower bitrates will have no restrictions. If the I 2 C enable-bit is set, it will enter I 2 C mode automatically at power-up. Communication Sequence & Data Format For complete I 2 C protocol information, refer to I 2 C specification, data-definitions and bit shifting for details. In general, this is what happens: When relay receives a complete byte from the master, it will send out an ACK. When the relay transmits data, it expects the master to send back an ACK after each byte. The last byte will not need an ACK neither from the master nor from the slave. Data Definition of the MXST15/16 To command the relay, the master sends out the first byte containing an address to the relay with R/W bit low to signal a write sequence. The second byte is data send out from the master; this time the data write to the relay is a command to tell the relay what to do. This second byte of data also called register number. The following bytes after the register-number depends on what register had been used. Some registers need only one byte of data, some registers need two or more bytes and some registers need a read command. See relay registers (commands) for explanations. The most significant bit of the command byte (register number) is defined as a read/write bit. If this bit is low, it means the master wants to read from the relay (read command). If this bit is high, the master wants to write to the relay (write command).

Read command sequence: Read commands is dome with 2 repetitions: write register number and read back data. 1. Send START condition. 2. Send relay address byte with R/W bit LOW(signal a write). 3. Send command byte (register number) with most significant bit LOW. 4. Send STOP condition to end sending. (the relay is going to send data out) 5. Send START condition again. 6. Send relay address byte with R/W bit HIGH(signal a read). 7. Clock out each byte from the relay. (# of byte(s) depends on register number) 8. Send stop condition to end reading. Write command sequence: Write commands can be done in only 1 swing. 1. Send START condition. 2. Send relay address byte with R/W bit LOW(signal a write). 3. Send command byte (register number) with most significant bit HIGH. 4. Continue to send more byte. (# of byte(s) depends on register number) 5. Send STOP condition to end writing. Relay Registers (Commands) Register # Type # of bytes Register Name Descriptions 0 N/A N/A Reserved unused for now 1 R 1 Product part-number string length 2 R See reg#1 Product part-number 3 R 2 Firmware version 4 R/W 2 Delay time on break: byte1 minutes, byte2 seconds. 5 W 1 Reset CPU (restart): 0x52 R 6 R/W 1 I 2 C mode enable: 0x45 E, disable 0x44 D 7 R/W 1 (1*) I 2 C address: 0x01 to 0x7E (0x00& 0x7F reserved) 8 R/W 1 (2*) Contactor Control: 0x43 (Close), 0x4F (Open) Write: C/O. Read: C/O & D (countdown to open) 9 R/W 1 (3*) Calibration State: 0x42 (Blank), 0x46 (Filled) 10 R/W 1 Automatic power-up contactor state: open/close: 0x43 (Close) and 0x4F (Open). 11 R/W 2 (4)* Delay countdown time remains: byte1 minutes, byte2 seconds.

Note: (1) * - I 2 C address is 7-bit (exclude LSB). The LSB is for R/W bit. The address takes effects immediately after the write. Power-up procedure always use address 0x7F. (2) * - Contactor Control: Firmware version A, configure-state can t control contactor. Firmware version B has no different between configure-state and operate-state for this control command. (3) * - This command has no effect on MXST15/16. Calibration state can only be written 0x42 to blank (clear), can t write 0x46. This byte is an indicator of calibration status, not the calibration data. (4) * - While in delay countdown to open the contact, write 2 numbers (0-99:0-59), the delay time will use this 2 numbers to countdown. Write both numbers to zero will cancel counting and open contactor immediately. The value of this command will not save to EEP. Different of register 4 and register 11 is that the register 4 is a value stored in the EEP and register 11 stays in RAM. When countdown starts, the value of register 4 is loaded into the countdown memory. Register 11 shows how much time left to release the contact. If you write a value to register 11 while countdown to trip, it will change the countdown time. You can read/write to register 11, but next time to countdown register 4 will always be used. The part number (MM:SS) and the delay time (register 4) are the same when the customers first receive the products. If the register 4 (delay time on break) is changed, the part number stays the same and the delay time will reflect the register 4 contents. Examples: A. Write command: Change contactor delay-on-break-time to 5 minutes and 30 seconds using address 0x61 (0b1100001x). 1. Send START condition. 2. Send relay address byte with R/W bit LOW. 0xC2(0b11000010).Note: address 0x61 now turns into address 0xC2 because the address 0x61 is shifted left 1 bit to make room for R/W bit. 3. Send command byte (register #4) with most significant bit HIGH. 0x84(0b10000100). 4. Continue to send 1 byte value of 5 minutes 0x05 (0b00000101). 5. Continue to send 1 byte value of 30 seconds 0x1E (0b00011110). 6. Send STOP condition to end writing.

B. Read command: Read back the time of delay-on-break using address 0x61 (0b1100001x). 1. Send START condition. 2. Send relay address byte with R/W bit LOW.0xC2 (0b11000010). 3. Send command byte (register #4) with most significant bit LOW. 0x03 (0b00000100). 4. If you decide not to read-back, send STOP condition to end. If you don t send STOP, it will wait for the step 5 and mess-up communication sequences. 5. Send RESTART, or START condition again. 6. Send relay address byte with R/W bit HIGH.0xC3 (0b11000011). 7. Clock out 2 bytes from the relay for minutes and seconds. 8. Send stop condition to end reading. The other way to communicate with the relays is to download the application software MXST15/16 Control Panel from the GIGAVAC website. MXST15/16 Control Panel Software User s Guide To run this application program, a USB to I 2 C Adapter from DEVANTECH is needed to serve as a bridge between the contactor and the computer. Here is one of the vendors has this converter: https://acroname.com/products/devantech-usb-i2c-interface-adapter?sku=r286-usb- I2C Prepare the I 2 C converter to use: remove the 2 pull-up resistors:

After the converter is ready, download the converter-driver and install on your PC. Note: remove the pull-up resistors from the adapter only for the startup procedure. If the contactor is already in I 2 C mode, the resistors on the adapter will not affect communication. After downloading the MXST15/16 Control Panel from GIGAVAC website, Install the program and choose the executable-file folder option (see picture below):

The above Folder textbox contents point to where the executable file will be located. The application program user interface:

Start-up Procedure: 1. Select COM port to which the contactor is connected. 2. Click the [Search IIC] button. 3. Turn on the contactor. 4. After IIC is detected, the unit is ready to read/write. All the buttons are self-explanatory. Try them out for yourself. Thank you for using GIGAVAC products. Revision History: Rev.1: initial completion. Rev.2: fixed the link to the adapter-vender s website.

Rev. 3: more setup and install details.