I need help regarding my project in which I have to interface 12 bit parallel DAC IC (AD767 DATA SHEET ATTACHED) to my arduino uno.
it use atleast 13 pins from arduino UNO to write data on DAC IC. The data is from sensor and uno reads it Using its 10 bit ADC. the data is then processed and will be written on 12 digital pins connected with DAC.
Now the main issue is how i can write and integer value or float value (data after processing) to 12 digital pins ?
also if i use spi interface (mosi, miso, sck) pins to program my arduino then can i use these pins for writing data on dac because uno only have 13 diigital pins?
No all the analogue pins can also be used so your Uno has 20 digital pins. You forgot pin zero.
how i can write and integer value or float value
Forget floating point, that is meaningless in this context. To write an integer you need to use direct port addressing, and split the integer into two parts because the ports are only 8 bits wide. You split it up using and operations as well as shift operations.
can also use DAC with SPI , I2C but then have to work on that to figure out the the one we require.
That will actually depend on what you are trying to do with it, that is how fast it needs to work.
Direct connection in parallel is the fastest, followed by SPI and finally I2C plods on behind.
But that chip you posted the data sheet to can’t work with SPI or I2C.