I want to use the SPI of USCI_B to interface a RF Module and the UART of USCI_B for relaying information to the PC.
Can I use the DCO as a source for both the modules? Otherwise, what are my other options ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I want to use the SPI of USCI_B to interface a RF Module and the UART of USCI_B for relaying information to the PC.
Can I use the DCO as a source for both the modules? Otherwise, what are my other options ?
I assume 'UART of USCI_B' is a typo? USCI_B has no UART, only USCI_A. USCI_B has I2C instead.
USCI_A (UART or SPI) and USCI_B (I2C or SPI) have independent clock dividers and can calculate their baudrate form the same clock source. However, you do not select DCO directly. You can source the system-wide SMCLK signal by DCO and use SMCLK as clock source for the modules. See the clock selection bits in the register description in the USCI chapter of the users guide.
Note that you cannot use both, UART and SPI, on USCI_A (or I2C and SPI on USCI_B) simultaneously.
**Attention** This is a public forum