The Filter Wizard Blog - Cypress.com: Blog Posts He can be reached at filterwizard@cypress.com.]]> http://www.cypress.com/?id=2820 You wait for ages, then two come along at once http://www.cypress.com/?rID=72131 Two pieces out on the same day for you!  Firstly the promised Filter Wizard on getting AC voltage gain out of just resistors and capacitors.  Just a nichy little bit of network theory, but still a bit of fun as the winter draws in: http://www.analog-eetimes.com/en/ac-voltage-gain-using-just-resistors-and-capacitors.html?cmp_id=71&news_id=222904234.  And then the third part of the Class i amplifier series on EDN, for all you audio fans out there:  http://www.edn.com/design/consumer/4401234/The-Class-i-low-distortion-audio-output-stage--Part-3-.  Always happy to hear from you with suggestions for topics that I should cover in future articles.  Thinking of doing a regular active filter article next, with a little program for calculating component values for the Friend single-amplifier filter in lowpass notch and highpass notch forms, using preferred values but still getting good response accuracy.  Interesting?  Let me know.

 

 

]]>
Wed, 14 Nov 2012 06:55:33 -0600
Some Power Amplifier Wizardry in my spare time http://www.cypress.com/?rID=70953 Hello, Wizarders!  sorry that I haven't posted anything in a while.  Lots of other stuff going on.  If any of you are getting withdrawal symptoms for circuits and equations, though, why not check out EDN (http://www.edn.com/design/consumer/4398669/The-Class-i-low-distortion-audio-output-stage--Part-2- is part 2, which links back to part 1) for the first two parts of my four-parter on an audio power output stage I started designing a long time ago - before Cypress was founded, so that's when real dinosaurs still walked the Earth!  The last two parts will be along during the next month or so.

When I finally get round to building one of these again, I'm sure that PSoC will be a fantastic supervisory controller, with its flexible analog and programmable digital hardware.  This will allow the monitoring and calculation of temperatures, power dissipation levels, overload and operating points, built-in timers, power quality analysis, earth loop impedance measurement... so many useful things a great audio power amp might need.  If any of you out there are doing or have done any power amplifier supervisory stuff, check out PSoC3, and ping me if you have any questions.

