Documentation Home Page Cell Monitoring Device Emulation Add-On for NI VeriStand Home page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

ADBMS6815

The ADBMS6815 is a virtualized integrated circuit designed to mimic the behavior of a real cell monitoring device. Within the VeriStand project, it is represented as a Device item in the configuration tree and is emulated on the FPGA of the Real-Time target upon project deployment. Each ADBMS6815 device in the Ring supports the monitoring of up to 12 battery cells, along with 7 GPIO channels. Passive balancing functionality is also included.

Section Channels

Expand the Device section in the configuration tree to display the following VeriStand channels. Channel values can be dynamically modified during execution.

Certain channel values are represented in hexadecimal or binary notation. Refer to How to Manage Hexadecimal and Binary Data in VeriStand for additional instructions.

Channel Name

Type

Format

Units

Default

Description

Channel Name

Type

Format

Units

Default

Description

Enable

Input

Binary

 

1

Enables or disables the emulated device during execution.

  • 0 - Device is disabled and bypassed for SPI transmission.

  • 1 - Device is enabled. Normal operation.

CRC Check

Input

Binary

 

1

Enables or disables the cyclic redundancy check (CRC) of the command packet error code (PEC) and data packet error code (DPEC) of the SPI transmissions received by the emulated device.

  • 0 - No CRC check is performed.

  • 1 - CRC checking is enabled. Normal operation.

Port A Enable

Input

Binary

 

1

Enables or disables SPI transmission on the Port A side of the emulated device. Use this channel to simulate a fault in the SPI communication.

  • 0 - SPI transmission is disabled on the Port A side of the device.

  • 1 - SPI transmission is enabled. Normal operation.

Port B Enable

Input

Binary

 

1

Enables or disables SPI transmission on the Port B side of the emulated device. Use this channel to simulate a fault in the SPI communication.

  • 0 - SPI transmission is disabled on the Port B side of the device.

  • 1 - SPI transmission is enabled. Normal operation.

Redundancy Fault

Input

Binary

 

0

Forces a digital redundancy fault on the emulated device and stores a digital redundancy fault code in place of the ADC result.

  • 0 - Digital redundancy check passes.

  • 1 - Digital redundancy check fails.

Vref2

Input

Decimal

V

0

Emulates the VREF2 pin of a real device.

Vref3

Input

Decimal

V

0

Emulates the VREF3 pin of a real device.

Vreg

Input

Decimal

V

0

Emulates the VREG pin of a real device.

Vregd

Input

Decimal

V

0

Emulates the VREGD pin of a real device.

Internal Die Temperature

Input

Decimal

°C

0

Emulates the Internal Die Temperature Measurement on the device, in degrees Celsius. The Internal Die Temperature is subsequently used to calculate the ITMP value stored in Status Register Group A.

Sum of Cells

Input

Decimal

V

0

Emulates the Sum of All Cells Measurement on the device, in degrees Celsius. The Sum of All Cells is subsequently used to calculate the SC value stored in Status Register Group A.

V-

Input

Decimal

V

0

Emulates the V- pin of a real device.

ADOL Voltage Cell 7

Input

Decimal

V

0

Sets the Cell 7 voltage measured by the emulated device when the ADOL command is received.

Cell Measurement x

Input

Decimal

V

0

Emulates the cell voltage measurement of Cell x. This measurement is taken between pin Cx and pin C(x-1) on a real device.

CVOW Cell x

Input

Decimal

V

0

Emulates the measurement of the change in voltage of Cell x due to the application of a squeeze current. This measurement is taken to enable the detection of open wires between the external cells.

When the CVOW command is received from the SPI master, the values of these channels are written to the Cell Diagnostic Register groups on the emulated device.

GPIO x

Input

Decimal

V

0

Emulates pins GPIO1 through GPIO7 of a real device.

Serial ID

Input

Hexadecimal

 

0

Sets the Serial ID (SID) of the emulated device.

To set the Default Value of this channel in the system definition, convert it to decimal notation. See How to Manage Hexadecimal and Binary Data in VeriStand Channels for more information.

Open Wire Cx

Input

Binary

 

0

Emulates an open wire between the external cells. This open wire condition can be detected using the ADOW command.

  • 0 - Uninterrupted connection at pin Cx.

  • 1 - Open wire at pin Cx.

STCOMM Reply Command

Input

Hexadecimal

 

0

When the STCOMM command is received from the SPI Master, the value of this channel is written to the COMM register of the emulated device. Map the command communication interface of an external device model, acting as an I2C or SPI slave, to this input channel.

To set the Default Value of this channel in the system definition, convert it to decimal notation. See How to Manage Hexadecimal and Binary Data in VeriStand Channels for more information.

STCOMM Reply Data

Input

Hexadecimal

 

0

