I2C Encoder. HW v1.2

Similar documents
I2C Demonstration Board I 2 C-bus Protocol

CoolEx User Manual 2008 XDIMAX LTD. Revision 1.0

16-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection

FLD00042 I 2 C Digital Ambient Light Sensor

DS1803 Addressable Dual Digital Potentiometer

17-Output LED Driver/GPO with Intensity Control and Hot-Insertion Protection

16 Channels LED Driver

RayStar Microelectronics Technology Inc. Ver: 1.4

IS31FL3209 IS31FL CHANNELS LED DRIVER; 1/24 DC SCALING WHITE BALANCE. December 2017

INF8574 GENERAL DESCRIPTION

KMA36 universal magnetic encoder

The rangefinder can be configured using an I2C machine interface. Settings control the

IS31FL CHANNEL FUN LED DRIVER July 2015

8-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection

I2C Demonstration Board LED Dimmers and Blinkers PCA9531 and PCA9551

9DoF Sensor Stick Hookup Guide

Low Dropout Regulator with On-Demand Power for DDR Memory VDDQ. Description. Applications. On-Demand Power Control Logic.

SMBus/I2C Interfaced 9-Port, Level-Translating GPIO and LED Driver with CLA

IS31FL CHANNELS LED DRIVER. February 2018

9-Output LED Driver with Intensity Control and Hot-Insertion Protection

Optical Sensor Product Data Sheet LTR-676PS-01 LITE-ON DCC RELEASE

3-Channel Fun LED Driver

FAH4840 Haptic Driver for Linear Resonant Actuators (LRAs)

IS31FL3236A 36-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY IS31FL3236A. February 2018

LM3530. High Efficiency White LED Driver with Programmable Ambient Light Sensing Capability and I 2 C-Compatible Interface

MAX x 8 Key-Switch Controller and LED Driver/GPIOs with I2C Interface and High Level of ESD Protection

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

IS31FL3190 IS31FL CHANNEL FUN LED DRIVER. Preliminary Information November 2015

ADS9850 Signal Generator Module

RB-Dev-03 Devantech CMPS03 Magnetic Compass Module

I 2 C-Interfaced Key-Switch Controller and LED Driver/GPIOs with Integrated ESD Protection

IS31FL CHANNEL LIGHT EFFECT LED DRIVER. November 2017

Beyond-the-Rails 8 x SPST

IS31FL3235A 28 CHANNELS LED DRIVER. February 2017

DS1807 Addressable Dual Audio Taper Potentiometer

IS31FL3208A 18-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY. August 2018

epl2219 Integrated Proximity, 6D Gesture and Ambient Light Sensor with built-in IR LED epl2219

Data Sheet PT7C4337 Real-time Clock Module (I 2 C Bus) Product Description. Product Features. Ordering Information

PVCC SW6 SW5 SW2 SW1 IS31FL3742 CS30 CS29 CS2 20 CS1. Figure 1 Typical Application Circuit (Single Color: 30x6)

3V TRANSCEIVER 2.4GHz BAND

FAH4830 Haptic Driver for DC Motors (ERMs) and Linear Resonant Actuators (LRAs)

GC221-SO16IP. 8-bit Turbo Microcontroller

Nuvoton SMBus GPIO Controller W83L603G W83L604G

I2C Digital Input RTC with Alarm DS1375. Features

ACT8848. Advanced PMU for Multi-core Application Processors GENERAL DESCRIPTION FEATURES APPLICATIONS

DALI slave, one to four channels PWM and I2C output

IS31FL3206 IS31FL CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY. Preliminary Information May 2018

IS31FL3731 AUDIO MODULATED MATRIX LED DRIVER. May 2013

IS31FL DOTS MATRIX LED DRIVER. October 2018

S-35390A 2-WIRE REAL-TIME CLOCK. Rev.2.4_00. Features. Applications. Packages. Seiko Instruments Inc. 1

Optical Sensor Product Data Sheet LTR-579ALS-01 LITE-ON DCC RELEASE

onlinecomponents.com

IS31FL3746A 24-RGB MATRIX LED DRIVER. Preliminary Information September 2018

