I am a newbie when it comes to programming microcontrollers and I have a question on connecting the 56F8013 to a dac (digital analog converter) using the spi interface.
I want to connect the dsp to a "DAC121S101" 12-bit dac. The pin-connection is correct, I think:
MOSI -> Din
SCLK -> SCLK
GPIOB4 -> SYNC (like SS)
The input shift register of the dac has sixteen bits. The first two bits are "don`t cares" and the following two bits determine the mode of operation.
The contents of the serial input register are transferred to the dac register on the sixteenth falling edge of SCLK.
It is a 12-bit dac with a 16-bit shift register. I am using CodeWarrior with Processor Expert to configure the dsp.
How do I have to configure it when I only have 12-bits but need to send 16 falling edges. I am confused.
Solved! Go to Solution.