Hi expert,
My customer is using F280025 for a power module, and their customer use different baud rate and they have to achieve this without reset C2000.
They have use “SCI_lockAutobaud(SCIA_BASE)” to do auto band test, while in initial stage sent a ‘A’ or ‘a’ will activate automatic baud rate mode and if need to change band rate, reset DSP sent the character again in new band rate.
there are some questions:
- In the function there are code below:
// Wait until we correctly read an 'A' or 'a' and lock
while((HWREGH(base + SCI_O_FFCT) & SCI_FFCT_ABD) != SCI_FFCT_ABD)
{
}
Which means CPU will wait here and do nothing until receive character like ‘A’ or ’a’
Customer try to use “if” replace “while” to let CPU do other task when not receive “A” or ”a” but communication failed;
why is this happen ?
2. can C2000 achieve the function which can identify the baud rate automatic during the whole communication period?
BR
Emma