admini.c

来自「Microchip 公司16F648 芯片实现RS485通讯,符合Modbus通」· C语言 代码 · 共 42 行

C
42
字号
#include  "pic16f62xa.h"
#include  "pic.h"
#include  "typedefine.h"
#include  "extern.h"


void UartScan(void);
//
//admini
void Admini(void)
{
	UartScan();
}



void UartScan(void)
{	
 	if(UartSlaveDelayStruct.ReceiveCountStatus.bits.ReceiveCountOverflowTag)
 	{	
        ReceiveFrameDisFun();     //receive data will dispose function.
 	    UartSlaveDelayStruct.ReceiveCountStatus.bits.ReceiveCountOverflowTag = 0;
 	}		
	//发送模块标记位扫描. 
 	if(UartSlaveStruct.bits.RespondReadyTag) 
	{ 
	    En_Transmit(); 
		UartSlaveStruct.bits.RespondReadyTag=0; 
	} 	
	if(UartSlaveDelayStruct.SendLastStatus.bits.LastByteCountTag) 
	{	
		if(UartSlaveDelayStruct.SendLastStatus.bits.SendCountEndTag) 
		{ 
			UartSlaveDelayStruct.SendLastStatus.allbits = 0; 
			UartSlaveDelayStruct.SendLastCou = 0; 
			En_Receive();  
		}
	}
}	
	
	

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?