After I've got over the shock of the beginning of the new quarter, my next published Filter Wizard article will likely be on circuits that generate voltage gain using only pure lumped resistors and capacitors.  Useful?  Don't know, but certainly unexpected!  best / Kendall

]]>
Fri, 19 Oct 2012 15:43:51 -0600
Truly linear phase filters - fixing that stopband phase flipping http://www.cypress.com/?rID=69267 For all of you who have been waiting patiently for the how-to-fix-it following the last Filter Wizard on linear phase not actually being phase response that fits onto a single straight line... here's how to fix it!  Well, a few ways, anyway. http://www.analog-eetimes.com/en/turn-linear-phase-into-truly-linear-phase.html?cmp_id=71&news_id=222903957.  Enjoy!

]]>
Mon, 17 Sep 2012 10:21:52 -0600
when FIRs flip your phase... http://www.cypress.com/?rID=68667 Here's something that passes most filter users by - the flipping of stopband phase in a FIR filter.  The first part of a two-parter Filter Wizard is now up on EETEu, go check it out!  http://www.analog-eetimes.com/en/how-linear-phase-filters-can-still-cause-phase-distortion.html?cmp_id=71&news_id=222903874.  A good demonstration of using PSoC Creator's Filter customizer as a tool to probe what goes on with your filters.  best / Kendall

]]>
Mon, 03 Sep 2012 03:24:52 -0600
IRSStible http://www.cypress.com/?rID=68161 Hello, consumers of my blog!  I just signed up for an RSS-to-email feed service (http://www.feedmyinbox.com) so that I can check out my daughter's science blog (http://sciencesponge.wordpress.com).  And it made me wonder, how many of you out there actually use an RSS feed reader to view my blog, and how many just use wa web browser?  Let me know!  best / Kendall

]]>
Thu, 23 Aug 2012 05:16:06 -0600
Bob Moog's Ladder of Success http://www.cypress.com/?rID=67917 I just posted another contribution to the PSoCaMorph project, the VCF: http://www.elektor-projects.com/contribution/psocamorph-architecture-3-the-vcf.12424.html.  OK, most of the components are not actually in a PSoC, but one of the PSoCs in the system will have its work cut out providing all the control signals.  For this project, I didn't want to use the DFB to do the waveform synthesis and "filtering without filtering" stuff.  I'd much rather use it to do some of the other effects, like chorus and reverb.  Ah, I suppose that means I'd better work out how to do that, then <g>.  Keep sending in all those comments and questions!  best / Kendall

]]>
Sat, 18 Aug 2012 11:02:59 -0600
More on waveform synthesis http://www.cypress.com/?rID=67647 The second Filter Wizard article on waveform synthesis schemes for the DFB is up on EE Times Europe now: http://www.analog-eetimes.com/en/more-direct-waveform-synthesis-mr-chebychev-helps-out.html?cmp_id=71&news_id=222903800.  In the article I mention polynomial evaluation stuff in passing, before using an alternative method.  But for quite a few applications, the DFB can be a good engine for rapid calculation of polynomials using Horner's method.  Provided the error bounds imposed by 24bit fixed-point arithmetic are appropriate, this is way faster than doing it in a CPU.  The iterative method is reminiscent of FIR filter execution and leverages the addressing ability of the DFB hardware.  In the end, for the music synthesis task, I opted for... but why give it away - go check out the article!  best / Kendall

]]>
Mon, 13 Aug 2012 04:48:02 -0600
PSoCaMorph upgraded to "in progress" at Elektor http://www.cypress.com/?rID=67336 Thanks to your votes (OK, and also to my design contributions <g>) the PSoCaMorph has been upgraded to "in progress" at http://www.elektor-projects.com/projects.  Still need people to start building these circuits and to address some of the practical physical issues.  Spend a lot of time over the weekend looking at aspects of the Voltage Controlled Filter.  Lots of external components, so it's going to need a dedicated circuit board.  Time to hit the Rolodex!  Keep the comments coming in.  best / Kendall

]]>
Mon, 06 Aug 2012 10:25:31 -0600
V-to-I converter and CCO core for the PSoCaMorph VCO http://www.cypress.com/?rID=67271 Just posted the next architecture installment over at the PSoCaMorph project page at http://www.elektor-projects.com/contribution/psocamorph-architecture-2-v-to-i-and-cco-core.12398.html.  I reckon that the basic VCO/CCO design could be very useful in a range of PSoC projects.  If all goes according to plan, the discharge reset time shouldn't be a factor in the voltage-frequency relationship.  I'll be interested to see just how fast it will run and how linear it is - it's another way to make a PLL FM demodulator, if it's linear enough.  Remember, check it out and vote for it.  There are some dev kits on offer for people who are serious about participating.  Next piece - the voltage-controlled filter.  I'm trembling with excitement myself, so goodness knows how you are all feeling  (-8b  best / Kendall

]]>
Fri, 03 Aug 2012 23:00:11 -0600
Control voltages and philosophy for the PSoCaMorph http://www.cypress.com/?rID=67078 I uploaded the first tranche of technical thinking about PSoCaMorph to the website http://www.elektor-projects.com/project/the-psocamorph.12269.html so you can now go and check that out.  Soon I'll put a description of the planned VCO core - it should be useful for other applications too.  After that comes the bit you (well some of you) have all been waiting for - the Voltage Controlled Filter.  OK, it's going to have quite a few external components because PSoC wasn't designed to do these continuously-controlled tasks.  But if you want to make a real oscillator and filter rather than do it all in the digital domain (next Filter Wizard on that out soon, by the way), this should be a good way to go.  I suspect that once the oscillator signal is filtered, though, we'll want to get into the digital domain.  That will happen through PSoC's delta-sigma ADC.  After that... well, I've started mulling over how one would do a credible chorus effect, to make it sound like you're using multiple not-quite-synchronized oscillators.  I think that's going to work better than making multiple actual oscillators, and trying to stop them locking to each other in ways you can't control.  There are some dev kits up for grabs for those of you that really do want to participate and contribute.  Probably a beer or two too, for those of you that actually get these circuits working and (a) can demonstrate them and (b) live somewhere I can get to easily!  best / Kendall

]]>
Tue, 31 Jul 2012 11:22:54 -0600
Digital waveform synthesis article http://www.cypress.com/?rID=66692 I've been thinking a lot about music synthesizers recently.  I reckon that you can do some really good work with PSoC3 and PSoC5.  I decided to split my researches up into analogue and digital pieces.  The first episode of my thoughts on digital wavwform synthesis can be found at http://www.analog-eetimes.com/en/direct-waveform-synthesis-using-filter-like-techniques.html?cmp_id=71&news_id=222903728.  In a couple of weeks I'll post the part with more detail on how to actually create these waveforms.  Later on in the year I hope to actually get the opportunity to produce working code examples!

Meanwhile, a retro analogue synth is full of all kinds of circuitry that demonstrates interesting design technique.  I'll be making some more contributions to the Elektor PSoCaMorph project soon (the Editor's name, but my idea).  I wanted to design a really good VCO to use as a master oscillator, and I think the basic circuit techniques are well worth deploying in other non-musical applications.  Check out http://www.elektor-projects.com/project/the-psocamorph.12269.html, sign up and register your vote!  Our lovely marketing department has agreed to make some development kits available to people who want to collaborate on bringing this project into being.  All for now!  best / Kendall

 

]]>
Tue, 24 Jul 2012 11:51:16 -0600
Taking a dim view of power factor http://www.cypress.com/?rID=43867 We all treasure those "light-bulb moments', eh?  Let's hope that our heads get more efficient in future, when LED lighting enters the affordable mainstream.  I recently found out about Cypress's entry into this arena (check out http://www.cypress.com/?id=2495).  It's exciting, and should help to drive down the cost of LED lighting.

We have several reference designs; some incorporate power factor correction (PFC) and some are compatible with dimming systems but currently we don't have a design with both.  Someone mentioned that another supplier had gone to great lengths (and cost, and board area) to do this, so why didn't we?  PFC is not mandatory for devices that consume this level of power.  But wouldn't it be more "good citizen" to include PFC in our dimmable designs, to take advantage of the cleaner input current waveform, despite the costs?  Well, incorporating PFC into a dimmable LED light bulb is less valuable than you'd think.

