There may be other issues, but your spi_Write function is calling SPI.transfer(data_byte), which sends one byte, but data_byte is type uint16_t, which is two bytes. You at least need to send both bytes of the data value. You might want to rename...
Hi,
I was just typing what @joepasquariello said..
A couple of other points you might want to look at:
- have you got the right SPI_MODE? The data sheet says it clocks the data on falling edge (SPI_MODE 1 or SPI_MODE2?)
- in loop you're...
Hello.
I have been trying to get this DAC80502-01 evaluation Board to output a signal other than zero.
https://www.digikey.co.uk/en/products/detail/texas-instruments/DAC80502-01EVM/22188397
In the the 8051 datasheet, it states that the CS pin...