SoftUartH.h
上传用户:xhjmsc
上传日期:2019-09-13
资源大小:389k
文件大小:1k
- unsigned char SoftUartRxOneFrame(void);
- void SoftUartTxOneFrame(unsigned char);
- void SoftUartDelay(void);
- void SoftUartDelayHalf(void);
- void Delay1us(void);
- void SoftUartDelay7us(void);
- void SoftUartDelay8p7us(void);
- //********************************************************
- #define SOFTUART_PORT_OUT P6OUT
- #define SOFTUART_PORT_IN P6IN
- //********************************************************
- #define bitSOFTUARTRX (0x02)
- #define bitSOFTUARTTX (0x01)
- //********************************************************
- //#define SOFTUART_PORT_IN_DIRECTION P6DIR=0X00
- //#define SOFTUART_PORT_OUT_DIRECTION P6DIR=0Xff
- #define SOFTUART_PORT_DIRECTION P6DIR