This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need to PEC transfer primer

I use the board based on C167CR-LM the processor and I want that the data array was transferred to the serial interface. Whether somebody where it is possible to look an example of execution PEC transmission between the buffer of the IRAM and register S0TBUF knows?

Thanks

Parents Reply Children
  • I try that the data arrary was transferred the serial interface(ASC0_TBUF) via PEC, but it's not worked. the code runs under XC164CM(C166). Whether somebody knows how to resolve it?

    **************************************
    ubyte ubTxBuf[] = "ABC\n";
    ....
    //increment source pointer
    //transfer a byte
    //decrement counter from 4
    PECC4 = 0x5504;

    SRCP4 = _sof_(&ubTxBuf);
    DSTP4 = _sof_(&ASC0_TBUF);
    ***************************************