SLAAEP4 December   2024 BQ79616 , MSPM0G3507

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Hardware Setup
    1. 2.1 LP-MSPM0G3507 Hardware Connection
    2. 2.2 BQ79616EVM Hardware Connection
    3. 2.3 TCAN1046VEVM Hardware Connection
  6. 3Software Structure
    1. 3.1 Project File Structure
    2. 3.2 Software Function and Flow Diagram
    3. 3.3 Protocol Description
      1. 3.3.1 UART and Daisy Chain
      2. 3.3.2 PING and TONG
  7. 4System Test
    1. 4.1 Test Setup
    2. 4.2 Read Voltage
  8. 5Summary
  9. 6References

Test Setup

Here are the steps to set up the test environment. For the system diagram block, see Figure 2-1. Figure 4-1 is the actual test environment photo.

  1. Based on Figure 4-1, Figure 2-1, connect LP-MSPM0G3507 with two BQ79616 EVMs, TCAN1046VEVM and CAN analyzer. Both BQ79616 EVMs need to be powered, here we use a 18V DC power supply.
  2. Connect LP-MSPM0G3507 to PC using USB cable for debug purpose, and connect CAN Analyzer to PC to receive the CAN data.
  3. Import the BQ79616 demo code to CCS from the latest MSPM0-SDK, compile and start debugging on LP-MSPM0G3507.
  4. Open CAN Analyzer data receive window and CCS debug console window.
  5. Press S2 button (PB21) on LP-MSPM0G3507, to set the gTXMsg flag to true, and MSPM0 starts to send battery voltage data through debug printf port and CAN interface. The debug printf port send the data through XDS110 to CCS debug console window.
 Hardware Setup Figure 4-1 Hardware Setup

For the CAN bit timing settings, this demo code uses standard CAN, running at 500kbps and sampling point is 87.5%. Figure 4-2 is the MSPM0 CAN bit timing setting in System Configuration Tool. And in some CAN Analyzer host PC software, four CAN bit timing parameters (NBRP, NTSEG1 Tq, NTSEG2 Tq, NSJW Tq) need to be increased by 1 based on MSPM0 CAN bit timing settings to work properly, as shown in Figure 4-3.

 MSPM0 CAN Bit Timing
                    Parameters Settings Figure 4-2 MSPM0 CAN Bit Timing Parameters Settings
 CAN Analyzer CAN Bit Timing
                    Parameters Settings Figure 4-3 CAN Analyzer CAN Bit Timing Parameters Settings