
CYPRESS’S PSoC: A DIFFERENT KIND OF MCU 461
{
PWM8_1_Start(); //API for square wave generation
}
e details of the function used here, i.e., PWM8_1_Start() can be obtained from the
manual of the module.
Note Once a specifi c per
ipheral, like the PWM unit, for instance, is set to start run-
ning as in Example 12.5, the CPU has no work at all. e hardware constituting the
PWM unit runs continuously to generate the square wave.
PWM Settings
Period=99
Pulse width =50
Clock_Synch =Sync to Sysclk
Compare = Less an
With this, we get a duty cycle of 50% with a frequency of VC3/100 (Since the module
counts down from 99 to zero).
12.7.4 | Implement an LCD ...