DSP component output selection for I2C. Advise Please.

For general Flowcode discussion that does not belong in the other sections.
Post Reply
canary_wharfe
Posts: 86
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 3:54 pm
Has thanked: 6 times
Been thanked: 11 times

DSP component output selection for I2C. Advise Please.

Post 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.

medelec35
Matrix Staff
Posts: 1805
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 602 times
Been thanked: 598 times

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

Post 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
Martin

canary_wharfe
Posts: 86
Joined: Thu Dec 10, 2020 3:54 pm
Has thanked: 6 times
Been thanked: 11 times

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

Post by canary_wharfe »

Once again Martin. Many thanks for the feedback :-)

Post Reply