It's true that poor load power factor causes significant extra wasted energy in the infrastructure that connects you to your electricity supplier.  I studied this in brain-hurting detail when I looked at how to use the new PSoC3 and PSoC5 devices in smart electricity meter applications.  Clarifying the misinformation about this out there on the web is worth an entire long article on its own!  But, to stay on-topic for today's blog, it's important to know that a major contributor to the "dirtyness" of the current drawn by many homes and offices is... the traditional light dimmer.  People often ask for dimmability in a modern LED bulb, and consider that the ultimate LED bulb would be both dimmable and PFC'd.  Let me tell you why I think that could be a waste of time and effort.

It's simple.  Whatever load you attach to a conventional triac-based dimmer (the vast majority of dimmers out there), the average current is controlled by switching off the current flow after a certain percentage of the AC cycle has occurred.  The resulting "spiky" current has a power factor that degrades dramatically as the dimming effect kicks in.  It's only an empirical observation, backed up by some informal canvassing, but a great many modern homes, particularly in the US, seem to have lighting installations comprising a multitude of very bright bulbs that are consequently run "very dim" by turning the dimmers most of the way down.

As a result, the otherwise perfect power factor of the ubiquitous filament bulb is competely squandered by the phase-angle dimming technique.  And it shouldn't be much of a surprise that replacing the filament bulbs with PFC'd LED bulbs will make no difference to the power factor.  You'll still be causing the power utility's transformers and cabling to get hotter than would be expected from the actual billable wattage you're consuming (which will be reduced by using the LED lamps, obviously).  The ideal situation would be to rip out all these triac-based lighting dimmers and replace them with a much more intelligent solution to lighting level management (ideally using PFC'd bulbs).  If you're going to keep these dimmers, then for sure you need a dimmable light bulb design, but you definitely don't need a PFC'd design. 

So, not much about filters this week, then.  Just a cautionary tale about not getting over-excited about solutions to non-problems - a message I could sometimes do with contemplating myself in the filter world...  Happy illuminating! 

Best - Kendall

]]>
Fri, 13 Apr 2012 08:25:59 -0600
"...Wiz pleazhure!" http://www.cypress.com/?rID=60289 Have you seen "The Artist"?  A wonderful film, about (plot spoiler alert) a silent film star in denial about the benefits that sound can bring to his beloved medium.  And at long last, the Filter Wizard leaps from the textual world of blogging and articles into the new "You ain't seen nuthin' yet!" world of the narrated educast:

http://www.eetimes.com/electrical-engineers/education-training/courses/4237731/Wizard-Filters-for-all-using-the-built-in-hardware-digital-filter-in-a-programmable-SoC

It's really too short a piece to carry any in-depth (or even in-shallow) technical perspective, but it was fun to do, and whetted my appetite for other forays into this format.  Let me know what you think!  best / Kendall

]]>
Sun, 11 Mar 2012 12:05:09 -0600
The dial-a-null method of FIR filter design, part 2 http://www.cypress.com/?rID=60190 Go on, admit it, you've been gnawing your fingernails down to the quick, waiting for the resolution of this pair of FIR filter articles.  Well, gnawing time is over!  You can read the second part on

http://www.analog-eetimes.com/en/now-synthesize-your-fir-filters-using-high-school-algebra.html?cmp_id=71&news_id=222903141

and see just how easy it can be to make an FIR filter that has notches where you want them to be, not scattered randomly by some mystery filter design process.  Check out my 'null hypothesis'!  best / Kendall

]]>
Wed, 07 Mar 2012 20:33:45 -0600
I have detailed files... http://www.cypress.com/?rID=59689 At last!  If you look a little down and to the right from this message, you should see the 'pod' that contains a link to my library.  I'll be lodging pdf versions of all my Filter Wizard articles there.  More importantly, if there are associated spreadsheets, simulations and programs, I'll put those there too (yell, if something's missing).  I've had lots of requests for printable or e-readable versions of these articles. so here they are!  And please stop and look round the Cypress site as well.  If you haven't already installed PsoC Creator 2.0, do that and have a test drive.  The new Filter component produces complete designs even with no hardware attached.  Give me some feedback, and I'll pass it on to the team.  PSoC3 and PSoC5 are fabulous enough already, with excellent  ADCs and bersatile programmable digital and analog blocks.  The embedded digital filtering is a 'sleeping giant' of extra capability; if your project requires you to dig into a noisy world and pick out a small critical signal (Power Line comms is an area I'm working on at the moment, for instance), there might be no better single-chip solution for you on the market.  OK, end of marketing pitch!  Keep filtering / best / Kendall

]]>
Fri, 24 Feb 2012 10:47:34 -0600
Dig deeper into those FIR filter coefficient values http://www.cypress.com/?rID=59344 Hello Filter fans!  Ever wondered what's going on behind the set of numbers that defines an FIR filter?  Well, you can read all about it - or rather, you can read half about it - in my latest Filter Wizard piece:

http://www.analog-eetimes.com/en/analyze-fir-filters-using-high-school-algebra.html?cmp_id=71&news_id=222903041

