[quote user="sachin bankoti"]i have few question initially, 1)-IN slave microcontroller msp432 I will explain a little about this, but my advice will be to read the Technical Reference Manual to learn more about it and to see more detailed descriptions. This is one of the best tools there is for learning about our MSP devices along with the datasheet ; links to both of these can be found on the part's homepage . EUSCI_B0->CTLW0 |= EUSCI_B_CTLW0_SSEL__ACLK; // ACLK EUSCI_B0->BRW = 0x01; // /2,fBitClock = fBRCLK/(UCBRx+1). EUSCI_B0->CTLW0 &= ~EUSCI_B_CTLW0_SWRST;// Initialize USCI state machine EUSCI_B0->IE |= EUSCI_B_IE_RXIE; // Enable USCI_B0 RX interrupt what is the use of BRW ? How much to divide the input clock by. (bit clock prescaler). The bit clock is ACLK in this case, and it does not need prescaling, so it is divided by one (1). 2)- If i simply want to send a data (0x01) from msp430 to msp 432,( considering any port pin )what changes i gonna make in slave side referring to this example(msp432p401x_euscib0_spi_10)? I think your question is too vague. There are many things you can choose to do with the value received on the slave side depending on your application needs. To be more specific though, I would say you could create a variable in which to store EUSCI_B0->RXBUF into instead of just passing it back to the TXBUF as the example does (line 126). Maybe create a while loop in the end of the main and remove line 101 so that the device doesn't sleep on exit of the ISR. Then do some processing on the variable inside of that while loop to turn on or off some LEDs or something simple like this to start with and then just let your imagination take you from there. [/quote] My answers are added in red above. Hopefully this is helpful to you. Goodluck!
↧