I apologize for the English, do not speak so play me use "google translator".
Are you really using an RTOS (Real-Time Operating System) for PSoC 1?
Do you use a development Kit? Which one??
Can you post the complete project, so that we all can have a look at? To do so: use Designer -> File -> Archive Project and then attach the resulting archive. (do NOT use chrome, there is a problem with attached files)
Probably the settings for Port2 which is to select the tone to play is not correct. <When you use a switch connected to V+ the port should have drive pull down. Now the port is defined as strong which is an output port.
bob thanks for helping, but if you change the configuration of port 2 does not work on a separate project the probe Generator Speeds and works well, the problem is I think the RTOS tine to do with the watch, I will continue trying.
In the global resource window, chip editor, set your OpAmp Bias and A Buff Power
Is it correct to say you are updating DAC at 16 Khz rate via RTOS ?
Also listening to DAC output, not a direct connection to speaker I hope.
Sould be a Hi Z load.
Also I do not see where you set the period of the timer, and in its global properties window
you have its period set to 1 ? Is that what you want, the RTOS time slot ISR to run at 16 Khz ?
Lastly the 32 Khz clk varies from 15 to 64 Khz, unless derived from a crystal. Thats a huge variation
in sample rate to DAC if former.
I apologize for the English,
first: why did you put the values right global resources on high? Does that change anything?
Yes, if you look at CT blocks they are all affected by bias, and the column output buffer
that drives pins. It affects GBW of the amps, and CM range and drive capability. Shown
in respective module datasheet and device datasheet, in the case of the buffer.
I would try two tests -
1) Flip a pin to test the jitter in the RTOS time slot ISR, that way you can see
if the sample rate of an event, like DAC update, will be constant.
2) Create a sine table, and use that to output to DAC. Then look at its waveform
to see if you can draw any conclusions about distortion source.
to close the post, and found the problem, which only serves this template programs that take less than 125u seconds and check my program and takes longer for that does not work, if someone else will use,
thank you for helping me, but sometimes it can be annoying for the language that I do not understand well, and do not have much knowledge I like to participate in this forum and contribute what little they have.