When the STCOMM command is received from the SPI Master, the value of this channel is written to the COMM register of the emulated device. Map the data communication interface of an external device model, acting as an I2C or SPI slave, to this input channel.

To set the Default Value of this channel in the system definition, convert it to decimal notation. See How to Manage Hexadecimal and Binary Data in VeriStand Channels for more information.

Last Command Received

Output

Hexadecimal

 

0

Outputs the last command received from the SPI Master.

Command CRC Check

Output

Binary

 

0

Binary flag indicating a Command CRC mismatch in the last transmission received from the SPI Master.

  • 0 - No CRC mismatch detected.

  • 1 - CRC mismatch detected.

Data CRC Check

Output

Binary

 

0

Binary flag indicating a Data CRC mismatch in the last transmission received from the SPI Master.

  • 0 - No CRC mismatch detected.

  • 1 - CRC mismatch detected.

PWM Discharge Control x

Output

Binary

 

0

Outputs the duty cycle of the PWM controlling the balancing switch for cell Cx. The value is represented in 4-bit binary format and corresponds to the PWMC Setting. This channel can be mapped to the input of an external cell model to regulate its discharge process.

Discharge Cell x

Output

Binary

 

0

Binary flag outputting the status of DCC bit x in Configuration Register Group B.

  • 0 - DCC bit is not asserted.

  • 1 - DCC bit is asserted. Continuous discharge of Cell x.

WRCOMM Command

Output

Hexadecimal

 

0

Outputs the command stored in the COMM register as a result of the latest WRCOMM command received from the SPI Master. Map this channel to the input of an external device model acting as an I2C or SPI slave.

WRCOMM Data

Output

Hexadecimal

 

0

Outputs the data stored in the COMM register as a result of the latest WRCOMM command received from the SPI Master. Map this channel to the input of an external device model acting as an I2C or SPI slave.

SPI Mode

The SPI Mode of the ADBMS6815 device is user configurable at the Ring level.

Supported Commands

The ADBMS6815 device supports the following SPI commands:

Command Name

Description

Command Name

Description

WRCFGA

Write Configuration Register Group A

WRCFGB

Write Configuration Register Group B

RDCFGA

Read Configuration Register Group A

RDCFGB

Read Configuration Register Group B

RDCVA

Read Cell Voltage Register Group A

RDCVB

Read Cell Voltage Register Group B

RDCVC

Read Cell Voltage Register Group C

RDCVD

Read Cell Voltage Register Group D

RDCDA

Read Cell Diagnostic Register Group A

RDCDB

Read Cell Diagnostic Register Group B

RDCDC

Read Cell Diagnostic Register Group C

RDCDD

Read Cell Diagnostic Register Group D

RDAUXA

Read Auxiliary Register Group A

RDAUXB

Read Auxiliary Register Group B

RDAUXC

Read Auxiliary Register Group C

RDSTATA

Read Status Register Group A

RDSTATB

Read Status Register Group B

RDSTATC

Read Status Register Group C

WRPWM

Write PWM Register Group

RDPWM

Read PWM Register Group

ADCV

Start Cell Voltage ADC Conversion and Poll Status

CVOW

Start Cell Voltage Open Wire ADC Conversion and Poll Status

ADOW

Start Legacy Open Wire ADC Conversion and Poll Status

CVPG

Start Cell Voltage Pattern Generation and Poll Status

CDPG

Start Cell Diagnostic Pattern Generation and Poll Status

ADOL

Start Overlap Measurements of Cell 7 Voltage

ADAX

Start GPIOs ADC Conversion and Poll Status

AXPG

Start Auxiliary Pattern Generation and Poll Status

ADSTAT

Start Status Group ADC Conversion and Poll Status

ADCVAX

Start Combined Cell Voltage and GPIO1, GPIO2 Conversion and Poll Status

ADCVSC

Start Combined Cell Voltage and SC Conversion and Poll Status

CLRCELL

Clear Cell Voltage Register Groups

CLRAUX

Clear Auxiliary Register Groups

CLRSTAT

Clear Status Register Groups

CLRCD

Clear Cell Diagnostic Register Groups

CLRFLAG

Clear Flags

PLADC

Poll ADC Status

DIAGN

Diagnose Mux and Poll Status

WRCOMM

Write COMM Register Group

RDCOMM

Read COMM Register Group

STCOMM

Start I2C/SPI Communication

The emulated device does not support I2C/SPI communication via the GPIO pins. Communication with an external device model can be established using the WRCOMM and STCOMM Reply channels. See How to Integrate an External Device Using I2C or SPI for more information.

MUTE

Mute Discharge

UNMUTE

Unmute Discharge

RDSID

Read Serial ID Register Group

SRST

Soft Reset

RSTCC

Reset Command Counter

 

 

 

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter