My First Working Audio DSP Prototype - Page 1
Forum section: electronics / general

author: diyaudio
author_rank: Frequent Contributor
timestamp: November 11, 2015, 09:53:28 am
content: In 2014 I asked this question on the forumhttps://www.eevblog.com/forum/microcontrollers/anyone-work-with-sharc-processors/Today, I finally made progress booting up not one, but two SHARC prototype boards, with only minor PCB errors here and there.The learning path was VERY steep (I grossly underestimated the engineering effort involved, a trap for young players!), none the less I still accepted the challenge,the high level path I follow looked something like this.1) Select a good Audio DSP platform, Analogue Devices SHARC was my obvious choice, and oh boy was this better said than done, lots of things had to be considered such as, hardware/software tooling cost, very small support community on the platform, scarcity of example code (other than BSP code), reading lots of SHARC datasheets (good quality datasheets might I add)2) Learn Altium Designer and have the board manufactured by Seed Studio (Thanks Dave for pushing me in this direction with choosing Altium )3) Next, read tons of SHARC DSP datasheets.After doing all that....1) I designed a custom board using a 2nd generation SHARC2) Ordered parts,3) Waited 1.5 months for the board from Seed to arrive. (in the mean time read more datasheets)4) Prayed and hoped I didnt make critical mistakes, prayed I don't goof up with the soldering, spent another 2 weeks pulling my hair out trying to get the Analog Devices CrossCore IDE to work with my clone JTAG, that took some effort.5) Write a custom flash driver to get the DSP kernel firmware code into the flash.(this is required to boot the processor)Bang! after some niggles against all odds it work!!!, I was never so happy to see a LED flash from an I/O port ! the code running was both in processor emulation mode with the JTAG connected and working by downloading the kernel flash firmware into the spi flash.I didn't even bother to do FFT or FIR test to verify, just a simple hello world led flash..The design shows a 200MHz DSP capable of- 8-channels of individual pipeline processing (up to 192KHz @ 24bit)- 16MB of flash- Capability to swop out a DAC/MCU control daughter board.- takes a jtag emulatorThis project will probably in the long run find its way into my car and function as a 8-channel audio processor. In the mean time I have a DAC/MCU board to design.

author: diyaudio
author_rank: Frequent Contributor
timestamp: November 11, 2015, 10:06:10 am
content: Board Assembly

author: Kalvin
author_rank: Super Contributor
timestamp: November 11, 2015, 12:55:21 pm
content: Excellent work!

author: MT
author_rank: Super Contributor
timestamp: November 11, 2015, 01:39:28 pm
content: Well done! Nice Board!In earlier thread you asked quote:QuoteAs an example among many you might take brief peek at:http://www.fairlight.com.au/They do all the signal processing on FPGA's.Well at least they used to!Whether or not is faster then a SHARK i dunno.http://newsroom.altera.com/press-releases/altera-fpga-replaces-64-dsp-devices-in-fairlights-new-media-processing-engine.printhttp://fairlightinstruments.com.au/cc1_brochure.pdfI think Peter Vogel is using a CC1 for his remake of the Fairlight CMIII/II.http://petervogelinstruments.com.au/

author: TJ232
author_rank: Frequent Contributor
timestamp: November 11, 2015, 02:06:05 pm
content: Quote from: blueskull on November 11, 2015, 01:48:12 pmWow, great project!

author: diyaudio
author_rank: Frequent Contributor
timestamp: November 11, 2015, 02:32:58 pm
content: Thanks for the response people.Parts arrived today to start the design of a multichannel audio board.DAC: PCM3168APAP (both a ADC/DAC onboard)http://www.ti.com/lit/ds/symlink/pcm3168a.pdfhttp://www.ti.com/product/pcm3168aORADChttps://www.cirrus.com/en/products/wm8782.htmlhttps://www.cirrus.com/en/pubs/proDatasheet/WM8782_v4.7.pdf+DAChttp://www.esstech.com/files/4014/4095/2155/SABRE9006A_PB_v0.4_140916.pdfMain Control MCU??Any Flavour will do. Even your mama`s ArduinoThis is going to be a rather interesting design challenge, as I never worked on a design like this but the gist of it is should be simple.

author: diyaudio
author_rank: Frequent Contributor
timestamp: November 11, 2015, 02:38:26 pm
content: Quote from: blueskull on November 11, 2015, 02:35:18 pmI unpacked one chip did some inspection.Yes they are, I got them directly from Texas Instruments (sampled), no way im paying $$ for a personal R&D project.

