Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hello!
I am having issues with the sci_echoback_cpu01 example in C2000Ware. As mentioned in this post, the actual baud rate is 4800 as opposed to 9600 as written in the comments section. I understand that I need to change the LSPCLK divider to get the desired baud rate (along with the SCIHBAUD and SCILBAUD). I am unsure about how and where to define the LSPCLK divider select. I tried adding the following lines of code after the GPIO_SetupPinOptions() function in the example (Example_2837xDSci_Echoback.c):
EALLOW; ClkCfgRegs.LOSPCP.bit.LSPCLKDIV = 3; EDIS;
However, the deafult value of 0x00000002 does not change when I view the corresponding register value while running the code. It does not seem to matter what value I specify for the LSPCLKDIV, but the default value remains. I speculate that it is being reset to the default value somewhere else in the code, but I do not know where. I want LSPCLK to provide 50 MHz, so I can use SCIHBAUD = 0x00 and SCILBAUD = 0x02, and get a baud rate of 2000000.
My questions:
- Where in the project do I specify the LSPCLK divider value?
- Are there a limited number of options for the LSPCLK divider select? If yes, what are they?
- Is the above code correct for configuring the LSPCLK divider select?
- Is there anything else I need to configure? If yes, where and how?
- Where can I find more details about the configurations of SCI for this microcontroller (or similar ones)?
Following is a snapshot of my code:
