Mcp33xx.ReadDifferential(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads a 13 bit signed value from the device using differential inputs
public override int ReadDifferential (int valueChannel, int referenceChannel);
override this.ReadDifferential : int * int -> int
Public Overrides Function ReadDifferential (valueChannel As Integer, referenceChannel As Integer) As Integer
Parameters
- valueChannel
- Int32
Channel which represents the signal driving the value in a positive direction (valid values: 0 to channelcount - 1).
- referenceChannel
- Int32
Channel which represents the signal driving the value in a negative direction (valid values: 0 to channelcount - 1).
Returns
A 13 bit signed value corresponding to relative voltage level on specified device channels
Remarks
The value that is read respresents the difference between the voltage on the value channel and the voltage on the reference channel (valueChannel Reading - referenceChannel Reading). If the valueChannel and the referenceChannel are part of the same channel pairing then the ADC converter will internally subtract the two values. If not then the subtraction is performed in software which may mean that errors are introduced with rapidly changing signals.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for