Dust off that high school algebra about polynomials and start digging!  The second part will be along in a few weeks' time!  best - Kendall

]]>
Wed, 15 Feb 2012 16:57:55 -0600
Component Pack 1 for PSoC Creator 2.0 - with the new Filter component! http://www.cypress.com/?rID=58710 At last!  The first Component Pack for PSoC Creator 2.0 (which you really should be using if you haven't upgraded yet).  No code changes, just some great new components.  Main thing I'm excited about it the new Filter component, which now supports IIR filters, and custom coefficient entry.  It's had a lot of detail work done to it on the FIR side as well.  It's not the last word in filter design software - not enough time and resources to achieve that lofty goal  But it's pretty good in some respects - and your feedback can make it even better in future releases.  So, go get it, try it out, let me know the good and bad things about it.  best / Kendall

]]>
Mon, 30 Jan 2012 17:40:45 -0600
Filter Wizard posting on prediction and negative-delay filters http://www.cypress.com/?rID=58414 Did you know that you can make filters with negative delay?  Check out my latest article at http://www.analog-eetimes.com/en/prediction-and-negative-delay-filters-five-things-you-should-know.html?cmp_id=71&news_id=222902919 to see how it's done.  There are a couple of screenshots from the forthcoming Filter component for PSoC Creator too.  Enjoy, and as always, send me your feedback!  best - Kendall

]]>
Wed, 18 Jan 2012 11:27:20 -0600
Filter Wizard articles for 2012 - cast your vote (or make a suggestion!) http://www.cypress.com/?rID=58001 Happy New Year, filter fans!

I'm fleshing out some topics for the Filter Wizard articles that I publish on EE Times Europe (http://www.electronics-eetimes.com/en/News/filter-wizard.html).  Why not tell me which of these seem the most interesting or relevant to you, and I'll see if I can arrange my schedule around them.  Or let me know what else you'd like me to write about.  The "Five things you should know about" format of the last one proved popular and I may adopt that for many other pieces.  Here's a list of some things I'm looking at:

Delay - time, phase and group.  What is it, what gets delayed, how to create filters with zero or even negative group delay (at some frequencies) and why you'd want to.

AC line interference - approaches to filtering it out (if you couldn't stop it getting in).  The "dial-a-notch" method of FIR filter design.

Ninety degrees of separation - quadrature: how to get it and where you use it

Waveform distortion - big deal or no deal? What information is there in a waveform, and what damage might different types of filters do?

Electrical energy measurement: how good do the ADCs need to be? Can we use just one ADC and get good results on reactive loads?  How custom filters help here.

The new PSoC Creator Filter component using the DFB - now does IIR filters too, with pole ordering for best SNR, and direct access to the optimized coefficients.  Out beginning of February.

So - give each of these a score 0 to 5 and send the result to filterwizard@cypress.com.  And let me know what else I should be writing about - theoretical or practical.  My deadline for the first article of the year is approaching fast, so get slewing!  best - Kendall

]]>
Sun, 08 Jan 2012 11:52:04 -0600
'Simultaneous' sampling with a single ADC http://www.cypress.com/?rID=54152  Just published the latest Filter Wizard column.  It's based on work I did at Cypress on a super-high precision electricity meter based on PSoC3.  If you are ever bothered by the interchannel time delay in a system with a single multiplexed ADC, check it out!

http://www.analog-europe.com/en/sample-multiple-channels-simultaneously-with-a-single-adc.html?cmp_id=71&news_id=222902424

]]>
Mon, 12 Sep 2011 07:04:17 -0600
Filtering the ripple off a 180V bias line. Impossible? No, PSoCable! http://www.cypress.com/?rID=50981  Here's a great way to use a couple of spare PSoC3 op-amps to do something I bet you thought you couldn't do: reduce the ripple level on a 180V bias voltage (or indeed, any voltage you want, + or -) by a cool 60dB.  So, not only is PSoC3 useful as a supervisor in solid-state power amps, but you can do some great stuff in tube amps as well!

http://www.analog-eetimes.com/en/a-fast-settling-bias-voltage-filter-with-high-ripple-rejection.html?cmp_id=71&news_id=222901909

Oh, and for another trick to help reduce the size of low-frequency gain rolloff caps in compact audio circuits, see my article in Linear Audio (www.linearaudio.net ; you actually have to pay money for it and get a paper version, how retro!  But well worth it.)

Keep on filtering!

 

 

]]>
Wed, 04 May 2011 07:03:02 -0600
Don't let your filter design package throw your bits away! http://www.cypress.com/?rID=50463 When customers discover the Digital Filter Block in PSoC3 and PSoC5, they sometimes ask if they can import their own filter coefficients.  Because we've been updating the FILT component in PSoC Creator to give it IIR filter capability in the next release, I've been taking a look at the tools people use to create IIR digital filters.  And quite frankly, it's not a pretty sight!  All the digital filter design environments I've seen so far seem to have come into existence without any contact with someone who has to design and manufacture good filters as a "day job".

If you've ever designed a high order analog active filter from a cascade of 'biquad' sections, you'll probably have discovered how important it is both to get those sections in the right order and to get the individual gains set properly.  It's the only way to avoid premature overload (sometimes hard to detect when it occurs internally) and excessive build-up of noise.

It seems like many digital filter designers are unaware that the issues of hidden overload and noise build-up apply just as much to digital IIR filter cascades as they do to analog filters.  In fact, although the output noise power of an analog filter falls with reducing cutoff frequency, that of a digital filter actually increases!  It's to do with the magnification of the inevitable quantization of the filter calculations, and I'll put a Filter Wizard piece out on the web on that soon.

