Audio DSP solution manual query
Moderator: Benj
-
- Posts: 13
- Joined: Wed Jun 05, 2019 9:57 am
- Has thanked: 7 times
- Been thanked: 2 times
- Contact:
Audio DSP solution manual query
I have been attempting to simulate program 1 on the Audio DSP solution manual and ran into a few problems, Could anybody answer a few of these issues. On the ‘SPI_Init’ macro there is a component called SPI Legacy which I cannot find in the component list on Flowcode. In addition the flow block chart for two macros, ‘Write_DAC’ and ‘Read_ADC’ are not provided and I can’t figure out how to code them based on the description. Could somebody provide help with this?
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Audio DSP solution manual query
Hi,
The SPI Legacy should be replaced with SPI Master, which is the latest SPI component.
There are also new components for the DSP Boards in Flowcode 8, so using these avoids the direct calls to the SPI Master.
I've attached a sample of DSP use with the latest components and also the exported macros for ‘Write_DAC’ and ‘Read_ADC’ if you still want to use the direct SPI calls.
The SPI Legacy should be replaced with SPI Master, which is the latest SPI component.
There are also new components for the DSP Boards in Flowcode 8, so using these avoids the direct calls to the SPI Master.
I've attached a sample of DSP use with the latest components and also the exported macros for ‘Write_DAC’ and ‘Read_ADC’ if you still want to use the direct SPI calls.
- Attachments
-
- Write_DAC.fcm
- (1.58 KiB) Downloaded 170 times
-
- Read_ADC.fcm
- (1.65 KiB) Downloaded 165 times
-
- 1. DSP Audio Through.fcfx
- (17.55 KiB) Downloaded 179 times
-
- Posts: 13
- Joined: Wed Jun 05, 2019 9:57 am
- Has thanked: 7 times
- Been thanked: 2 times
- Contact:
Re: Audio DSP solution manual query
Hi Leigh,
Thanks for your reply it has been very helpful. Unfortunately however I am having issues opening the 'Write_DAC' and 'Read_ADC' files, as .fcm files can't be opened from Flowcode. To solve this problem I changed the format of the files to .fcfx from properties in file explorer after downloading them. When I attempted to open them from Flowcode it failed, giving me a message saying "No child block".
Thanks for your reply it has been very helpful. Unfortunately however I am having issues opening the 'Write_DAC' and 'Read_ADC' files, as .fcm files can't be opened from Flowcode. To solve this problem I changed the format of the files to .fcfx from properties in file explorer after downloading them. When I attempted to open them from Flowcode it failed, giving me a message saying "No child block".
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Audio DSP solution manual query
Hi Aidan,
Extensions that are .fcm are Flowcode Macros.
You will need to go to the Macros menu and select Import....
Extensions that are .fcm are Flowcode Macros.
You will need to go to the Macros menu and select Import....
Martin