AnsweredAssumed Answered

I need help for SPI connection MC56F8367

Question asked by Matis zanaboni on Mar 15, 2006
Latest reply on Mar 23, 2006 by Matis zanaboni
Hi all,
I'm trying to use the SPI port to connect the DSP with a "12bit spi DAC" (digital to analogic converter). The output of the DAC is read from the A/D  port on the DSP board.
The SPI is used as a simple transmitter, only the output line is used MOSI. I also use the CLOCK pin to comand the data synchronization. 
MISO isn't used.
The problem is that seems that the DSP don't write into the SPI.
I say this because I see, during the debug, that no data is inserted into the SPDTR register.
that's the simple code i used to try the SPI:
 byte smEnable = 0;
 byte smSndChr = 0;
 byte valAna   = 0;
 SM1_TComData Chr = 4000;
 word *valoreA;
 word valA = 0;
 valoreA = &valA;


 smEnable = SM1_Enable();
 for(;:smileywink: {
 smSndChr = SM1_SendChar(Chr);
 valAna = AD1_GetValue16(valoreA);
can somebody help me please ?