These days, the presumption is that you'll have enough spare bits both above and below your working dynamic range that you can completely ignore this.  But these bits aren't free, either in area or power consumption.  In practical, commercially viable systems, you often have to push the hardware you can afford close to its theoretical limits to get the job done.  The PSoC3/5 DFB is a 24bit fixed-point engine, but you should still use such capacity wisely to have a chance of achieving respectable performance in your application.

So, I've put a lot of effort into ensuring that the IIR filters that the next Creator FILT component will generate are carefully sequenced and gain-adjusted to get the best (or close to the best, at least!) dynamic range possible, for any given response shape and cut-off frequency.  Low-frequency filters in particular benefit from this.  Internal safety margins are set to permit the worst case digital input signals - signals that are highly unlikely to originate from any physical system through a sampling process.  DC offset buildup - sometimes a problem with carelessly implemented IIR filter code - has been eliminated.  So, if you want to use any of the IIR filter types that we'll be supporting in the next release, please do use the Creator internal routines to do the design.  Don't assume that because you paid $10k for the math package you use, that it will do a better job - because it quite possibly won't!

]]>
Wed, 20 Apr 2011 05:15:27 -0600
Audio on PSoC3 - slowly filtering through... http://www.cypress.com/?rID=48952  Our Blogmeister has been ever so cross with me for failing to post to the Filter Wizard blog for so long. Mea Culpa, but life and work have been taking so much of my bandwidth in the last few months. Now, though, my move over to our group in San Diego is sorted out, and I can try to catch up!

As usual, both audio and filtering matters have been keeping me occupied during those precious hours when I can actually get some work done. We're pressing ahead with some great audio stuff on PSoC3, and at CES several customers demonstrated devices built on our platform that will launch this year.
 
Particularly exciting is the audio signal processing which we’re developing in conjunction with a highly regarded audio algorithm consultancy. They've done a fantastic job so far, especially on the professional quality low frequency filter topology that runs on our Digital Filter Block. It's been my experience in the past that merchant microcontroller companies have misunderstood and underestimated the quality level required by the audio market (and the passions aroused by audio quality issues in general). I'm really hoping that Cypress can become not just an alternative to the "usual suspects" in this space, but can set new standards for the audio quality that's possible from a multi-purpose SoC.
 
So, if you're waiting for - or want to be - the Next Big Thing in Audio, maybe you should contact your usual Cypress channel and let them know what you're thinking. Or use my email address. Perhaps we can help!
]]>
Sun, 20 Feb 2011 19:06:13 -0600
PSoC3 will rock as an audio power amp supervisory device! http://www.cypress.com/?rID=46934 Sorry to have been away from my blog for so long! I hope you've been following my Filter Wizard articles at EE Times Europe (http://www.eetimes.eu/en/News/filter-wizard.html). Before long, you'll get to see actual implementations of some of these filters on PSoC, as I hope to have access to a proper lab again to do the measurements.

Meanwhile, for the last few days I've been in San Francisco at the 129th Convention of the Audio Engineering Society, catching up with the latest technology and product trends in high quality and professional audio. Seeing the wide spread of equipment on show at the associated exhibition brought home just how useful our new PSoC3 devices will be in this space. Of course, all the micro guys can do a mix of buttons, lights and displays. But the programmable digital hardware of PSoC3 will give it a real edge for people who are doing custom signal and control interfaces, which abound in pro audio.

Audio amplification has always been a favourite subject of mine, and I'm also struck by what a good supervisory and control processor for amplifiers that PSoC3 will make. The flexible analogue capability can be deployed for voltage and current monitoring (of the amp and the psu), power device safe area protection and thermal management, and control of internal bias currents and voltages. Novel switchmode and hybrid power supply architectures can be developed and optimized for the particular application. Programmable logic enables no-code protection interlocks, and you can use the CAN bus to form a network between multiple amplifiers to ensure synchronized performance in high channel count systems. And for many applications, the audio signal processing, routing and management possible with UDB and DFB support will be more than sufficient.

All in all, I think this is a really exciting application and close to my heart, and I hope many of you out there will take up your DVK and your copy of PSoC Creator and develop something wonderful in the audio amplifier space!

]]>
Mon, 08 Nov 2010 08:19:25 -0600
Out of the old shall come forth newness! http://www.cypress.com/?rID=44821 PSoC3 is rapidly becoming a platform supporting complete, robust solutions in many industrial, medical and consumer end-equipment areas.  More and more, I'm becoming convinced that the tightly-integrated combination of  highly programmable silicon and powerful graphical realization tool represents nothing less than a new paradigm in the  development of analog and "mixed signal" circuit design.  I know that this sounds like marketing hype; well, one easy way for you to reach your own conclusion is to get hold of a development kit, download the tools and see what you can create.
 
There's a bit of a but in there, though.  It's easy to get carried away with the "whole new world" message about the new way of doing things making the entire existing infrastructure and methodology obsolete.  But that's taking things a  bit far.  What is really exciting for me is seeing tried and trusted methods implemented in a fresh new way on this new  programmable platform.  The understanding of managing analogue signals, in time, frequency and other domains, isn't somehow made redundant by new implementation strategies.  I have a wall full of classic filter and electronics design textbooks from the last 50 years.  The content of these books hasn't been made obsolete by PSoC3; if anything, the ease  of "what if?" design has made me crack open books that I haven't read in any detail for decades.  Having a brand new playground within PSoC3 means that some of these forgotten techniques from the golden years of analogue can  be brought to a new generation of engineers who will have missed out on them through modern college courses.
 
