Data byte 0 Data byte 1 Data byte 2 Data byte 3 Data byte 4. 0xA Register Address MSB data byte Data byte Data byte LSB data byte

Similar documents
About the Sens it Payload

User Manual. 1000BASE-T1 SFP Module

1014/15 R Float Volt - - Voltage, L-L, ave of 3 phases 1016/17 R Float Volt - - Voltage, L-N, ave of 3 phases

Maxim > Design Support > Technical Documents > Application Notes > Battery Management > APP 131

MS BA01. PHT Combination Sensor SPECIFICATIONS

MS BA01 PTH Fusion Sensor

89BSD CALCULATION METHOD APPLICATION NOTE

MS4525HRD (High Resolution Digital)

Infrared Tire Temperature Sensor, IRTS-V2 - Datasheet

1. Write a program to calculate distance traveled by light

Bosch BMP085 Barometer Floating Point Pressure Calculations

ECE260: Fundamentals of Computer Engineering

Infrared Temperature Sensor - Datasheet

Multichannel Brake Infrared Temperature Sensor - Datasheet

MS BA01 Miniature Altimeter Module

MS4525HRD (High Resolution Digital) Integrated Digital Pressure Sensor (24-bit Σ ADC) Fast Conversion Down to 1 ms Low Power, 1 µa (standby < 0.15 µa)

Infrared Tire Temperature Sensor Kit, IRTS-UK-V2 Datasheet

Number Representation and Waveform Quantization

MODBUS Protocol for CS141 network card families

Measurement and Instrumentation. Sampling, Digital Devices, and Data Acquisition

MS BA01 Variometer Module, with LCP cap

DNP V3.00 Level2. ProtocolAssignm entsusermanual

Inbuilt Modbus Protocol

MS BA Micro Altimeter Module

Differential Pressure Sensor

MS BA Miniature 30 bar Industrial Pressure Sensor

,- # (%& ( = 0,% % <,( #, $ <<,( > 0,% #% ( - + % ,'3-% & '% #% <,( #, $ <<,(,9 (% +('$ %(- $'$ & " ( (- +' $%(& 2,#. = '%% ($ (- +' $ '%("

MS BA Altimeter and diving pressure sensor

ECE20B Final Exam, 200 Point Exam Closed Book, Closed Notes, Calculators Not Allowed June 12th, Name

Multiplication of signed-operands

E51 MODBUS POINT MAP

MS BA01 Miniature Altimeter Module

DEIF A/S. MTR-2-015, -315, -415, MTR-2F-215 Multi-configurable AC transducer C. Modbus Communication Manual.

MS BA Miniature 14 bar Module

CprE 281: Digital Logic

Digital Systems Roberto Muscedere Images 2013 Pearson Education Inc. 1

A Guide. Logic Library

MS BA01 Miniature Altimeter Module

ADVANCED INFORMATION MS4525HRD (High Resolution Digital)

Representing signed numbers in Two s Complement notation

DATA SHEET. Thermocouple module with digital I²C-Interface - THMOD-I²C. Characteristic features. Areas of application. Features.

UNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018

43iQ MODBUS Register Table

MS BA. Ultra Small Gel Filled Pressure Sensor SPECIFICATIONS

FORMAT OF VISSR ARCHIVE DATA (GMS-5 AND GVAR-VISSR)

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

ECEN 651: Microprogrammed Control of Digital Systems Department of Electrical and Computer Engineering Texas A&M University

PRELIMINARY. Resolution (OSR=8192) 0.2 mbar Accuracy 0 C to +40 C, mbar. 0 to 6 bar (2) Response time (1)

A crash course in Digital Logic

MS BA01 Miniature Altimeter Module

CiA Draft Standard Proposal 447

Monnit Corporation Version 2.2

convert a two s complement number back into a recognizable magnitude.

EECS150 - Digital Design Lecture 23 - FFs revisited, FIFOs, ECCs, LSFRs. Cross-coupled NOR gates

MS BA03 Low Voltage Barometric Pressure Sensor

MAGPOWR TENSION CONTROL DLCA NET-SLIM. User Manual. Digital Load Cell Amplifier MI 850A358 1 A

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

