Other Parts Discussed in Thread: TMS320F28335, DAC8568
Hi!
I am using the SPI interface of my TMS320F28335 for use the external DAC8568.
The package is 32 bit length:

For send data I have to write the 16 bit register SpiaRegs.SPITXBUF for for two times consequentially.
As in the screen shot, the format of the package is:
'xxxxxxxxxxxxYYYYYYYYYYYYYYYYxxxx'
So this package is splitted in two, the 16 bit registers format are:
'xxxxxxxxxxxxYYYY' 'YYYYYYYYYYYYxxxx'
where the 'x' mean command/control bit and the 'Y' mean the output value of the DAC: all 0 mean 0V and all 1 mean 5V.
I would like a smart way to change the 'Y' bit only, for change directly the output voltage.
Thank you very much!
Alessandro