多谢指导,确实是你说的问题,修改后可以正常收发了,但我不太明白,PIC18F26Q84的规格书上标注如下,难道有错误?
Equation 38-21. Start Address of the TEF Object
A = BaseAddress = CxFIFOBA
Note: CxFIFOBAH/L needs to be set to a value between 0x3800 and the end of RAM, leaving enough room to allow
the TEF and Transmit Queue (if enabled) as well as the FIFOs.