Hey Dani -
Im sitting here with the new PSoC 42xx board (Many thanks to Dewster for bringing this board to my attention - I havent been reading Cypress ypdate emails! ;-) and buzzing - Ok, even with years of development experience on PSoC (I am a certified Cypros - consultant on PSoC 1) this new (42xx) IC will take some study and mastering - but its so configurable and fast! - have played with it before, but missed its potential because it had loads of other crap on the development board - having it just as a chip one can play with allows experimentation, and removes the fear of destroying a £28 board (this one costs £3 and can be treated like an IC rather than a DK) (I spent more time on the PSoC 5 on that board messing with digital filters - a waste of time as I didn't know what I was doing ;-)
I have seen one 'theremin' project already using this part - but its a toy.. They are using the on-chip CapSense .. I am playing with constructing LC oscillators and configuring the IC to drive these, implementing PLL's in the chip, and 'turning' it into a dedicated theremin IC..
Already I can get CV output for 'pitch' and 'volume' antennas (these antennas have a healthy 60V P-P swing on them) - haven't used the Arm Cortex MCU yet, just some PLD blocks (to implement phase comparators and inverters) and PWM blocks, and have off-chip LC oscillators (much of the active stuff for these oscillators being implemented in the PSoC) to the antennas with these oscillators having voltage control nodes and being locked to internal references, so running in closed loop at fixed frequency..
Oh - theres a LONG way to go - its just been proof of concept, no linearity correction yet (my plan/hope is to use the PLL error signal and shape this with analogue, to allow the linearity to be shaped), and I have no idea about stability or phase noise or owt like that - it may come to nothing.. I really just wanted to see if I could implement the oscillators using the on-chip stuff... One lovely thing this part allows is one can gang pins together to increase drive current - so I can have a single pin with low capacitance as an input for the oscillator, and drive a hefty current into the inductor, and break this loop with another active I/O to allow inserting of the VC components! - The PLL gives a phase error signal used to lock the oscillators, but which can be taken and shaped in analogue, or accumulated and processed by the Arm - everything needed is there I think!
And the same stuff with a little modification makes a "normal" theremin, or a voltage controlled theremin.. I loved the PSoC 1, but this chip with its fast MCU and PLD's is a giant step forward.. Just wish they had better DAC's! (and I wish it had the switched capacitor block - the analogue on this chip is a little sparse).. But thats ok - a few analogue IC's, transistors and passives off-chip is no big deal - All the difficult-to-lay-out complex logic stuff for register switching and wave-shaping etc can easily go in the PSoC4 - dont even need external 4046 PLLs to get the type2 phase comparators, as I can implement these (and better) in the PSoC PLD's.
Fred.
I should just say that I am not using the board in its 'intended' way - I am not using the USB or bootloader - I have a separate PSoC programmer / debugger (an extra $70 if you dont have one), and am going direct to the PSoC 4 - I therefore cannot comment on how it behaves under bootloader... Personally I hate working via DK bootloaders, they just clutter available memory and one is dependent on them being right - I much prefer to be in complete control ;-)