This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mbed.h" | |
SPI spi(p5, p6, p7); // mosi, miso, sclk | |
DigitalOut cs(p8); | |
int main() { | |
// Chip must be deselected | |
cs = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mbed.h" | |
SPI spi(p5, p6, p7); // mosi, miso, sclk | |
DigitalOut cs(p8); //SYNC* pin labeled as cs | |
DigitalOut LDAC(p9); //LDAC* pin | |
DigitalOut CLR(p10); //CLR* pin | |
DigitalOut Reset(p11); //Reset* pin | |
void write(char reg1, char reg2, char reg3); | |
void setup_DAC(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mbed.h" | |
SPI spi(p5, p6, p7); // mosi, miso, sclk | |
DigitalOut cs(p8); //SYNC* pin labeled as cs | |
DigitalOut LDAC(p9); //LDAC* pin | |
DigitalOut CLR(p10); //CLR* pin | |
DigitalOut Reset(p11); //Reset* pin | |
extern "C" void mbed_reset(); | |
void write(char reg1, char reg2, char reg3); | |
void setup_DAC(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mbed.h" | |
SPI spi(p5, p6, p7); // mosi, miso, sclk | |
DigitalOut cs(p8); //SYNC* pin labeled as cs | |
DigitalOut LDAC(p9); //LDAC* pin | |
DigitalOut CLR(p10); //CLR* pin | |
DigitalOut Reset(p11); //Reset* pin | |
void write(char reg1, char reg2, char reg3); | |
void setup_DAC(); |