author: diyaudio
author_rank: Frequent Contributor
timestamp: November 11, 2015, 02:47:58 pm
content: Quote from: blueskull on November 11, 2015, 01:48:12 pmHiYou should have much better advantage over me... in China Blackfins are very common fixed point dsp processors, BF-5XX ? unless im mistaken ? In fact the guy who set me up with the tools is from opendsp big Chinese community. (I own a small BF533 board, I never found a project to use it in) was thinking simple computer vision stuff but not even I have that much time to burn??I agree the area is very grey with lots of diligence it can be mastered, Honestly AD has very nice software tools, documentation is very minimal and much to the point, going through all the EE-XX documents helps tremendously!!

author: diyaudio
author_rank: Frequent Contributor
timestamp: November 11, 2015, 02:56:36 pm
content: Quote from: blueskull on November 11, 2015, 02:19:45 pmNice, have you had a look at XMOS usb receiver offerings ?Im busy waiting on some coilcraft sealed smd coils for my dc-dc converter. as im pushing the limits of using a LDO, these 2nd SHARC processors are far from energy efficient compared to todays stuff with recorded current of 200mA. that's with no dsp processing and the PLL running at 150MHz

author: diyaudio
author_rank: Frequent Contributor
timestamp: November 11, 2015, 03:08:50 pm
content: Quote from: MT on November 11, 2015, 01:39:28 pmThanks,I too think FPGA and SHARC DSP`s have alot of overlap in some areas, but then this showed at my door 3 months ago and its a freaking beast!! let me say that again..its a FREAKING BEAST see attachment.http://www.analog.com/en/products/processors-dsp/sharc/adsp-sc589.htmlAnalog Devices was like "say hello to my little friend"Dual SHARC+ Core Infrastructure:450 MHz (2.7GFLOPS) per core5Mbits/640KB L1 memory/core with parityOptional cache/SRAM mode32-bit, 40-bit & 64-bit floating point supportARM Core Infrastructure:450 MHz ARM Cortex-A5 (with Neon/FPU)32kByte/32kByte L1 Instr./Data Cache256kByte L2 CacheShared System Memory256KB L2 SRAM with ECC protectionUp to Two High Speed Memory ControllersDDR3-900, DDR2-800 & LPDDR (16-bit)Advanced Hardware AcceleratorsFFT/iFFT (18 GFLOPS, 5usec per 1K-pt FFT)FIR/IIR and SINC Filters, ASRCSecurity Crypto Engines with OTPPackaging19mm x 19mm BGA (0.8mm pitch)Commercial, Industrial & AutomotiveKey Connectivity & Interfaces:2x Ethernet MACOne Gigabit (RGMII) and one 10/100 (RMII)With IEEE-1588 & AVB support (QoS & clock recovery)2x USB2.0 HS OTG/Device Controllers (MAC/PHY)2x CAN2.0SD/SDIO/MMC/eMMC (with SDXC support)PCIe2.0 (1 lane) (SC589 only)Up to 8 Full SPORT interfaces (w/ TDM & I2S modes)S/PDIF Tx/Rx, 8x ASRC pairs, PCG2x Dual-SPI and 1x QuadSPI (w/ direct execution)3x I2C and 3x UARTs (w/ Flow Control)Enhanced Parallel Peripheral InterfaceFor video I/O or parallel converter interface2x Link Ports (bi-directional, 8-bit, up to 150MB/sec)3x Enhanced PWM, ADC Control Module (ACM)8x GP Timer, 1x GP Counter, WDT and RTCUp to 102 GPIO (mux’ed w/ other interfaces)8-ch 12-bit 1MSPS Housekeeping ADCThermal SensorThey went from having hardly any peripherals in their 4-gen SHARCS to an arsenal of peripherals..I will be using this primary for doing research involving room correction stuff, this is early silicon release, the new processors will be shipping mid next year.

author: Marco
author_rank: Super Contributor
timestamp: November 11, 2015, 03:25:04 pm
content: Quote from: blueskull on November 11, 2015, 03:03:12 pmWhy not the other way around by the way? XMOS is essentialy a DSP too (single cycle MAC and bit reversed addressing).

author: Kalvin
author_rank: Super Contributor
timestamp: November 11, 2015, 06:35:17 pm
content: At one point I was very interested in ADSP-21369 / ADSP-21469. The eval board costs around 500+ euros (about 590+ us dollars). Fortunately I learned that the the development tools were locked to the eval board before I committed to buy one. Then, I found out about XMOS and ordered inexpensive eval kit. I have also TI eval kit for their F28377S DSP controllers. The XMOS and TI are still in their shipping packages, though. Anyway, both the XMOS and F28377S are suitable for the real-time audio signal processing, for example. The XMOS seems to be more audio oriented where as the F28377S is more control and power-systems oriented DSP. Both XMOS and F28377S are quite inexpensive compared to the processing power and on-chip memory provided.

author: Marco
author_rank: Super Contributor
timestamp: November 11, 2015, 07:21:30 pm
content: Quote from: Kalvin on November 11, 2015, 06:35:17 pmHey, an affordable DSP dev kit without sudden death of dev tools, cool.

author: Kalvin
author_rank: Super Contributor
timestamp: November 11, 2015, 07:41:34 pm
content: Quote from: Marco on November 11, 2015, 07:21:30 pmFor the USD 30 the price of the kit is pretty much right.The XMOS starter kit costs USD 15 which can be considered affordable, too. The XMOS starter kit has an entry level, general purpose XMOS device, but still very powerful for real-time audio and digital signal processing.

author: diyaudio
author_rank: Frequent Contributor
timestamp: November 11, 2015, 07:48:28 pm
content: Quote from: Kalvin on November 11, 2015, 06:35:17 pmLast time, I checked the the evaluation debug agent can program custom boards, the issue is legally the licence a agreement prohibits commercial development , also the main difference is that supplied debug agent doesn't come with a plastic housing case (that's obvious) and it doesn't have a input protection on the communication lines. so theoretically its not meant for production.Here is a tear-down of my ICE-100 emulator clone, its capable of programming the latest generation I was told...however a small hardware/firmware mod is required to make the clone support the latest generation SHARC/Blackfins (I think its just a firmware update). Also my clone only works with CCESS 1.0.1 and any version of visual dsp++ (without the firmware update) but so does the original.. I like CCES because its eclipse based, there is no disputing why eclipse is better.The attachment shows an invisible marking on the front end, its a NXP chip (forgot the number) that handles signal front end protection for the jtag a Blackfin and some spi flash memory that's it, I paid $400 2 years ago for this with a black-fin 533 board with lots of AD DSP material.

author: Bassman59
author_rank: Super Contributor
timestamp: November 12, 2015, 04:44:34 pm
content: Quote from: Kalvin on November 11, 2015, 07:41:34 pmso I checked!http://www.ti.com/tool/LAUNCHXL-F28377SAnd there's this note: "Special Note:Due to the high-demand of the Delfino F28377S LaunchPad, all new orders will be subject to a 4 week lead-time."I am going to get one, just because.-a

author: Kalvin
author_rank: Super Contributor
timestamp: November 12, 2015, 06:10:03 pm
content: Quote from: Bassman59 on November 12, 2015, 04:44:34 pmJust checked Digikey and there are 100+ available. I ordered one some time ago as I had some other stuff coming from Digikey anyway.

author: MT
author_rank: Super Contributor
timestamp: November 12, 2015, 06:58:36 pm
content: Interesting, lot of bananas in C28! Is Code composer the only tool for C28, it seams there is xx days limit then purchase! No?CCS free unlimited compile levels with XDS100? Farnell have 74 dev boards in stock.. But chip pricing seams to hideous expensive!

author: marcopolo
author_rank: Regular Contributor
timestamp: November 13, 2015, 02:27:03 pm
content: @diyaudioI bought several ADI products from this seller in UK at very good price:http://www.ebay.co.uk/sch/Business-Office-Industrial-/12576/m.html?item=221917118177&hash=item33ab4a7ee1%3Ag%3AdLsAAOSw2XFUiiZk&_ssn=colscoobSome of the last boards I bought:- 21489 EZ-KIT- BF548 EZ-KIT- HPPCI JTAGAll work like a charmHe currently sells a BF561 EZ-KIT (Dual core blackfin) for £45 (64€)http://www.ebay.co.uk/itm/ANALOG-DEVICES-ADDS-BF561-EZ-KIT-LITE-EVALUATION-BOARD-ADI-VISUALDSP-rev-1-3-/221931347667and4 PCI JTAG Emulator £75 (106€) each (work with Blackfin andSharc)http://www.ebay.co.uk/itm/ANALOG-DEVICES-ADI-ADDS-HPPCI-ICE-JTAG-EMULATOR-FOR-DSP-With-PCI-Card-/221917118177Marc

author: diyaudio
author_rank: Frequent Contributor
timestamp: November 13, 2015, 05:12:32 pm
content: Quote from: marcopolo on November 13, 2015, 02:27:03 pmwow thanks man, nice findI doubt I will be buying anything soon again (have enough projects to keep me busy for the whole of 2016), I hit the ceiling with my DSP hardware budget, this is very tempting though

author: marcopolo
author_rank: Regular Contributor
timestamp: November 13, 2015, 05:27:06 pm
content: Quote from: diyaudio on November 13, 2015, 05:12:32 pmI'm like you, enough projects to keep me busy for the next ten years, but when I see a good deal, I can't resist.Marc

author: rsjsouza
author_rank: Super Contributor
timestamp: November 13, 2015, 08:06:48 pm
content: Quote from: MT on November 12, 2015, 06:58:36 pmCCS can be used for free forever (no time limit, no performance limit, no code size limit) with a XDS100 JTAG debugger on any of their products - i.e., their DSPs and ARM processors (C28x included).