⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 global.c

📁 SAMSUNG S6B33B0程序
💻 C
字号:

//=========================================================================
// include files                                                          =
//=========================================================================
#include  "define.h"
#include  "cpu8052.h"


//***************************************************************************
// GLOBAL DATA
//**************************************************************************/

//input
Bool  FgP1_0;
Bool  FgP1_1;
Bool  FgP1_2;
Bool  FgP1_3;
Bool  FgP1_4;
Bool  FgP1_5;
Bool  FgP1_6;
Bool  FgP1_7;
Bool  FgP2_0;
Bool  FgExtInput1;
Bool  FgExtInput2;
Bool  FgExtInput3;
Bool  FgExtInput4;
Bool  FgExtInput5;
Bool  FgExtInput6;
Bool  FgExtInput7;
Bool  FgExtInput8;
Bool  FgExtInput9;
Bool  FgExtInput10;
Bool  FgExtInput11;
Bool  FgExtInput12;
Bool  FgExtInput13;
Bool  FgExtInput14;
Bool  FgExtInput15;
Bool  FgExtInput16;
Byte  IDATA   TypeState;
Byte  IDATA   InputState;

//led
Bool  FgExtOut1;
Bool  FgExtOut2;
Bool  FgExtOut3;
Bool  FgExtOut4;
Bool  FgExtOut5;
Bool  FgExtOut6;
Bool  FgExtOut7;
Bool  FgExtOut8;
Bool  FgLedFlag;
Bool  FgLed2On;
Bool  FgLed3On;
Bool  FgLed2Off;
Bool  FgLed1Off;
Bool  FgChange;
Byte  IDATA   LedCount;
Byte  IDATA   OutputState;
Byte  IDATA   OutPutData1;

//utility
Bool  FgBeepOff;
Bool  FgAlarmOff;
Bool  FgExtFreq1;
Bool  FgExtFreq2;
Bool  FgExtFreq3;
Bool  FgExtFreq4;
Bool  Fgdirection;
Byte  IDATA   BcdData1;
Byte  IDATA   BcdData2;
Byte  IDATA   BcdData3;
Byte  IDATA   BcdData4;
Byte  IDATA   DisplayState;
Byte  IDATA   UpdateValue;
Byte  IDATA   BcdVarible;
Byte  IDATA   *ByteVariablePtr;
Word  IDATA   *WordVariablePtr;
Word  IDATA   MaxValue;
Word  IDATA   MinValue;
Word  IDATA   BcdVarible1;

//pulse
Bool  FgPulse;
Bool  FgPulseShort;
Bool  FgPulseLong;
Bool  FgTimeout;
Byte  IDATA   DutyCount;
Byte  IDATA   DutyCycleValue;
Byte  IDATA   PulseData;
Byte  IDATA   LowPulseCount;
Byte  IDATA   HiPulseCount;
Byte  IDATA   WheelNow;
Byte  IDATA   WheelOld;
Byte  IDATA   RightCount;
Byte  IDATA   LeftCount;
Byte  IDATA   EncoderCnt;
Byte  IDATA   SquareCount;


//timer
Byte  IDATA   T40msTimer;
Word  IDATA   LedOffCount;
Word  IDATA   Timer40msCount;
Word  IDATA   PulseCount;

//key
Bool  FgDoubleKey;
Bool  FgKEY1;
Bool  FgKEY2;
Bool  FgKEY3;
Bool  FgKEY4;
Bool  FgKEY5;
Bool  FgKEY2_ONOFF;
Byte  IDATA   KeyData;
Byte  IDATA   KeyData1; 
Byte  IDATA   KeyData2; 
Byte  IDATA   KeyData3;
Byte  IDATA   KeyData4;
Byte  IDATA   KeyCount;
Byte  IDATA   ScanKeyCounter; 
Byte  IDATA   KeyBuffer;
Byte  IDATA   KeyCountTimer;
Byte  IDATA   CoarseAdjCount;

//iic
Byte  IDATA   ByteCnt;
Byte  IDATA   SlvAdr;

//eeprom
Bool  FgVariable1;
Bool  FgVariable2;
Bool  FgVariable3;
Byte  IDATA   TrmBuf[34];
Byte  IDATA   Variable1;
Byte  IDATA   Variable2;
Byte  IDATA   Variable3;
Byte  IDATA   Variable4;
Byte  IDATA   Variable5;
Byte  IDATA   Variable6;
Byte  IDATA   Variable7;

//93c66
Byte  IDATA   Buffer;

//osd
Byte  IDATA   OsdLanguage;
Byte  RDATA  *DataPointer;
Byte  IDATA   CurrentValue;
Byte  IDATA   OSDMinValue;
Byte  IDATA   OSDMaxValue;
Byte  IDATA   CurrentValue;
Byte  IDATA   DogCount;
Byte  IDATA   NextColumn;

//external ram
Byte  PDATA   XFR_ADC 	_at_ 0x10;
Byte  PDATA   DAC0		_at_ 0x20;

⌨️ 快捷键说明

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