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.

ADBMS6830

The ADBMS6830 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 ADBMS6830 device in the Ring supports the monitoring of up to 16 battery cells, along with 10 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.

Some channel values are represented in hexadecimal or binary notation. For detailed instructions, please refer to How to Manage Hexadecimal and Binary Data in VeriStand.

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.

Selftest Fault

Input

Binary

 

0

Obsolete. This channel does not impact the results of the emulation.

CRC Error

Input

Binary

 

0

Forces a CRC error on the SPI transmissions originating from the emulated device.

  • 0 - Generated device response contains the correct CRC value.

  • 1 - Generated device response contains an incorrect CRC value.

Vref1

Input

Decimal

V

0

Emulates the VREF1 pin of a real device.

Vref2

Input

Decimal

V

0

Emulates the VREF2 pin of a real device.

VA

Input

Decimal

V

0

Emulates the Analog Power Supply Voltage measurement on the device. The measured value is stored in the VA memory location within Status Register Group B.

VD

Input

Decimal

V

0

Emulates the Digital Power Supply Voltage measurement on the device. The measured value is stored in the VD memory location within Status Register Group B.

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.

Vres

Input

Decimal

V

0

Emulates the Resistor Voltage measurement on the device. The measured value is stored in the VRES memory location within Status Register Group B.

VMV

Input

Decimal

V

0

Emulates the V- to V- voltage measurement on the device. The measured value is stored in the VPV memory location within Auxiliary Register Group D.

VPV

Input

Decimal

V

0

Emulates the V+ to V- voltage measurement on the device. The measured value is stored in the VPV memory location within Auxiliary Register Group D.

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.

Redundant Cell Measurement x

Input

Decimal

V

0

Emulates the redundant voltage measurement of Cell x. This measurement is taken between pin Sx and pin S(x-1) on a real device.

GPIO x

Input

Decimal

V

0

Emulates pins GPIO1 through GPIO10 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.

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 PWMCn value. 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.

SPI Mode

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

Supported Commands

The ADBMS6830 device supports the following SPI commands:

Command

Description

Command

Description

Configuration Register Commands

WRCFGA

Write Configuration Register Group A

WRCFGB

Write Configuration Register Group B

RDCFGA

Read Configuration Register Group A

RDCFGB

Read Configuration Register Group B

Read Cell Voltage Results Registers

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

RDCVE

Read Cell Voltage Register Group E

RDCVF

Read Cell Voltage Register Group F

RDCVALL

Read All Cell Results

Read Averaged Cell Voltage Result Registers

RDACA

Read Averaged Cell Voltage Register Group A

RDACB

Read Averaged Cell Voltage Register Group B

RDACC

Read Averaged Cell Voltage Register Group C

RDACD

Read Averaged Cell Voltage Register Group D

RDACE

Read Averaged Cell Voltage Register Group E

RDACF

Read Averaged Cell Voltage Register Group F

RDACALL

Read All Averaged Cell Results

Read S-Voltage Result Registers

RDSVA

Read S Voltage Register Group A

RDSVB

Read S Voltage Register Group B

RDSVC

Read S Voltage Register Group C

RDSVD

Read S Voltage Register Group D

RDSVE

Read S Voltage Register Group E

RDSVF

Read S Voltage Register Group F

RDSALL

Read All S Results

Read Filtered Cell Voltage Result Registers

RDFCA

Read Filtered Cell Voltage Register Group A

RDFCB

Read Filtered Cell Voltage Register Group B

RDFCC

Read Filtered Cell Voltage Register Group C

RDFCD

Read Filtered Cell Voltage Register Group D

RDFCE

Read Filtered Cell Voltage Register Group E

RDFCF

Read Filtered Cell Voltage Register Group F

RDFCALL

Read All Filtered Cell Results

Read Auxiliary Result Registers

RDAUXA

Read Auxiliary Register Group A

RDAUXB

Read Auxiliary Register Group B

RDAUXC

Read Auxiliary Register Group C

RDAUXD

Read Auxiliary Register Group D

RDAUXE

Read Auxiliary Register Group E (ADBMS6832 Only)

RDRAXA

Read Redundant Auxiliary Register Group A

RDRAXB

Read Redundant Auxiliary Register Group B

RDRAXC

Read Redundant Auxiliary Register Group C

RDRAXD

Read Redundant Auxiliary Register Group D

Read Status Registers

RDSTATA

Read Status Register Group A

RDSTATB

Read Status Register Group B

RDSTATC

Read Status Register Group C

RDSTATD

Read Status Register Group D

RDSTATE

Read Status Register Group E

PWM Register Commands

WRPWMA

Write PWM Register Group A

RDPWMA

Read PWM Register Group A

WRPWMB

Write PWM Register Group B

RDPWMB

Read PWM Register Group B

ADC Commands

ADCV

Start Cell Voltage ADC Conversion and Poll Status

ADSV

Start S-ADC Conversion and Poll Status

ADAX

Start AUX ADC Conversions and Poll Status

ADAX2

Start AUX2 ADC Conversions and Poll Status

Clear Commands

CLRCELL

Clear Cell Voltage Register Groups

CLRFC

Clear Filtered Cell Voltage Register Groups

CLRAUX

Clear Auxiliary Register Groups

CLRSPIN

Clear S-Voltage Register Groups

CLRFLAG

Clear Flags

CLOVUV

Clear OVUV

Poll Commands

PLADC

Poll any ADC Status

PLCADC

Poll C-ADC

PLSADC

Poll S-ADC

PLAUX

Poll Aux ADC

PLAUX2

Poll Aux2 ADC

Master I2C Commands

WRCOMM

Write COMM Register Group

RDCOMM

Read COMM Register Group

Control Commands

MUTE

Mute Discharge

UNMUTE

Unmute Discharge

RDSID

Read Serial ID Register Group

RSTCC

Reset Command Counter

SNAP

Snapshot

UNSNAP

Release Snapshot

SRST

Soft Reset

 

 

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