IEEE Broadband Wireless Access Working Group <

Chapter 7. Sequential Circuits Registers, Counters, RAM

CHW 261: Logic Design

Analog to Digital Conversion

Sequential Circuits Sequential circuits combinational circuits state gate delay

5 8 LED MAX6950/MAX6951 MAX6950/MAX6951 SPI TM QSPI TM MICROWIRE TM 7 LED LED 2.7V MAX LED MAX LED 16 (0-9 A-F) RAM 16 7 LED LED

EE260: Digital Design, Spring n Digital Computers. n Number Systems. n Representations. n Conversions. n Arithmetic Operations.

FORMAT OF VISSR ARCHIVE DATA(GMS,GMS-2,GMS-3 and GMS-4)

Digital Electronic Meters

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?

ENGIN 112 Intro to Electrical and Computer Engineering

The Magic of Negative Numbers in Computers

14:332:231 DIGITAL LOGIC DESIGN. 2 s-complement Representation

*** SAMPLE ONLY! The actual NASUNI-FILER-MIB file can be accessed through the Filer address>/site_media/snmp/nasuni-filer-mib ***

INTERVALOMETER POWER CONSUMPTION

PART TEMP RANGE PIN-PACKAGE

Digital Signal 2 N Most Significant Bit (MSB) Least. Bit (LSB)

PART kHz CRYSTAL ALARM FUNCTION

Numbering Systems. Contents: Binary & Decimal. Converting From: B D, D B. Arithmetic operation on Binary.

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

MS BA03 Low Voltage Barometric Pressure Sensor

Mark Redekopp, All rights reserved. Lecture 1 Slides. Intro Number Systems Logic Functions

PRELIMINARY. MS BA Ultra Small Gel Filled Pressure Sensor DESCRIPTION FEATURES

MS BA03 Barometric Pressure Sensor, with stainless steel cap

32K x 8 EEPROM - 5 Volt, Byte Alterable

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Analyzing Accuracy of a Battery Fuel Gauge System

MS BA Miniature 30 bar Industrial Pressure Sensor

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

hexadecimal-to-decimal conversion