Features. Description PT7C4563B. Real-time Clock Module (I2C Bus)

ACT8846 Rev 9.0, 18-Jun-2018

S-35392A 2-WIRE REAL-TIME CLOCK. Features. Applications. Package. ABLIC Inc., Rev.3.2_03

SW2 SW1 CS39 CS38 CS37 CS39 CS38 CS3 CS2 CS1 CS2 CS1. Figure 1 Typical Application Circuit (Single Color: 39 9)

V OUT0 OUT DC-DC CONVERTER FB

S-35390A 2-WIRE REAL-TIME CLOCK. Features. Applications. Packages. SII Semiconductor Corporation, Rev.4.

Monolithic and Wafer Level Packaged Three-Axis Accelerometer MXC400xXC

The PmodIA is an impedance analyzer built around the Analog Devices AD bit Impedance Converter Network Analyzer.

FUNCTIONAL BLOCK DIAGRAM SDA SCL SMBALERT. SMBus SERIAL BUS INTERFACE ADDRESS SELECTION PWM CONFIG AUTOMATIC FAN SPEED CONTROL REGISTERS

PT7C4563 Real-time Clock Module (I 2 C Bus)

350mA LED Drivers with LED Current Foldback

Modern Robotics Inc. Sensor Documentation

Item Function PT7C4337A PT7C4337AC. Source Crystal(32.768KHz) External crystal Integrated Crystal Oscillator enable/disable Oscillator fail detect

Description The PT7C4563 serial real-time clock is a low-power Supports I 2 C-Bus's high speed mode (400 khz)

OUT1 OUT2 OUT3 OUT4 IS31FL3237 OUT34 OUT35 OUT36. Figure 1 Typical Application Circuit

INTEGRATED CIRCUITS. PCA9544A 4-channel I 2 C multiplexer with interrupt logic. Product data sheet Supersedes data of 2004 Jul 28.

DS1307ZN. 64 X 8 Serial Real Time Clock

DS4000 Digitally Controlled TCXO

Oscillator fail detect - 12-hour Time display 24-hour 2 Time Century bit - Time count chain enable/disable -

Functional description of BSD-01v2 Module

Debugging a Boundary-Scan I 2 C Script Test with the BusPro - I and I2C Exerciser Software: A Case Study

Pin Pin. 1 A0 Input address input 0 2 A1 Input address input 1. 4 INT0 Input active LOW interrupt input 0

RV-8564 Application Manual. Application Manual. Real-Time Clock Module with I 2 C-Bus Interface. October /62 Rev. 2.1

4I36 QUADRATURE COUNTER MANUAL

10-Port, Constant-Current LED Driver and I/O Expander with PWM Intensity Control

I O 7-BIT POT REGISTER ADDRESS COUNT 7-BIT POT. CODE 64 (40h) DS3503

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

L7292. Five buck regulators power management unit. Applications. Description. Features. SSD (Solid-State Drive), portable phone, etc.

HOMANN DESIGNS. DigiSpeed. Instruction manual. Version 1.0. Copyright 2004 Homann Designs.

SMD I 2 C Digital RGB Color Sensor CLS-16D17-34-DF6/TR8

ELT Sensor Data Sheet for S-300-3V

Mercury technical manual

The CV90312T is a wireless battery charger controller working at a single power supply. The power

S3C9442/C9444/F9444/C9452/C9454/F9454


PMT9123QS-TVIT: Low Power Right Angle Optical Track Sensor

Description. Features. Pin Configuration. Pin Description PI4MSD5V9546A. 4 Channel I2C bus Switch with Reset

DS1267B Dual Digital Potentiometer

Controller and Voltage Monitor ADM1027 *

LM95234 Quad Remote Diode and Local Temperature Sensor with SMBus Interface and TruTherm Technology

INTEGRATED CIRCUITS. Control signals. 8 bits

IS32FL CHANNEL LED DRIVER IS32FL3238

Data Sheet. APDS-9702 Signal Conditioning IC for Optical Proximity Sensors with Digital I 2 C Interface. Features. Description.

DS1868B Dual Digital Potentiometer

IS32FL DOTS MATRIX LED DRIVER WITH INDIVIDUAL AUTO BREATH FUNCTION. Preliminary Information February 2017

