Other Parts Discussed in Thread: C2000WARE
Hi team,
I am supporting customer to fulfill their SCI configuration code.
When refering example code in C2000ware, here is a detail we noticed:
In sci_ex3_interrupts_fifo there are 2 repeated S/W reset code in the SCI configuration. Could you share more details why this is neccessary?
//
// Initialize SCIA and its FIFO.
//
SCI_performSoftwareReset(SCIA_BASE);
//
// Configure SCIA for echoback.
//
SCI_setConfig(SCIA_BASE, 25000000, 9600, (SCI_CONFIG_WLEN_8 |
SCI_CONFIG_STOP_ONE |
SCI_CONFIG_PAR_NONE));
SCI_resetChannels(SCIA_BASE);
SCI_clearInterruptStatus(SCIA_BASE, SCI_INT_TXFF | SCI_INT_RXFF);
SCI_enableFIFO(SCIA_BASE);
SCI_enableModule(SCIA_BASE);
SCI_performSoftwareReset(SCIA_BASE);
Regards,
Brian