Arithme(c logic units and memory

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

LABORATORY MANUAL MICROPROCESSOR AND MICROCONTROLLER

KNX communication protocol

PC Control / Touch Control

Unit 7 Sequential Circuits (Flip Flop, Registers)

MS BA Miniature 30 bar Module

Product Obsolete/Under Obsolescence. Quantization. Author: Latha Pillai

2. A body that is positively charged is one that has an excess number of electrons.

MS BA07 Pressure sensor for harsh environment

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University

MS BA Miniature Altimeter Module

Transcription:

SFP200 CAN 2.0B Protocol Implementation Communications Features CAN 2.0b extended frame format 500 kbit/s Polling mechanism allows host to determine the rate of incoming data Registers The SFP200 provides Current, Voltage, Shunt Temperature and Coulomb-count registers, mapped in memory space as shown in Table 3. Registers can only be accessed one at a time. All other addresses are reserved; any writes outside of the defined register address range are ignored. Message Frames Access to the registers of the SFP200 is accomplished through polling by the host. The SFP200 listens for extended ID 0xA100201 with data length of 1. Data byte 0 of the message carries the requested register address. If the message data length is greater than 1, the message is ignored and discarded. The simple structure of the message is demonstrated in Table 1. Host request for data Request Message ID Data byte 0 0xA100201 Register Address Table 1 The SFP200 returns data using message ID 0xA100200. Byte 0 of the returned message is the requested register, followed by the data with the most significant byte first. See Table 2 for details. SFP200 response Response Message ID Data byte 0 Data byte 1 Data byte 2 Data byte 3 Data byte 4 0xA100200 Register Address MSB data byte Data byte Data byte LSB data byte Table 2 Preliminary 2017 Sendyne Corp. v1.5 1

Register Map Register Address 0x00 0x20 0x40 Description Reserved Current, μa Coulomb Count Low, μc 0x41 Coulomb Count High, μc * 2 32 0x42 0x44 Coulomb Count Low & Reset, μc Coulomb Count Charging Low, μc 0x45 Coulomb Count Charging High, μc * 2 32 0x46 Coulomb Count Discharging Low, μc 0x47 Coulomb Count Discharging High, μc * 2 32 0x60 0x61 0x62 0x80 Voltage 0, μv Voltage 1, μv Voltage 2, μv Temperature, m C Table 3 Data Format All data returned by the SFP200 is in a 32-bit signed integer format (2 s complement signed data*). Divide the signed data by 10 6 (1000000) to get the values in Amperes or Volts. For Temperature, divide the signed data by 10 3 (1000) to get the values in degrees Celsius. Coulomb counts are split into two registers, Coulomb Count High and Coulomb Count Low. The data is a combined 64-bit signed integer value (2 s complement signed data). Divide the signed data by 10 6 to get the value expressed in Coulombs. Register Coulomb Count Low should always be read first. Reads of this register causes Coulomb Count High to latch and remain unchanged until Coulomb Count Low is read again. Reads of the Coulomb Count Low & Reset will force the whole 64-bit Coulomb counter to reset to zero. The read Coulomb Count Low & Reset operation will provide the last value of the Coulomb Count Low register Preliminary 2017 Sendyne Corp. v1.5 2

and force the Coulomb Count High to latch its present value. The user may complete the read of the Coulomb Count High register to determine the last value of the whole Coulomb counter immediately prior to the reset. Coulomb Count Charging Low and Coulomb Count Charging High registers operate the same way as the Coulomb Count Low and Coulomb Count High registers providing information on the accumulated coulomb count during charging. Coulomb Count Discharging Low and Coulomb Count Discharging High registers also operate the same way as the Coulomb Count Low and Coulomb Count High registers providing information on the accumulated coulomb count during discharging. Both Coulomb Count Charging and Coulomb Count Discharging registers are reset to zero value through the Coulomb Count Low & Reset command. Preliminary 2017 Sendyne Corp. v1.5 3

Example Communications: Read Voltage 0 Origin Message ID Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Host 0xA100201 0x60 SFP200 0xA100200 0x60 0xFF 0x45 0xA1 0x34 Table 4 *For more information on 2 s complement please see this Wikipedia Article. Example of Read Coulomb Count Low & Reset Preliminary 2017 Sendyne Corp. v1.5 4

Example Walkthrough 1. Host sends a request message with ID 0xA100201 (extended), byte 0 set to 0x60 (voltage) and message length set to 1. 2. SFP200 receives the message and responds with the requested register address and contents using extended ID 0xA100200. 3. Host receives the message and checks byte 0 to determine if the correct register address has been received. 4. Host re-assembles the bytes into a signed integer, and then divides by 10 6 to scale the value. Pseudo-code for Current and Voltage received data reassembly by the host: // Example raw data from SFP module unsigned char byte1 = 0xFF; unsigned char byte2 = 0x45; unsigned char byte3 = 0xA1; unsigned char byte4 = 0x34; // Assembling to 32 bit unsigned integer unsigned int reassembled_data = 0; reassembled_data = byte1 << 24; reassembled_data = byte2 << 16; reassembled_data = byte3 << 8; reassembled_data = byte4 << 0; // Converting to volts float voltage = (int)(reassembled_data) / 1000000.0f; // Calculated value is -12.213964 Volts Preliminary 2017 Sendyne Corp. v1.5 5

Document Revisions Version Date Comments 1.5 20171201 Provide example of Reset Coulomb Counter operation. Remove current threshold registers 1.4 20171106 Added description of Charging and Discharging Coulomb Counters as well as current thresholds for accumulating current read values into the proper Coulomb Count registers 1.3 20170822 Change name of register 0x42 to Coulomb Count Low & Reset 1.2 20170613 Document the Coulomb count reset register 1.1 20170525 Annotation for Two s Complement 1.0 20161213 Initial public release 0.4 20161107 Temperature reporting changed 0.3 20160930 Minor text corrections; update of reported units for Coulomb counts 0.2 20160927 First release draft Table 5 Preliminary 2017 Sendyne Corp. v1.5 6