So I'm going to make a special attempt to support and mentor applications guys within Cypress. help them to bring some of these great classical techniques out in the form of application notes and complete solutions.  They'll show just  what can be done with a tightly-argued interconnection of good analogue blocks, combined with powerful logic and digital signal processing.  So, PSoC3 might be just what you need to discover new (but old!) techniques that can make your electronic design work interesting again!  best - Kendall
]]>
Wed, 21 Jul 2010 07:59:37 -0600
PSoC3 - a PieSe of Cake? http://www.cypress.com/?rID=44543 Someone said to me recently that PSoc Creator's comprehensive library of 'virtual components', running atop PSoC3's flexible and high performance analogue blocks, makes design so easy that there's hardly anything to do except connect power and switch on.  Tongue-in-cheek, of course!  Every day, though, we see more examples of just how much easier the new PSoC design paradigm makes it, for engineers of all abilities.  Software engineers who were previously uncomfortable with analogue signal processing find PSoC a de-stressing experience.  And us older analogue guys are getting just as much of a buzz out of implementing many 'classic' signal conditioning techniques, often with a new twist enabled by the closely coupled microcontroller or the programmable logic arrays.

But that comment also took me back to when I was a young, green engineer, designing an antialiasing filter module for a particular customer.  It turned out that the customer also needed some gain in the signal path.  "No problem, boss!", I said, "I can incorporate that in the filter".  "Kendall," he replied, "you don't understand.  That's his job.  He's got to be able to contribute something to the project or he'll get the sack".  The particular moral of that story, brought up to date, is that when you design something with PSoC3, you should really try to do something yourself, rather than just take a completely engineered example circuit provided by us (or by one of your colleagues).

And sometimes, the idea that every single component can be internal to the device is too good to be true.  I've designed quite a few active filters to run on PSoC3's analogue blocks, and they require a sprinkling of external passive components - something extra for you to add, that might differentiate your solution from someone else's.  Just recently, I've spread my wings a little, thinking what cool things could be done if you allowed for instance one external transistor.  Now that transistors are available in such tiny packages (SOT-1123 is the smallest I've seen so far, at 1x0.6mm), they take up negligible extra space and cost.  So I'm thinking of running a little 'just add one transistor" contest, to see what people can come up with.  OK, and a two transistor one as well...

And in a funny way, that's why PSoC3 is related to cake, and not just by the daft pun in the blog title.  Take the classic marketing tale of Betty Crocker cake mixes.  They got far greater engagement from their customers when they adjusted the mix formulation so that you needed to complete it by the addition of an egg.  If the whole thing came out of a packet, housewives felt rather disenfranchised from their cooking territory.  So, I'm a great fan of designing things where it's almost all done for you, but you still need to flex a few brain cells to actually get it to work out.  You actually feel like you've done something then.

My daughter gave me another example that came right out of left field.  Making a cake out of cake mix (with or without an egg) is somehow rather conventional in comparison.  Why not make your cake - or your next electronic product - out of something completely unexpected.  Meet the Ice Cream Muffin:

Ingredients: one tub of good ice cream, any flavour you want; same-sized tub of self-raising flour

Method: soften ice-cream slightly; beat in flour until mixture is smooth; bake in a medium oven until cooked.

Just as easy as a cake mix, more 'programmable', more interesting, less expected... The moral: PSoC3 might well be a solution to your problem, even if at first glance the packet seems to say something completely different.  Right, now I'm going to bake some Caramel Chew-Chew muffins for the PSoC3 team!  Happy PieSe-of-Caking - Kendall

]]>
Tue, 13 Jul 2010 17:36:30 -0600
The ups and downs of socio-technical networking http://www.cypress.com/?rID=44408 Last Sunday, in the spirit of celebrating the continuing success of the great leap forward taken by America's Founding Fathers 334 years ago, my wife and I enjoyed a pleasant cocktail outside a hotel in Central London.  In the bright sunshine, I inadvertently texted a message intended for our daughter to my Twitter short code, so it went to my TheFilterGuy stream on Twitter.  I realized straight away (the reaction time not having yet been curtailed by the cocktail), and used the Twitter app on the iPhone to delete the offending (but not offensive!) message from the timeline.

However, human-scale reaction times are just no match for the propagation behaviour of modern social networks.  You can delete something from the Twitter public timeline, but Google seems to cache the timeline dynamically, so what you typed will get 'crawled' eventually.  Sure enough, next morning my deleted mis-Tweet turned up both as a Google Alert and in a LinkedIn summary emailed to my wife... how embarrassing!  Of course, it could have been much worse; I could have been exchanging personal information, or confidential trade secrets.  Check before you click!

