Its a project to program a DSPIC33EV256gm106, with another identical DSPIC. One master (DSPIC A) and a Slave (DSPIC B)
DSPIC ( A) , send the instruction to the DSPIC B to read a sensor using a ADC port (Analog value), and send the data to the DSPIC A. The communication must be SPI between DSPIC´s.
According to the value of the sensor (0-5V), the DSPIC A must modulate a PWM. Where 0V is 0% and 5V is 100% of the Duty Cycle.
The DSPIC A, also must send the sensor received data to the UART to see the data at the PC (serial comm).