Severson-Group / AMDS

Voltage and Current Sense Board
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Mainboard firmware #10

Closed npetersen2 closed 3 years ago

npetersen2 commented 4 years ago

This PR implements the Mainboard firmware running on the STM32 processor. This interfaces to the eight daughter cards (via four SPI lines). Every two DCs are configured to use SPI in a daisy chain fashion.

The ADC samples are then processed in the MCU (filtered, etc). Finally, they are streamed back to the AMDC.

npetersen2 commented 3 years ago

@elsevers @ngadiyar93 @ASHAD1 @GnomeTek Please review this PR and approve it. This PR adds the firmware support for the REV A mainboard. I have tested it thoroughly and have been using it for a few months down in B330B to run the ac homopolar motor.

The only change from this PR is the Mainboard/Firmware/ folder. Feel free to review the code, but it won't make sense without understanding the hardware architecture, interconnects to AMDC, and AMDC FPGA firmware... Yes, we need an overarching doc which explains how this thing works, but I propose we do that in another PR.