diyAudio (
-   Solid State (
-   -   CPLD vs. uC for PGA2310 (

ajm8372 20th January 2004 02:18 AM

CPLD vs. uC for PGA2310
I have seen several threads here about the PGA2310 and it seems like most people are using a microcontroller to control it. What are some advantages the micro has over a CPLD? I am asking because I am much more familiar with CPLDs and have access to software. I know the CPLD would require an external clock. I am guessing a 100kHz clock would do fine for the PGA and whatever other controls I include. Would this clock cause any interference with the rest of my analog circuitry?

blu_line 20th January 2004 05:09 AM

cpld vs uc
What is more easy for you !
I am quite familiar with C and VHDl/Verilog and i do not see a real difficulty in both.
Since i also connected an LCD i used a micro-controller, easier to store text and such !



ajm8372 20th January 2004 12:20 PM

Yea I was thinking I may have to include either an NVRAM or flash to store some of the charachters and volume configurations. I would like for the preamp to retrieve the previous volume configuration when it starts up.

blu_line 20th January 2004 05:49 PM

go for the uc
i think this will give you a bit more flexibility !
And if you need a kick start........... i can help !



azira 20th January 2004 06:18 PM

I say CPLD... if you're going basic functions, uCPU if you want to start doing more fancy stuff.

But 10 lines of VHDL in your CPLD (for debouncing switches and sending the signal to your PGA) will be 100 lines of code in a uCPU.

Either way you'll want an analog gnd and a digital gnd. Your digital gnd should be a seperate point that is connected to your analog gnd with one wire... decouple your digital logic to your digital gnd too.

daatkins 20th January 2004 06:26 PM

I use a Xilinx XC9572XL CPLD to control three PGA2310s. There's an up/down switch to increment or decrement the data that's put on the SPI bus and I also put in a two second power-up delay to drive the anti-thump relays.

There's a couple of pics and a scope trace of the SPI in this thread:

Let me know if you'd like the source code (VHDL).

Nice one,

ajm8372 20th January 2004 10:40 PM

going with CPLD...
It looks like I will go with a CPLD then. It helps that I use VHDL very often at my job and have access to all of the Altera programming software/hardware. If I ever get into anything more advanced (adding IR remote or something..) i will take a harder look at the micro.

Thanks for all the help!

All times are GMT. The time now is 11:59 AM.

vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright 1999-2017 diyAudio

Content Relevant URLs by vBSEO 3.3.2