Datasheet

Aalap Tripathy, 2004P3PS208
PSOC Lab, BITS Pilani Goa Campus
33
Scroll up again to the first 8 Bit Counter (Counter8_1) This is the counter which actually is being used here to generate the
square wave of 4 Khz frequency (32 Khz/4) Select CPU_32_Khz as the clock input. Other options might be tried once the
basic experiment is over.
Note : The 32 kHz clock is not very accurate, so maybe it is not a good choice. The accuracy of the CPU_32kHz clock is
from 15kHz to 64kHz. So, the 4 kHz could be anywhere from 2kHz to 8 kHz. I suggest dividing down VC1 and VC2 by the
max (16 each) which would give you 93.275kHz. This could be divided in the Counter8 to get 4kHz (or whatever is wanted).
Connect the CompareOut to RO0[0]. Then to Global Out Even (GOE) 0 and then to Port_0_0. Other ports might be used. I