AnsweredAssumed Answered

SPI  Problem on ADSP-BF533 Ez-Kit Lite rev. 2.2

Question asked by EbuBad on Nov 30, 2010
Latest reply on Dec 6, 2010 by CraigG

Hey,

I cant see the SCK on P6 of Kite just 3.3V not clk, when running program.

and MOSI is nothing 2

Kind Regards.

 

 

 

#include <sys\exception.h>

#include <cdefBF533.h>

 

 

EX_INTERRUPT_HANDLER(spi_isr);

 

void Init_Interrupt(void);

 

void Init_SPI(void);

 

void main(void)

{

 

 

 

    Init_SPI();

    Init_Interrupt();

 

 

    while(1)

    {}

 

 

 

}

 

EX_INTERRUPT_HANDLER(spi_isr)

{

    *pSPI_TDBR=0x1010;

}

 

void Init_Interrupt(void){

 

 

    register_handler(ik_ivg9, spi_isr);

    *pSIC_IMASK = 0x00000000;//SIC_MASK_ALL;

 

}

 

void Init_SPI(void){

 

 

    *pSPI_CTL     &=  (~SPE);   

 

    *pSPI_FLG     |=  (FLS1|FLG1);

    *pSPI_BAUD = 6;

    *pSPI_CTL   =   MSTR | SIZE | CPOL ;

    asm("ssync;");

    *pSPI_CTL     |=  SPE;                    // enable SPI

    asm("ssync;");

}

Outcomes