Cypress Semiconductor Cy8CKIT-050 Cy8CKIT-050B ユーザーズマニュアル

製品コード
Cy8CKIT-050B
ページ / 62
CY8CKIT-050 PSoC® 5LP Development Kit Guide, Doc. # 001-65816 Rev. *E
41
Code Examples
Figure 5-10.  CapSense Button
5.6
Project: ADC_DAC
5.6.1
Project Description
This project demonstrates sine wave generation by using an 8-bit DAC and DMA. The sine wave
period is based on the current value of the ADC value of the potentiometer.
The firmware reads the voltage output by the board potentiometer and displays the raw counts on
the board character LCD display. An 8-bit DAC outputs a table generated sine wave to an LED using
DMA at a frequency proportional to the ADC count.
5.6.2
Hardware Connections
For this example, the character LCD must be installed on P8. The example uses the potentiometer;
therefore, the jumper POT_PWR should also be in place. This jumper connects the potentiometer to
the Vdda.
5.6.3
Verify Output
Build and program the code example, and reset the device to view the ADC output displayed on the
LCD. LED4 is an AC signal output whose period is based on the ADC. Turning the potentiometer
results in LCD value change. This also results in change in the period of the sine wave fed into
LED4. When the potentiometer changes, the blinking rate of LED4 changes.