Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
Hi All,
I am using SCI for communication with the encoder.
Currently, after changing from the SCIC module to the SCID module, I am unable to change the baud rate.
After setting SCID to 115200 bps in sysconfig, I am trying to change it to 2.5 MHz with the following function.
EALLOW; // This is needed to write to EALLOW protected registers
ClkCfgRegs.LOSPCP.bit.LSPCLKDIV = 0; // change for SCI
EDIS; // This is needed to disable write to EALLOW protected registers
ScidRegs.SCIHBAUD.bit.BAUD = 0x00;
ScicRegs.SCILBAUD.bit.BAUD = 0x09; // 9 (0x0009) = 2,500,000bps
However, I cannot communicate with the encoder properly.
If I use ScicRegs instead of ScidRegs, the baud rate seems to change correctly.
Are there any settings needed to change from a SCIC module to a SCID module?
Also, are there any settings needed to change the baud rate?
Best Regards,
Ito