Yeah, here it goes. This is the proof of concept version, meanwhile I improved it a little bit, turned SSMux into a switch which is "transparent" and therefore no more jitter from sync with HFCLK, but that version is still too convoluted to publish.
i am interrested in this last version code posted from Njay. It generates a triangle wave. It was built with PSOC 4 can you please help me built it for PSOC 5. I have tried without success.
When i built the program i received this messages:
Signal "Net_2176" is expected to connect to only one GPIO analog pin but instead it connects to "\IDAC8_1:viDAC8\". Please fix the connection.
AMuxHW (Hardware Amux) only supports controlled analog connections to GPIOs. Please make sure all the controlled analog connections are connected to GPIOs.
Thank you for replying.
I assume you started a new project in order to remove all PSOC 4
related component stuff. Can you post that project and forum will take
a look at it. I assume it also will have boot loadable setup removed
One other issue, unlike a table driven approach Njays approach requires
AGC in the loop to get a fixed amplitude signal. You could differentiate the
ramp and use that in an AGC loop that controls a FET as a variable R to
implement AGC. So there is more complexity than immeadiately apparent
in the design. Food for thought.