/microchip_formu_code_to_ask

Phaser effect based on the Microchip's dsPIC33FJ128GP802 Digital Signal Controller

Primary LanguageCGNU General Public License v2.0GPL-2.0

dspic-phaser-effect (not working yet, under developement)

Phaser effect based on the Microchip's dsPIC33FJ128GP802 Digital Signal Controller

Project block diagram:

project block diagram

How to compile and run

  1. Clone this project
  2. Rename this project's folder from "dspic-phaser-effect" to "dspic-phaser-effect.X"
  3. Open it with MPLAB X
  4. If it does not compile already, right-click on the project name -> properties -> Conf:[default] -> XC16-> xc16-ld -> in "Additional options:" put the string: "--library "dsp""

Why does it not work?

The phase shifter block requires a VERY FAST atan2() function implementation that works using the Q1.15 fixed point format. Unfortunately all the implementations I found around the web of this function aren't fast enouth: The time used to compute atan2() is longer than 1/(36.423529KHz)s that is the period between a sample and the next one.

Project board:

project board

Digital board front:

Digital board front

Digital board back:

Digital board back

Digital board design:

Digital board design

Analog board front:

Analog board front

Analog board back:

Analog board back

Analog board design:

Analog board design

Digital board power regulator front:

Digital board power regulator front

Digital board power regulator back:

Digital board power regulator back

Analog circuitry for the ADC:

analog circuitry for the ADC

Analog circuitry for the DAC:

analog circuitry for the DAC