Skip to content

Configuration Register Bit Mixup #2

@cptkoolbeenz

Description

@cptkoolbeenz

The configuration register should contain chop, refsel, pseudo, channel, burn, refdet, buf, polarity, and gain. pg. 27
However, updateConf() is sending chop, channel, burn, buf, polarity, gain, notch, and filter.

  #ifdef DEBUG_AD7193
    Serial.println(F("updateConf()"));
  #endif
  
  uint32_t command = AD7193_CONF_CHAN(1 << _channel) | 
                    (_polarity * AD7193_CONF_UNIPOLAR) |
                    _gain |
                    _filter |
                    _notch_filter | 
                    _chop |
                    _buf |
                    _burnout; 
                        
  this->beginTransaction();
  this->setRegister(AD7193_REG_CONF, command, 3);
  this->endTransaction();
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions