SLUUBY1B December 2020 – April 2022 BQ76942
Class | Subclass | Name | Type | Min | Max | Default | Unit |
---|---|---|---|---|---|---|---|
Settings | Configuration | DDSG Pin Config | H1 | 0x00 | 0xFF | 0x00 | Hex |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
OPT5 | OPT4 | OPT3 | OPT2 | OPT1 | OPT0 | PIN_FXN1 | PIN_FXN0 |
Description: This parameter configures the DDSG pin functionality. Depending on the pin function selected, the meaning of the OPT bitfield changes.
Bit | Field | Default | Description |
---|---|---|---|
7–2 | OPT5–OPT0 | 0 | These bits configure the options for the selected pin function. OPT[5]: --- Polarity when configured for DDSG (does not affect GPO mode) --- --- 0 = selects active-high (DDSG is high when DSG is disabled) --- --- 1 = selects active-low (DDSG is low when DSG is disabled) OPT[4]: --- Unused OPT[3]: --- 0 = output high drive uses REG18 --- 1 = output high drive uses REG1 OPT[2]: --- 0 = weak pull-up to REG1 is disabled --- 1 = weak pull-up to REG1 is enabled --- NOTE - this should not be selected if OPT3=1 OPT[1]: --- 0 = pin drives tri-state when controlled to be driven "hi" (not available when OPT[3] is set) --- 1 = pin drives active-high when controlled to be driven "hi" OPT[0]: --- 0 = weak pulldown to VSS is disabled --- 1 = weak pulldown to VSS is enabled When a pin is selected for ADCIN or thermistor functionality, the OPT[5:0] bits are used as shown below. OPT[5:4] --- Pull-up control --- --- 00 = selects 18-kOhm pull-up for thermistor measurement --- --- 01 = selects 180-kOhm pull-up for thermistor measurement --- --- 10 = selects no pull-up (used for ADCIN functionality) OPT[3:2] --- Polynomial selection for thermistor temperature measurement --- --- 00 = selects the 18K Temperature Model --- --- 01 = selects the 180K Temperature Model --- --- 10 = selects the Custom Temperature Model --- --- 11 = no polynomial is used, raw ADC counts are reported OPT[1:0] --- Measurement type --- --- 00 = general purpose ADC input --- --- 01 = thermistor temperature measurement, used for cell temperature protections --- --- 10 = thermistor temperature measurement, reported but not used for protections --- --- 11 = thermistor temperature measurement, used for FET temperature protection |
1–0 | PIN_FXN1–PIN_FXN0 | 0 | These bits configure which function this pin is used for. 0 = Unused 1 = General Purpose Output 2 = DDSG 3 = ADC Input or Thermistor |