CY8CKIT-030 PSoC® 3 Development Kit Guide, Doc. # 001-61038 Rev. *J
31
Code Examples
5.2
VoltageDisplay
5.2.1
Project Description
This example code measures a simple analog voltage controlled by the potentiometer. The code
uses the internal Delta-Sigma ADC configured for a 20-bit operation; the ADC range is 0 to Vdda.
The voltage measurement resolution is in microvolts. The results are displayed on the character
LCD module.
Note
The PSoC 3 Development Kit is factory-programmed with the Voltage Display code example.
5.2.2
Hardware Connections
The example requires the character LCD on P8. Because it uses the potentiometer, the jumper
POT_PWR (J30) should be in place. This connects the potentiometer to the Vdda.
5.2.3
DelSig ADC Configuration
To view or configure the DelSig ADC component, double-click the component in the
TopDe-
sign.cysch
file.
Figure 5-2. Delta-Sigma ADC Configuration
The DelSig ADC is configured as follows:
■
Continuous mode of operation is selected because the ADC scans only one channel.
■
Conversion rate is set to 187 samples/sec, which is the maximum sample rate possible at 20-bit
resolution.
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