But there's definitely an upside.  I get a buzz from helping people to solve their difficult signal management problems, and it's encouraging to reflect on how easy it is these days for us to bounce questions and answers around.  If you have a question on filter or system design, there are many ways for you to punch that question right through to my beloved iPhone.  Of course, everyone has some limitation to their bandwidth, I can't give an instant answer to every question.  But it's often really quick and easy to point people in the right direction with a short email; it doesn't take a magnum opus.  So, don't be shy - if you're stuck on some filtering task, drop me a line, on Twitter, or LinkedIn, or email (filterwizard at cypress dot com).  My response time will probably be inversely proportional to the interestingness of your question - the Bandwidth Theorem at work again, maybe!  Always happy to get subject requests for my Filter Wizard column as well.

Right, now back to the lovely pseudobandpass filter I'm designing for the front end of a PSoC3 solution which replaces an old chip that just suddenly became hard to get.  I can remember the days when component stores took up half a factory... now, you just need a few tubes of PSoC devices and a good "capsule wardrobe" of basic passives, diodes and transistors.  Maybe it's time to have your own "Independence Day" moment!  best - Kendall

]]>
Tue, 06 Jul 2010 06:12:48 -0600
Tyred and motional: what a truck told me about frequency synthesis http://www.cypress.com/?rID=44207 Driving down to the seaside with my family this weekend, we passed an old Land Rover that had been 'pimped up' with wide tyres.  Though the wheel arches has been stretched a little, the outsides of the tyres still extended several inches further out than the vehicle body.  That's not permitted in the UK.  It's dangerous for pedestrians or cyclists who might be badly injured by the fast-moving tyre tread "because", as I said to my family, expectant as they were to hear my reasoning, "the top part of the tyre is moving with twice the forward velocity of the vehicle as a whole".

My family were skeptical about this claim, and demanded further explanation.  With calculus off-limits in a car full of artists, and the simultaneous requirement to concentrate on the driving, I think I pulled it off - but I decided not to push my luck by setting any homework questions...

Reflecting on this later, I realized that, with a periodic modulation of the tyre tread, the frequency at which tread blocks are passing a particular point in space is being frequency-modulated, and with a unit modulation index.  The tread blocks in contact with the asphalt aren't moving at all relative to it, while the ones at the topmost part of the tyre are passing at twice the rate that an unrolled piece of tyre tread strapped to the car would do.  The tread blocks travel an approximately cycloidal path; points on the tyre's sidewall that are closer to the axis travel on a smoother curve (a curtate cycloid) that tends towards being a sinewave as you get nearer to the axis.

Does this have a PSoC3 connection?  Well, there's some interest in creating quadrature clock oscillators using the Digital Filter Block.  This will use a well-known technique - see for instance Lyons - but I'm interested in adapting the technique so that the processor can actually run on the varying clock that it creates.  Looking back on my weekend tyre experience, I now see that the equations that fall out of that look very like the parametric equations for a cycloid.  This tells us how to modify the process to correct the modulation non-linearity.

So next time you see a beat-up old truck doing something unusual on the highway, ask yourself - what does this tell me about my project?  Happy treading!  best - Kendall

]]>
Sun, 27 Jun 2010 16:48:34 -0600
Getting animated about sampling http://www.cypress.com/?rID=43986 I just got back from a screening of the 1963 film 'Jason and the Argonauts', introduced by Ray Harryhausen himself.  90 this week, Harryhausen was a leading exponent of stop-frame animation, and influential on countless filmmakers since.

When combining stop-frame animation with live performance, the live footage is back-projected a frame at a time behind the animated models.  Their small incremental movements are rephotographed together with the 'live' backdrop.  When the resulting shots are played back, you get the illusion of animated models 'acting' in perfect sync with the live cast of the movie.

As I was watching this, it occurred to me that there are significant parallels between this sort of approach and the common use of sampled data techniques in signal processing these days.  The 'live' footage is obtained by sampling the analogue dynamics of the actors at typically 24 frames per second.  When it's replayed in the cinema, our persistence of vision acts as a lowpass reconstruction filter.  We don't see the jerkiness of the sudden shot-to-shot changes, just an impression of the original dynamics (falsified occasionally by aliasing, but that's another story...).

We can do the same sort of thing in a mixed-signal processing engine like PSoC3.  The example that came to my mind was creating a little digital synthesiser to 'play along' with an incoming audio signal.  Imagine singing into a microphone which is driving PSoC3's main ADC, set to sample your analogue warblings (Bernard Herrmann's great score for the film, perhaps?) at say 48kHz/16bit.  We can make a little programmable digital oscillator running on the Digital Filter Block, combined with some envelope shaping and a little 70's synth-rock filter.  For the 20.8us that each input sample is sitting there - the equivalent of the film frame - the program running on PSoC3 is acting as a little stop-motion animator, making numerous small changes to parameters of another new sound.

Then we mix them together and send them back out - perhaps up the USB interface to your PC where you're re-recording this.  The result - a live actor (you) and a stop-motion skeleton with a sharp sword and a bad attitude (well, here's hoping the synth sounds that good), acting together in perfect sync!

