本帖最后由 SpurCho 于 2019-10-9 19:37 编辑
下列程序红色标注部分是否重复?
为啥前面已将控制寄存器最低两位置位,后面又再次置位?
SciaRegs.SCICCR.all =0x0007;
SciaRegs.SCICTL1.all =0x0003;
SciaRegs.SCICTL2.all =0x0003;
SciaRegs.SCICTL2.bit.TXINTENA = 1;
SciaRegs.SCICTL2.bit.RXBKINTENA =1;
#if (CPU_FRQ_150MHZ)
SciaRegs.SCIHBAUD =0x0001;
SciaRegs.SCILBAUD =0x00E7;
#endif
SCI控制寄存器2后两位: