This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

2808 SCI 暫存器設定不會更新

暫存器設定如下:

    ScibRegs.SCICCR.all =0x0007;    // 1 stop bit,  No loopback

                                    // No parity,8 char bits,

                                    // async mode, idle-line protocol

    ScibRegs.SCICTL1.all =0x0003;   // enable TX, RX, internal SCICLK,

                                    // Disable RX ERR, SLEEP, TXWAKE

    ScibRegs.SCICTL2.bit.TXINTENA =1;

    ScibRegs.SCICTL2.bit.RXBKINTENA =1;

    ScibRegs.SCIHBAUD    =0x0001;

    ScibRegs.SCILBAUD    =0x0045;

    ScibRegs.SCICCR.bit.LOOPBKENA =1; // Enable loop back

    ScibRegs.SCIFFTX.all=0xC028;

    ScibRegs.SCIFFRX.all=0x0028;

    ScibRegs.SCIFFCT.all=0x00;

    ScibRegs.SCICTL1.all =0x0023;     // Relinquish SCI from Reset

    ScibRegs.SCIFFTX.bit.TXFIFOXRESET=1;

    ScibRegs.SCIFFRX.bit.RXFIFORESET=1;

但是當我進入debug 模式下使用,觀看registers卻沒有看到有如我的設定一樣

請問是還需要做哪些設定嗎?

不太懂SCI的設定,好像沒有很直觀?