Hello
I'm working with a 28035 mcu and trying to set up the spi interface to work with DAC8555
It runs at 1 Mhz. It has 3 pins - DO (dataout), SYNC and CLK (clock).
I've set the 28035 up as follows:
28035 is master, character size is 12 bits.and the Dac8555 Data is clocked into the 24-bit input.
the master loaded the data into TX buffer and the transmit as follows:
SpiaRegs.SPITXBUF = (Value_To_Register & 0x00FFF000) >> 8;
SpiaRegs.SPITXBUF = (Value_To_Register & 0x00000FFF) << 4;
and the DAC8555 is Updated .
the problem happened if an interrupt occured ( i have adealy between the two Transmitted instructions) the Sync signal rise one clock time and Fall back, and the data not transmit correctly and the DAC doesn't updated.
i try to stop the by SPI SW RESET Bit and enable afeter loaded the tx fifo as follows:
SpiaRegs.SPICCR.bit.SPISWRESET = 0;
SpiaRegs.SPITXBUF = (Value_To_Register & 0x00FFF000) >> 8;
SpiaRegs.SPITXBUF = (Value_To_Register & 0x00000FFF) << 4;
SpiaRegs.SPICCR.bit.SPISWRESET = 1;
but the tx fifo buffer reset and no data transmittrd.
Can anyone help me how can i ensure transmitting the data , whether i have adealy between the data transmit?
Regards
Adel