![Cypress PSoC 1 CY3210-PSoCEVAL1 Manual Download Page 59](http://html1.mh-extra.com/html/cypress/psoc-1-cy3210-psoceval1/psoc-1-cy3210-psoceval1_manual_2706286059.webp)
CY3210-PSoCEVAL1 PSoC® 1 Evaluation Kit Guide, Doc. #: 001-66768 Rev. *F
59
Code Examples
5.4.2
Hardware Connections
■
ADC Input (0–Vdd): Connect P01 to VR
■
DAC Output (0–Vdd): Connect P05 to LED1 and CRO
Figure 5-45. Hardware Connections: Code Example 4
5.4.3
Code Example 4 Flowchart
Start ADC Value
Update Counter
Turn on PGA,
Start DAC
Read Data, Clear Flag
A=0x03
Update DAC,
Update Rate
ADC Converted
Data Available?
No
Yes
Enable Global Interrupts
Counter Period
less than 0x03
Yes
No