PIC32MX: SPI DAC
From Mech
Original Assignment
Do not erase this section!
Your assignment is to interface to the SPI MCP4921 digital to analog converter (DAC).
Overview
The goal was to communicate via SPI communications protocol with a 10bit Digital to Analog converter. We were never able to get the PIC to even send data.
Circuit
Include a schematic and give any part numbers. A photo of your circuit is OK, but not as a replacement for a schematic.
Code
Where possible, make it a single piece of well-commented cut-and-pastable code, or at least make each function that way, so others can easily copy it. Most comments should be in the code itself; outside the code (on the wiki) should only be explanatory comments that are too cumbersome to include in the code.