Page 1 of 1

DSP component output selection for I2C. Advise Please.

Posted: Thu Jan 30, 2025 8:03 pm
by canary_wharfe
Which component DSP Output should be used on the flowcode panel to prepare the output for sending out of a PIC's I2C hardware to an I2C outboard DAC. I need a DSP output icon on the flowcode panel (to finish off the DSP processing), then I plan to read the integer value from that output into a variable and then transmit the value of that variable on the I2C pins to the ext. DAC. When I look at the options available it looks like the correct component is the Output Digital [2D] but rather than guess I'd rather check from someone more knowledgeable.
It looks like the Output DAC [2D] component is for PICs with onboard DACs not for ext. DACS via I2C.
TIA.

Re: DSP component output selection for I2C. Advise Please.

Posted: Fri Jan 31, 2025 8:42 am
by medelec35
Hello.
The Output Digital should be what you are after, since it sets a variable with the DSP result.
The variable can then be used to control PWM (as in the case of the example), I2C, SPI, internal and external DAC etc.
There is an example of a frequency generator here

Re: DSP component output selection for I2C. Advise Please.

Posted: Fri Jan 31, 2025 10:05 am
by canary_wharfe
Once again Martin. Many thanks for the feedback :-)