# SPI (master) for PIC18F6680 (10Mhz 4xPLL)

#### weeb0

Joined Jun 13, 2005
5
Hi,

I have a questions regarding the connection to device (DAC) with the SPI protocol.

Often, I have to write to the device 2 times to get the correct Vout voltage of the DAC.

    SSPCON1           = 0x02;
SSPSTATbits.SSPEN = 0;