Question
Need help No SPI Signal output
Posted on March 05, 2014 at 05:37
Something wrong with dspi ?
I have try debug with code for spi output signal with dspi module, it's not running. need some advidethis my code init :void initDSPI(void){ SIU.ISEL2.R = 0x0; DSPI_B.MCR.R = 0x80010000; // Configure DSPI_B as master DSPI_B.CTAR0.R = 0x78003255;; // Configure CTAR0 //DSPI_B.MCR.B.HALT = 0x0; // Exit HALT mode: go from STOPPED to RUNNING state SIU.PCR102.R = 0x0600; // DSPI_B_SCK SIU.PCR103.R = 0x0500; // DSPI_B_SIN SIU.PCR104.R = 0x0600; // DSPI_B_SOUT SIU.PCR105.R = 0x0600; // DSPI_B_PCS[0]}and this one is code function, it's call in main program :uint8_t EEPROM_WRITE_CMD(uint8_t cCmd, uint8_t cData){ uint8_t iloop; if(cCmd == 1){ EEPROM_CS = EEPROM_ON; DSPI_B.PUSHR.R = 0x08010000 | cData; for(iloop=0;iloop<0xFF;iloop++); EEPROM_CS = EEPROM_OFF; return 0; } return 1;}thank youWaivut J.