High Accuracy Ambient Light Sensor with I 2 C Interface

4-Wire-Interfaced, 2.5V to 5.5V, 20-Port and 28-Port LED Display Driver and I/O Expander

Transcription:

I2C Encoder HW v1.2

Revision History Revision Date Author(s) Description 1.0 22.11.17 Simone Initial version 1

Contents 1 Device Overview 3 1.1 Electrical characteristics.......................................... 4 1.2 Connection................................................. 4 1.3 I 2 C interface................................................ 5 2 Registers 6 2.1 Configuration............................................... 6 2.1.1 General Configuration....................................... 6 2.2 Status................................................... 7 2.3 Counter Value............................................... 8 2.3.1 Counter Value........................................... 8 2.3.2 Counter Max........................................... 8 2.3.3 Counter Min............................................ 9 2.4 LEDs.................................................... 9 2.4.1 LED A intensity.......................................... 9 2.4.2 LED B intensity.......................................... 9 3 Schematic 10 2

1. Device Overview The I2C Encoder is a small board where you can use a classical mechanical encoder with a I2 C bus. The device include also the possibility to add a bi-color LED and set luminosity trough the I2 C bus. It s possible to connect up to 16 boards in cascade and read all of them with the same I2 C bus. The I2C Encoder have a series of 8 bit register where it is possible to configure the parameters and three 32 bit of register. The 32 bit registers are the most important because they store the counter value and the maximum and minimum threshold. Every time when the encoder is moved at least one step, the counter value is increased or decreased according to the rotation direction. When the counter value is outside of the limit set by the threshold, the counter value can be wrapped or can stuck on the threshold valued reached. The I2C Encoder also has an open-drain interrupt pin. It is set to logic low every time when the encoder is rotated or pushed. The status register must be read by the master to check what is changed. Figure 1.1: Top view of the board Figure 1.2: Bottom view of the board Figure 1.3: Dimensions of the board 3

1.1 Electrical characteristics 1.2 Connection Figure 1.4 shows the pin out of the I2C Encoder. Parameter Symbol Min Max Supply voltage V DD 2.5V 5V I 2 C input-low level V IL 0 0.3 * V DD I 2 C input-high level V IH 0.8 * V DD V DD I 2 C clock input frequency f SCL 400kHz LED output current I LED 30mA Supply current (LEDs off) I DD 1.8mA I 2 C pull-up resistor R I 2 C 4.7kΩ Interrupt pull-up resistor R INT 15kΩ 120kΩ Figure 1.4: Pin-out of the board Pin I/O Type Function GND Power Ground reference for logic Vcc Power Positive supply for logic SDA I/O I 2 C data SCL I I 2 C clock INT OD Open-drain interrupt output There are two 5 pin headers one the right and one at the left side of the I2C Encoder. The I2C Encoder can be connected in cascade as showed in figure 1.5, the maxim number of device is 16 due to the limitation of the I 2 C address. Since the INT pin is open drain, the signal is propagated along the chain in case of interrupt of one device. In order to avoid I 2 C address conflict, the address of each device must be different. In the section 1.3, it is described how to set the address. 4

Figure 1.5: Example of 4 boards connected in cascade 1.3 I 2 C interface The I2C Encoder is a I 2 C slave, it s possible to the set 16 different addresses. The last four LSB of the 7-bit address can be customized by soldering the jumpers A0 - A3 on the bottom of the board. When the jumper is open, it means a logic 0. if jumper is shorted it means a logic 1. I 2 C address 0 1 1 A3 A2 A1 A0 R/W Figure 1.6: Example of the address setting of the board in figure 1.5 The I2C Encoder has the I 2 C pull-up resistors. They can be enabled by soldering the two jumpers P-UP like in the figure 1.6. This must be done in case that the master doesn t have these resistors and must be enabled only one I2C Encoder in a chain. In case the pull-up resistors is not needed, the jumpers P-UP must be removed. 5

