![Cypress PSoC 1 CY3210-PSoCEVAL1 Manual Download Page 62](http://html1.mh-extra.com/html/cypress/psoc-1-cy3210-psoceval1/psoc-1-cy3210-psoceval1_manual_2706286062.webp)
CY3210-PSoCEVAL1 PSoC® 1 Evaluation Kit Guide, Doc. #: 001-66768 Rev. *F
62
Code Examples
When the SW switch is pressed, the PWM configuration is unloaded and the PRS configuration is
loaded. In this configuration, LED1 and LED3 are used to output the PRS Pulse Density and PRS
Bitstream, respectively.
The APIs UnloadConfig_<configname> and LoadConfig_<configname> are used to unload and load
the required configurations
Counter8:
In the base configuration, it takes a clock of 732 Hz as an input.
PRS8:
The PRS configuration contains a PRS with pulse density (analogous to pulse width) and a
bitstream output that is shifted out to LED pin.
PWM8:
The PWM configuration contains a standard 8-bit PWM with a duty cycle of 50 percent. Both
the pulse width and terminal count outputs are displayed on LEDs.
Figure 5-48. Base Configuration