void xWriteCH375Cmd( UINT8 mCmd ) { TI = 0; TB8 = 1; SBUF = mCmd; while ( TI == 0 ); }
void xWriteCH375Data( UINT8 mData ) { TI = 0; TB8 = 0; SBUF = mData; while ( TI == 0 ); }
UINT8 xReadCH375Data( void ) { while ( RI == 0 ); RI = 0; return( SBUF ); }
这是串口连接时的读写函数,一直有些地方不理解,TB8是什么呢,哪儿定义的呢,SBUF又是哪儿定义的呢,麻烦了解的各位解释下,谢谢了。。。。。