
//------------------------------
//图形化连接端口


unit PORT
{
	public bit D2_DIR; public bit D2_IN; public bit D2_OUT;
	public bit D3_DIR; public bit D3_IN; public bit D3_OUT;
}

unit PD2
{
	public const int8 INT_INDEX = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PD3
{
	public const int8 INT_INDEX = 1;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PD4
{
	public const int8 INT_INDEX = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PD5
{
	public const int8 INT_INDEX = 1;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PD6
{
	public const int8 INT_INDEX = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PD7
{
	public const int8 INT_INDEX = 1;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}

unit PB0
{
	public const int8 INT_INDEX = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PB3
{
	public const int8 INT_INDEX = 1;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}

//AD口
unit PC0
{
	public const int8 AD_INDEX = 0;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PC1
{
	public const int8 AD_INDEX = 1;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PC2
{
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PC3
{
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PC4
{
	public const int8 AD_INDEX = 4;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}
unit PC5
{
	public const int8 AD_INDEX = 5;
	public bit D0_DIR; public bit D0_IN; public bit D0_OUT; public bit D0_PUL;
}








