This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/BQ40Z80: Configuration and use of bq40z80 pre-discharge function

Part Number: BQ40Z80

Tool/software: TI C/C++ Compiler

The project is to use the FEN_en instruction to turn on the charging tube and the discharge tube at the same time, and now if the pre-discharge function is added, how to operate the 0x0022 FET Control instruction and the 0x001C PDSG FET Toggle instruction to properly turn on and off the mos to make the pre-discharge function effective.

Configuration: PDSG (Bit 8) of FET Options: 1 // Enable pre-discharge function

MFP17_SEL0.2 (Bits 12-10) for Pin Configuration: 0, 1, 1
0, 1, 1 = Pre-discharge (PDSG) FET control pin

// Select the pre-discharge pin as 17 pins