test DAC
This commit is contained in:
+3
@@ -273,6 +273,9 @@ static void DAC_outputV(uint16_t DACin) {
|
||||
spi_DACtxbuf[i] = 0;
|
||||
}
|
||||
|
||||
spi_DACtxbuf[0] = DACin;
|
||||
spi_DACtxbuf[1] = (DACin << 8) & 0xFF00;
|
||||
|
||||
PIN_setOutputValue(pin_handle, DAC_CS, 0); // DAC_CS LOW
|
||||
ZM_spi_transaction(SPI_DAC_SIZE, spi_DACtxbuf, spi_rxbuf);
|
||||
PIN_setOutputValue(pin_handle, DAC_CS, 1); // DAC_CS HIGH
|
||||
|
||||
Reference in New Issue
Block a user