When I started exploring PSoC4 I played a bit with generating a triangle wave. Made a concept for an "analog" triangle wave generator without any CPU intervention, and didn't develop the thing further. TimClock controls the frequency, and amplitude is dependent on frequency (probing the capacitor with the scope's probe affects the frequency slightly due to probe capacitance).