2. Registers In this section, the internal registers of I2C Encoder is described. Address Description Default value 0x00 General Configuration 0x00 0x01 Status 0x00 0x02 Counter Value Byte 4 0x00 0x03 Counter Value Byte 3 0x00 0x04 Counter Value Byte 2 0x00 0x05 Counter Value Byte 1 0x00 0x06 Counter Max Byte 4 0x00 0x07 Counter Max Byte 3 0x00 0x08 Counter Max Byte 2 0x00 0x09 Counter Max Byte 1 0x00 0x0A Counter Min Byte 4 0x00 0x0B Counter Min Byte 3 0x00 0x0C Counter Min Byte 2 0x00 0x0D Counter Min Byte 1 0x00 0x0E LED A intensity 0x00 0x0F LED B intensity 0x00 2.1 Configuration 2.1.1 General Configuration Address: 0x00 R/W-0 - R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 RESET - RMOD IPUD DIRE WRAPE LEDE INTE INTE Enable interrupt pin. 1: Enable 0: Disable LEDE Enable LED output. 1: Enable 0: Disable WRAPE Enable counter wrap. 1: Wrap enable. When the counter value reaches the CMAX+1, restart to the CMIN and vice versa 6

0: Wrap disable. When the counter value reaches the CMAX or CMIN, the counter stops to increasing or decreasing DIRE Direction of the encoder when increment. 1: Rotate left side to increase the value counter 0: Rotate right side to increase the value counter IPUD Interrupt Pull-UP disable. 1: Disable 0: Enable RMOD Reading Mode. 1: X2 mode 0: X1 mode RST Reset of the I2C Encoder 1: Reset 0: No reset 2.2 Status Address: 0x01 - - - R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 - - - RMIN RMAX RDEC RINC PUSH PUSH Status of the push button of the encoder 1: Push button is pressed 0: Push button is not pressed RINC Status of the counter value 1: Counter value is increased 0: Counter value is not increased RDEC Status of the counter value 1: Counter value is decreased 0: Counter value is not decreased RMAX Status of the counter value 1: CVAL reaches the CMAX value 0: CVAL is below the CMAX value RMIN Status of the counter value 1: CVAL reaches the CMIN value 0: CVAL is above the CMIN value 7

2.3 Counter Value 2.3.1 Counter Value Address: 0x02 31 30 29 28 27 26 25 24 CVAL BYTE 4 <31-24> Address: 0x03 23 22 21 20 19 18 17 16 CVAL BYTE 3 <23-16> Address: 0x04 15 14 13 12 11 10 9 8 CVAL BYTE 2 <15-8> Address: 0x05 CVAL BYTE 1 <7-0> This is a signed 32 bit register where the counter value is stored. When the encoder is rotated, the value is increased or decreased according to the direction. 2.3.2 Counter Max Address: 0x06 31 30 29 28 27 26 25 24 CMAX BYTE 4 <31-24> Address: 0x07 23 22 21 20 19 18 17 16 CMAX BYTE 3 <23-16> Address: 0x08 15 14 13 12 11 10 9 8 CMAX BYTE 2 <15-8> Address: 0x09 CMAX BYTE 1 <7-0> This is a signed 32 bit register, it is used for storing the maximum threshold of the CVAL register. When CVAL is greater than CMAX, the value of CVAL is set according the the flag WRAPE. 8

2.3.3 Counter Min Address: 0x0A 31 30 29 28 27 26 25 24 CMIN BYTE 4 <15-8> Address: 0x0B 23 22 21 20 19 18 17 16 CMIN BYTE 3 <7-0> Address: 0x0C 15 14 13 12 11 10 9 8 CMIN BYTE 2 <15-8> Address: 0x0D CMIN BYTE 1 <7-0> This is a signed 32 bit register, it is used for storing the minimum threshold of the CVAL register. When CVAL is less than CMIN, the value of CVAL is set according the the flag WRAPE. 2.4 LEDs 2.4.1 LED A intensity Address: 0x0E LED A PWM Value <7-0> This register is used for setting the PWM of the LED A, where the value of 0x00 means PWM at 0% and a value of 0xFF means PWM at 100%. 2.4.2 LED B intensity Address: 0x0F LED B PWM Value <7-0> This register is used for setting the PWM of the LED B. A value of 0x00 means PWM at 0% and a value of 0xFF means PWM at 100% 9

3. Schematic 10