CY8CKIT-043 PSoC® 4 M-Series Prototyping Kit Guide, Doc. #: 001-97606 Rev. **
39
Code Examples
Figure 5-9. ADC_SAR_Seq_DieTemp_PSoC4 Code Example
6. This example project measures an input voltage in the range 0 to 1.024 V on a pin and sends the
measured voltage and device die temperature over UART. In addition, the project controls the
brightness of an LED using a PWM based on the value measured by the ADC. Map the UART
and LED pins as shown in
to use the example with the kit. The pin used to measure
an analog input voltage using the ADC can be mapped to any pin.