Hi:
I'm using F28377D ,when i setup SCIA to CPU2,I found ClkCfgRegs.LOSPCP.bit.LSPCLKDIV is 0 not 2 by default,and SCI Baud is not correct.How can i know what the LSPCLK frequency is ?? Thank you !
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.
Hi:
I'm using F28377D ,when i setup SCIA to CPU2,I found ClkCfgRegs.LOSPCP.bit.LSPCLKDIV is 0 not 2 by default,and SCI Baud is not correct.How can i know what the LSPCLK frequency is ?? Thank you !
Hi,
"Table 2-164. LOSPCP Register Field Descriptions" in device TRM has the info about this. About default value, are you checking the value after reset or after running the code. It could be possible that some function has changed this value. I would also suggest that you write the required value in this register instead of assuming default value.
Regards,
Vivek Singh
Hi Vivek:
EALLOW;
ClkCfgRegs.LOSPCP.bit.LSPCLKDIV = 2;
EDIS;
Hi,
This register is by default accessible by CPU1 only. To access it from CPU2, you need to change the semaphore state. Please refer section "2.12.13.1 Clock Configuration Semaphore" of device TRM for more detail.
Regards,
Vivek Singh