Mcp3xxx.ReadPseudoDifferential(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 value from the device using pseudo-differential inputs
public virtual int ReadPseudoDifferential (int valueChannel, int referenceChannel);
abstract member ReadPseudoDifferential : int * int -> int
override this.ReadPseudoDifferential : int * int -> int
Public Overridable Function ReadPseudoDifferential (valueChannel As Integer, referenceChannel As Integer) As Integer
Parameters
- valueChannel
- Int32
Channel which represents the signal (valid values: 0 to channelcount - 1).
- referenceChannel
- Int32
Channel which represents the signal ground (valid values: 0 to channelcount - 1).
Returns
A value corresponding to relative voltage level on specified device channels
Remarks
Like a normal differential input 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). However the reference signal in a pseudo-differential input is expected to be connected to the signal ground. This is used to reduce the effect of external electrical noise on the on the inputs. If there is noise where the noise is likey to impact both the value input and the reference input and the action of subtracting the values helps to cancel it out.
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