Dear Mr Hooman Hashemi After Power on we are using this code for enabling the external crystal we are using 5 Mhz crystal as the input clock P4OUT&=~SEN; ////Chip Select __delay_cycles(100);/// 6 us delay SPI_WRITE(0x1F); ////// Addressing the first page SPI_WRITE(0x00); __delay_cycles(100); /////6 us delay P4OUT|=SEN; //////Chip deselect __delay_cycles(100);/// 6 us delay P4OUT&=~SEN; ////Chip Select __delay_cycles(100);/// 6 us delay SPI_WRITE(0x00); /// writing the first register to enable the external crystal SPI_WRITE(0x28); __delay_cycles(100); /////6 us delay P4OUT|=SEN; //////Chip deselect __delay_cycles(1000000); 6.2 Milliseconds delay After this code there is no spi communication between the AFE and the Micro controller when we probe on the crystal there is no oscillation pls let us know that we are sending the correct sequence , is there any power up sequence that we need to go through before issuing the commands with regards Gokul
↧