CY8CKIT-030 PSoC® 3 Development Kit Guide, Doc. # 001-61038 Rev. *J
32
Code Examples
■
Range is set to Vssa to Vdda in single-ended mode because the potentiometer output is a single-
ended signal that can go from 0 to Vdda. Therefore, at 20-bit resolution, the ADC will resolve in
steps of Vdda/2
20
.
5.2.4
Verify Output
Build and program the code example, as explained in
5.1.1 Programming the Code Examples
, and
reset the device. The LCD shows the voltage reading corresponding to the voltage on the
potentiometer.
Figure 5-3
demonstrates the functionality. When you turn the potentiometer, the
voltage value changes. You can also verify the voltage on the potentiometer using a precision
multimeter.
Note
The potentiometer connects to a differential ADC, which works in single-ended mode. This
means the ADC input is measured against internal Vssa. Any offset in the measurement can be
positive or negative. This can result in a small offset voltage even when the potentiometer is zero.
Figure 5-3. Voltage Display
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from