This commit is contained in:
alan
2019-05-06 14:58:27 +08:00
parent db9d36046a
commit c9872a6ce9
@@ -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