Think about what other cool things you can do with PSoC3 that are  analogous (or should that be digitalogous?) to Ray Harryhausen's masterful animation.  Happy sampling! - Kendall

]]>
Mon, 21 Jun 2010 05:22:28 -0600
Music to my ears http://www.cypress.com/?rID=43672 Phew, just finished a draft of another article highlighting something wonderful that we can do with PSoC3.  So it's time to sit back with a refreshing mug of Earl Grey tea (decaffeinated, of course, to help me decompress) and listen to some cool tunes playing through the hifi system in my office.  What's the connection?  Well, it's how I'm listening to those cool tunes: through a small board sporting a PSoC3 and an audio DAC/ADC, plugged into a USB port on my laptop, and I'm playing out USB audio into my Behringer powered speakers.  And very nice it sounds too!  Yes, folks, you heard it here first - PSoC3 does USB audio!  And not just telephony grade, sample-loss-be-darned audio like other microcontroller solutions are limited to.  This is real hifi, with PSoC3 synthesizing an exact, USB-synchronized, low-jitter master clock for the DAC/ADC for either 44.1ksps or 48ksps sample rates, from our standard crystal clock.  It's bidirectional, so you can simultaneously record into the PC if you want.

It's the result of a lot of work from the A-team (A for Audio, natch), including some Universal Digital Block magic from my Cypress co-blogger PSoC Sensei.  We're still cleaning up the PSoC Creator components for public consumption, so they won't be part of the distributed software for a while.  But eventually, you'll be able to drag-and-drop USB audio into your Creator schematics as easily as an op-amp or a NAND gate.  Is that cool, or what?

Next step is to get the built-in Digital Filter Block integrated and enabled.  We've got a 10-band-per-channel stereo graphic equalizer (yes, Old School, I know...) running, and it looks like we should be able to double the band count.  I got that general biquad ordering algorithm working that I blogged about last time.  So I'm looking forward to doing some high-order arbitrary bandpass filters for the comms applications people are asking about.  I'm also quite stimulated by a request from a correspondent who's trying to do a massively parallel bank of very narrow bandpass filters and detectors.  So much to do, so little time.  Actually, that can't be true, because little times imply large bandwidth, and I certainly don't have enough of that!

Oh, and we now have an email address: filterwizard@cypress.com gets you straight through (subject to our spam filters, of course).  Happy Filtering! - Kendall

]]>
Fri, 04 Jun 2010 11:44:47 -0600
Order, Order, Order! http://www.cypress.com/?rID=43492 How exciting!  My very own Cypress blog.  I was just thinking how I didn't have enough work to do... not!  Just kidding - it's going to be fun, sharing stuff that's a bit more directly useful to the growing band of devotees of Cypress's latest PSoC3 and PSoC5 products.  My regular "Filter Wizard" articles on the EETimes network of sites and newsletters (such as Planet Analog) usually steer clear of direct references to what you can do with Cypress products, and I'll still be writing those general articles when I can. My next one is overdue (sorry, Paul) but we need to kick-start this new channel, so here I am.  I'm getting involved in many filtering, signal conditioning and audio projects with PSoC3, so there will be plenty to talk about.

If you've already started working with our graphical design tool PSoC Creator, you may know that we're already supporting FIR digital filters running on the embedded Digital Filter Block found within some models in the PSoC3 and PSoC5 family.  People regularly ask us when we'll have support for some other filter types, IIR being top of their list.  Well, we're working on providing some tools for that, of course.  But meanwhile, a few of us here get to design these filters one by one, for the applications that already benefit from them.  And the results from some of the IIR filter design tools out there (both free and expensive!) leave a whole lot to be desired.  One of my current projects needed a pretty sharp lowpass filter with good phase linearity in the audio band, so I dug up an ancient analogue design I'd done years ago, as an exercise in conversion.

Filter Wizard article readers may have spotted that I'm a fan of the bilinear transform method for migrating good old s-domain analogue transfer functions into z-domain digital ones.  A significant benefit of this approach used on a cascade of biquad sections is that the cumulative amplitude responses at the successive outputs of the biquads is preserved (allowing for the frequency 'warping', of course).  So, if you take a well-designed analogue transfer function that has been optimized to get the best dynamic range out of a cascade of analogue sections, it usually transforms into a digital design of close-to-optimum performance.

And this is the reason for my witty and amusing blog title (yeah, right - Ed.).  For it's the order of the poles and zeroes, and also the stage-by-stage gain scaling factors, that determine how much of the cascaded filter's dynamic range potential is available.  The frequency-dependent feedback built into a second order filter section has a magnifying effect on the internal noise created by that filter, whether it comes from an op-amp's input stage or from the truncation of numerical results after all that multiply/accumulating has been done.

I sort of 'cracked' this problem years ago for analogue filters when they used to be my 'day job'.  Basically you need to make sure that the signal level in the passband never gets either too big (you'll overload early) or too small (the gain needed to make this up boosts the nose as well).  Given all the poles and zeroes in a transfer function, there's generally a best arrangement which minimizes the output noise with respect to the maximum undistorted signal level.  There are some subtle differences working with standard digital biquads, and I'm looking at adapting the method to work under these conditions.  So I spent much of this morning cranking add-on functions to an old program of mine that contains code dating back over twenty years... no point in reinventing the wheel when all that's needed is a slightly different hub-cap, eh?

If I can get these tools easy enough to use (if you can get them working, you mean - Ed.), I might make them available to you on a case-by-case basis before our proper DFB support is ready.  If you're designing a PSoC3- (or PSoC5-) based system and you think you need some particularly good or critical digital filters, send your comments and requests through to... well, this column is so new that it doesn't have an email address yet, but I'm sure it soon will, and then you can use it!

That's all for this week.  Keep filtering!  best - Kendall

]]>
Fri, 28 May 2010 11:33:46 -0600