上传文件至 /

This commit is contained in:
2025-07-05 07:56:31 +08:00
parent e1671e57e2
commit 381ee075da
5 changed files with 2571 additions and 0 deletions

1702
CL2.0_uvopt.bak Normal file

File diff suppressed because it is too large Load Diff

410
CL2.0_uvproj.bak Normal file
View File

@@ -0,0 +1,410 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_proj.xsd">
<SchemaVersion>1.0</SchemaVersion>
<Header>### uVision Project, (C) Keil Software</Header>
<Targets>
<Target>
<TargetName>Target 1</TargetName>
<ToolsetNumber>0x0</ToolsetNumber>
<ToolsetName>MCS-51</ToolsetName>
<TargetOption>
<TargetCommonOption>
<Device>XC886CLM-8FF</Device>
<Vendor>Infineon</Vendor>
<Cpu>IRAM(0-0xFF) XRAM(0xF000-0xF5FF) IROM(0-0x5FFF) IROM2(0xA000-0xBFFF) CLOCK(24000000) MOD517DP</Cpu>
<FlashUtilSpec>XC800_FLOAD.EXE ("#H" f")</FlashUtilSpec>
<StartupFile>"LIB\START_XC88x.A51" ("Infineon XC800 Startup Code")</StartupFile>
<FlashDriverDll></FlashDriverDll>
<DeviceId>4021</DeviceId>
<RegisterFile>XC886CLM.H</RegisterFile>
<MemoryEnv></MemoryEnv>
<Cmp></Cmp>
<Asm></Asm>
<Linker></Linker>
<OHString></OHString>
<InfinionOptionDll></InfinionOptionDll>
<SLE66CMisc></SLE66CMisc>
<SLE66AMisc></SLE66AMisc>
<SLE66LinkerMisc></SLE66LinkerMisc>
<UseEnv>0</UseEnv>
<BinPath></BinPath>
<IncludePath></IncludePath>
<LibPath></LibPath>
<RegisterFilePath>Infineon\</RegisterFilePath>
<DBRegisterFilePath>Infineon\</DBRegisterFilePath>
<TargetStatus>
<Error>0</Error>
<ExitCodeStop>0</ExitCodeStop>
<ButtonStop>0</ButtonStop>
<NotGenerated>0</NotGenerated>
<InvalidFlash>1</InvalidFlash>
</TargetStatus>
<OutputDirectory>.\output\</OutputDirectory>
<OutputName>CL2.0</OutputName>
<CreateExecutable>1</CreateExecutable>
<CreateLib>0</CreateLib>
<CreateHexFile>1</CreateHexFile>
<DebugInformation>1</DebugInformation>
<BrowseInformation>1</BrowseInformation>
<ListingPath>.\output\</ListingPath>
<HexFormatSelection>0</HexFormatSelection>
<Merge32K>0</Merge32K>
<CreateBatchFile>0</CreateBatchFile>
<BeforeCompile>
<RunUserProg1>0</RunUserProg1>
<RunUserProg2>0</RunUserProg2>
<UserProg1Name></UserProg1Name>
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
</BeforeCompile>
<BeforeMake>
<RunUserProg1>0</RunUserProg1>
<RunUserProg2>0</RunUserProg2>
<UserProg1Name></UserProg1Name>
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
</BeforeMake>
<AfterMake>
<RunUserProg1>0</RunUserProg1>
<RunUserProg2>0</RunUserProg2>
<UserProg1Name></UserProg1Name>
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
</AfterMake>
<SelectedForBatchBuild>0</SelectedForBatchBuild>
<SVCSIdString></SVCSIdString>
</TargetCommonOption>
<CommonProperty>
<UseCPPCompiler>0</UseCPPCompiler>
<RVCTCodeConst>0</RVCTCodeConst>
<RVCTZI>0</RVCTZI>
<RVCTOtherData>0</RVCTOtherData>
<ModuleSelection>0</ModuleSelection>
<IncludeInBuild>1</IncludeInBuild>
<AlwaysBuild>0</AlwaysBuild>
<GenerateAssemblyFile>0</GenerateAssemblyFile>
<AssembleAssemblyFile>0</AssembleAssemblyFile>
<PublicsOnly>0</PublicsOnly>
<StopOnExitCode>3</StopOnExitCode>
<CustomArgument></CustomArgument>
<IncludeLibraryModules></IncludeLibraryModules>
<BankNo>65535</BankNo>
</CommonProperty>
<DllOption>
<SimDllName>S8051.DLL</SimDllName>
<SimDllArguments>-m8051EW</SimDllArguments>
<SimDlgDll>DCore51.DLL</SimDlgDll>
<SimDlgDllArguments>-pXC886</SimDlgDllArguments>
<TargetDllName>S8051.DLL</TargetDllName>
<TargetDllArguments></TargetDllArguments>
<TargetDlgDll>TCore51.DLL</TargetDlgDll>
<TargetDlgDllArguments>-pXC886</TargetDlgDllArguments>
</DllOption>
<DebugOption>
<OPTHX>
<HexSelection>0</HexSelection>
<HexRangeLowAddress>0</HexRangeLowAddress>
<HexRangeHighAddress>0</HexRangeHighAddress>
<HexOffset>0</HexOffset>
<Oh166RecLen>16</Oh166RecLen>
</OPTHX>
<Simulator>
<UseSimulator>0</UseSimulator>
<LoadApplicationAtStartup>1</LoadApplicationAtStartup>
<RunToMain>1</RunToMain>
<RestoreBreakpoints>1</RestoreBreakpoints>
<RestoreWatchpoints>1</RestoreWatchpoints>
<RestoreMemoryDisplay>1</RestoreMemoryDisplay>
<RestoreFunctions>1</RestoreFunctions>
<RestoreToolbox>1</RestoreToolbox>
<LimitSpeedToRealTime>0</LimitSpeedToRealTime>
</Simulator>
<Target>
<UseTarget>1</UseTarget>
<LoadApplicationAtStartup>1</LoadApplicationAtStartup>
<RunToMain>0</RunToMain>
<RestoreBreakpoints>1</RestoreBreakpoints>
<RestoreWatchpoints>1</RestoreWatchpoints>
<RestoreMemoryDisplay>1</RestoreMemoryDisplay>
<RestoreFunctions>0</RestoreFunctions>
<RestoreToolbox>1</RestoreToolbox>
</Target>
<RunDebugAfterBuild>0</RunDebugAfterBuild>
<TargetSelection>-1</TargetSelection>
<SimDlls>
<CpuDll></CpuDll>
<CpuDllArguments></CpuDllArguments>
<PeripheralDll></PeripheralDll>
<PeripheralDllArguments></PeripheralDllArguments>
<InitializationFile></InitializationFile>
</SimDlls>
<TargetDlls>
<CpuDll></CpuDll>
<CpuDllArguments></CpuDllArguments>
<PeripheralDll></PeripheralDll>
<PeripheralDllArguments></PeripheralDllArguments>
<InitializationFile></InitializationFile>
<Driver>BIN\DAS2XC800.DLL</Driver>
</TargetDlls>
</DebugOption>
<Utilities>
<Flash1>
<UseTargetDll>1</UseTargetDll>
<UseExternalTool>0</UseExternalTool>
<RunIndependent>0</RunIndependent>
<UpdateFlashBeforeDebugging>0</UpdateFlashBeforeDebugging>
<Capability>1</Capability>
<DriverSelection>4100</DriverSelection>
</Flash1>
<Flash2>BIN\DAS2XC800.DLL</Flash2>
<Flash3>"XC800_FLOAD.EXE" ("#H" f")</Flash3>
<Flash4></Flash4>
</Utilities>
<Target51>
<Target51Misc>
<MemoryModel>2</MemoryModel>
<RTOS>0</RTOS>
<RomSize>2</RomSize>
<DataHold>0</DataHold>
<XDataHold>0</XDataHold>
<UseOnchipRom>0</UseOnchipRom>
<UseOnchipArithmetic>0</UseOnchipArithmetic>
<UseMultipleDPTR>1</UseMultipleDPTR>
<UseOnchipXram>1</UseOnchipXram>
<HadIRAM>1</HadIRAM>
<HadXRAM>1</HadXRAM>
<HadIROM>1</HadIROM>
<Moda2>0</Moda2>
<Moddp2>0</Moddp2>
<Modp2>0</Modp2>
<Mod517dp>1</Mod517dp>
<Mod517au>0</Mod517au>
<Mode2>0</Mode2>
<useCB>0</useCB>
<useXB>0</useXB>
<useL251>1</useL251>
<useA251>1</useA251>
<Mx51>0</Mx51>
<ModC812>0</ModC812>
<ModCont>0</ModCont>
<Lp51>0</Lp51>
<useXBS>0</useXBS>
<ModDA>0</ModDA>
<ModAB2>0</ModAB2>
<Mx51P>0</Mx51P>
<hadXRAM2>0</hadXRAM2>
<uocXram2>0</uocXram2>
<ModC2>0</ModC2>
<ModH2>0</ModH2>
<Mdu_R515>0</Mdu_R515>
<Mdu_F120>0</Mdu_F120>
<Psoc>0</Psoc>
<hadIROM2>1</hadIROM2>
<ModSmx2>0</ModSmx2>
<cBanks>0</cBanks>
<xBanks>0</xBanks>
<OnChipMemories>
<RCB>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0xffff</Size>
</RCB>
<RXB>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</RXB>
<Ocm1>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocm1>
<Ocm2>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocm2>
<Ocm3>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocm3>
<Ocr1>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocr1>
<Ocr2>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocr2>
<Ocr3>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocr3>
<IRO>
<Type>1</Type>
<StartAddress>0x0</StartAddress>
<Size>0x6000</Size>
</IRO>
<IRA>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x100</Size>
</IRA>
<XRA>
<Type>0</Type>
<StartAddress>0xf000</StartAddress>
<Size>0x600</Size>
</XRA>
<XRA512>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</XRA512>
<IROM512>
<Type>0</Type>
<StartAddress>0xa000</StartAddress>
<Size>0x2000</Size>
</IROM512>
</OnChipMemories>
</Target51Misc>
<C51>
<RegisterColoring>0</RegisterColoring>
<VariablesInOrder>0</VariablesInOrder>
<IntegerPromotion>1</IntegerPromotion>
<uAregs>0</uAregs>
<UseInterruptVector>1</UseInterruptVector>
<Fuzzy>3</Fuzzy>
<Optimize>9</Optimize>
<WarningLevel>2</WarningLevel>
<SizeSpeed>1</SizeSpeed>
<ObjectExtend>1</ObjectExtend>
<ACallAJmp>1</ACallAJmp>
<InterruptVectorAddress>8192</InterruptVectorAddress>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>
<Undefine></Undefine>
<IncludePath></IncludePath>
</VariousControls>
</C51>
<Ax51>
<UseMpl>0</UseMpl>
<UseStandard>1</UseStandard>
<UseCase>0</UseCase>
<UseMod51>0</UseMod51>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>
<Undefine></Undefine>
<IncludePath></IncludePath>
</VariousControls>
</Ax51>
<Lx51>
<useFile>0</useFile>
<linkonly>0</linkonly>
<UseMemoryFromTarget>1</UseMemoryFromTarget>
<CaseSensitiveSymbols>0</CaseSensitiveSymbols>
<WarningLevel>2</WarningLevel>
<DataOverlaying>1</DataOverlaying>
<OverlayString></OverlayString>
<MiscControls>RESERVE (I:0xC0-I:0xFF)</MiscControls>
<DisableWarningNumbers></DisableWarningNumbers>
<LinkerCmdFile></LinkerCmdFile>
<Assign></Assign>
<ReserveString></ReserveString>
<CClasses></CClasses>
<UserClasses>CODE(C:0x2100-C:0x5FFF)</UserClasses>
<CSection></CSection>
<UserSection>?C_C51STARTUP(C:0x2100), ?PR?main?MAIN</UserSection>
<CodeBaseAddress></CodeBaseAddress>
<XDataBaseAddress></XDataBaseAddress>
<PDataBaseAddress></PDataBaseAddress>
<BitBaseAddress></BitBaseAddress>
<DataBaseAddress></DataBaseAddress>
<IDataBaseAddress></IDataBaseAddress>
<Precede></Precede>
<Stack></Stack>
<CodeSegmentName></CodeSegmentName>
<XDataSegmentName></XDataSegmentName>
<BitSegmentName></BitSegmentName>
<DataSegmentName></DataSegmentName>
<IDataSegmentName></IDataSegmentName>
</Lx51>
</Target51>
</TargetOption>
<Groups>
<Group>
<GroupName>Dave Files</GroupName>
<Files>
<File>
<FileName>START_XC.a51</FileName>
<FileType>2</FileType>
<FilePath>.\START_XC.a51</FilePath>
</File>
<File>
<FileName>MAIN.C</FileName>
<FileType>1</FileType>
<FilePath>.\MAIN.C</FilePath>
</File>
<File>
<FileName>IO.C</FileName>
<FileType>1</FileType>
<FilePath>.\IO.C</FilePath>
</File>
<File>
<FileName>SHARED_INT.C</FileName>
<FileType>1</FileType>
<FilePath>.\SHARED_INT.C</FilePath>
</File>
<File>
<FileName>CAN.C</FileName>
<FileType>1</FileType>
<FilePath>.\CAN.C</FilePath>
</File>
<File>
<FileName>T2.C</FileName>
<FileType>1</FileType>
<FilePath>.\T2.C</FilePath>
</File>
<File>
<FileName>WDT.C</FileName>
<FileType>1</FileType>
<FilePath>.\WDT.C</FilePath>
</File>
</Files>
</Group>
<Group>
<GroupName>User Files</GroupName>
<Files>
<File>
<FileName>User.c</FileName>
<FileType>1</FileType>
<FilePath>.\User.c</FilePath>
</File>
<File>
<FileName>boot.c</FileName>
<FileType>1</FileType>
<FilePath>.\boot.c</FilePath>
</File>
<File>
<FileName>XC88x_FLHANDLER.ASM</FileName>
<FileType>2</FileType>
<FilePath>.\XC88x_FLHANDLER.ASM</FilePath>
</File>
</Files>
</Group>
</Groups>
</Target>
</Targets>
</Project>

210
Config.H Normal file
View File

@@ -0,0 +1,210 @@
#ifndef _Configfff_H_
#define _Configfff_H_
//-----<2D><EFBFBD><EAB6A8>-----------------------------------------------------------------
//<2F><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>--------------------------------------------------------------
//֧<><D6A7>ƽ̨<C6BD><CCA8>
// ___XC164CM___ SSC<53><43><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD>ѯ<EFBFBD><D1AF>ʽ
// ___XC2765X___ SSC<53><43><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD>ѯ<EFBFBD><D1AF>ʽ
#define ___XC886CLM___
#define NumChipSw 2//<2F><><EFBFBD><EFBFBD>MC33993оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define DF_SwInNum 1//<2F><><EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD>оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define DF_SwOutNum 1//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define Tog 2
#define On 1
#define Off 0
//#define N 6 //NΪż<CEAA><C5BC>
#define uchar unsigned char
#define ulong unsigned long
#define uint unsigned int
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>CAN<41><4E><EFBFBD>ݽ<EFBFBD><DDBD>գ<EFBFBD><D5A3><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>___CANRX___
//#define ___CANRX___
//<2F><><EFBFBD>Ź<EFBFBD>
//#define DF_WDT P1_OUT_P0
//<2F><><EFBFBD><EFBFBD>
#define SwIn01 P1_2 // Output7
#define SwIn02 P1_3 // Output2
#define SwIn03 P1_4 // Output4
#define SwIn04 P1_5 // Output3
#define SwIn05 P3_6 // Output5
#define SwIn06 P4_3 // Output6
#define SwIn07 P3_0
#define SwIn08 P2_6
#define SwOut01 P3_2
#define SwOut02 P3_4
#define SwOut03 P4_0
#define SwOut04 P0_7
#define SwOut05 P0_0
#define SwOut06 P0_1
#define SwOut07 P2_3
#define SwOut08 P2_5
#define SwOut09 P0_3
#define SwOut10 P4_1
#define SwOut11 P3_5
#define SwOut12 P3_3
#define SwOut13 P1_4
#define SwOut14 P1_2
#define SwOut15 P0_2
#define SwOut16 P1_7
//LED<45><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݽṹ
typedef union _SwOut
{
struct
{
// ubyte Arr[DF_SwOutNum][4]; //оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD>޸<EFBFBD>
ubyte Arr[DF_SwOutNum][4]; //оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD>޸<EFBFBD>
}ArrData;
struct
{
//-------<2D><><EFBFBD><EFBFBD>оƬ1-------------------------------
unsigned int S21 : 1;//FLGSP0
unsigned int S22 : 1;//FLGSP1
unsigned int S23 : 1;//FLGSP2
unsigned int S24 : 1;//FLGSP3
unsigned int S34 : 1;//FLGSP4
unsigned int S33 : 1;//FLGSP5
unsigned int S32 : 1;//FLGSP6
unsigned int S31 : 1;//FLGSP7
unsigned int S25 : 1;//FLGSG0
unsigned int S26 : 1;//FLGSG1
unsigned int S27 : 1;//FLGSG2
unsigned int S28 : 1;//FLGSG3
unsigned int S30 : 1;//FLGSG4
unsigned int S29 : 1;//FLGSG5
unsigned int S43 : 1;//FLGSG6
unsigned int S35 : 1;//FLGSG7
unsigned int S36 : 1;//FLGSG8
unsigned int S37 : 1;//FLGSG9
unsigned int S38 : 1;//FLGSG10
unsigned int S40 : 1;//FLGSG11
unsigned int S39 : 1;//FLGSG12
unsigned int S44 : 1;//FLGSG13
unsigned int : 1;
unsigned int : 1;
unsigned int : 8;
//-------------------------------------------------
}BitData;
}UnSwOut,*pUnSwOut;
//CAN<41><4E><EFBFBD><EFBFBD>--------------------------------------------------------------
#define NumTxCan 1
#define NumRxCan 1//15
#define NumTxCanMoS 16 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ
#define NumRxCanMoS 0 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ
#define ___CANRX___
//CAN<41><4E>Ϣ<EFBFBD>
typedef union _InfCan
{
struct
{
ubyte Arr[1][8];
ubyte ArrRX[2][8];
}ArrData;
struct
{
//----------<2D><><EFBFBD><EFBFBD>0-0x14000001 -------------------------------------------
unsigned int Sta09 : 1 ; //FlgSp1
unsigned int Sta10 : 1 ; //FlgSp0
unsigned int Sta11 : 1 ; //FlgSp7
unsigned int Sta12 : 1 ; //FlgSp6
unsigned int Sta13 : 1 ; //FlgSp5
unsigned int Sta14 : 1 ; //FlgSp4
unsigned int Sta15 : 1 ; //FlgSg7
unsigned int Sta16 : 1 ; //FlgSg8
unsigned int Sta01 : 1 ; //FlgSg4
unsigned int Sta02 : 1 ; //FlgSg5
unsigned int Sta03 : 1 ; //FlgSg3
unsigned int Sta04 : 1 ; //FlgSg2
unsigned int Sta05 : 1 ; //FlgSg1
unsigned int Sta06 : 1 ; //FlgSg0
unsigned int Sta07 : 1 ; //FlgSp3
unsigned int Sta08 : 1 ; //FlgSp2
unsigned int CanTx3 : 8 ; ////
unsigned int Dia01 : 1 ; //FlgSg4
unsigned int Dia02 : 1 ; //FlgSg5
unsigned int Dia03 : 1 ; //FlgSg3
unsigned int Dia04 : 1 ; //FlgSg2
unsigned int Dia05 : 1 ; //FlgSg1
unsigned int Dia06 : 1 ; //FlgSg0
unsigned int Dia07 : 1 ; //FlgSp3
unsigned int Dia08 : 1 ; //FlgSp2
unsigned int CanTx5 : 8 ; ////
unsigned int CanTx4 : 8 ; ////
unsigned int CanTx7 : 8 ; ////
unsigned int CanTx6 : 8 ; ////
//----------<2D><><EFBFBD><EFBFBD>0x14000002 --------------------------------------------
unsigned int D29 : 1 ; //FlgSp1
unsigned int D30 : 1 ; //FlgSp0
unsigned int D31 : 1 ; //FlgSp7
unsigned int D32 : 1 ; //FlgSp6
unsigned int D33 : 1 ; //FlgSp5
unsigned int D34 : 1 ; //FlgSp4
unsigned int D35 : 1 ; //FlgSg7
unsigned int D36 : 1 ; //FlgSg8
unsigned int D21 : 1 ; //FlgSg4
unsigned int D22 : 1 ; //FlgSg5
unsigned int D23 : 1 ; //FlgSg3
unsigned int D24 : 1 ; //FlgSg2
unsigned int D25 : 1 ; //FlgSg1
unsigned int D26 : 1 ; //FlgSg0
unsigned int D27 : 1 ; //FlgSp3
unsigned int D28 : 1 ; //FlgSp2
unsigned int CanRx3 : 8 ; ////
unsigned int CanRx2 : 8 ; ////
unsigned int CanRx5 : 8 ; ////
unsigned int CanRx4 : 8 ; ////
unsigned int CanRx7 : 8 ; ////
unsigned int CanRx6 : 8 ; ////
//----------<2D><><EFBFBD><EFBFBD>0x14000003 --------------------------------------------
unsigned int Pwm_01 : 4 ; //FlgSp1
unsigned int Pwm_02 : 4 ; //FlgSp0
unsigned int Pwm_03 : 4 ; //FlgSp7
unsigned int Pwm_04 : 4 ; //FlgSp6
unsigned int Pwm_05 : 4 ; //FlgSp5
unsigned int Pwm_06 : 4 ; //FlgSp4
unsigned int Pwm_07 : 4 ; //FlgSg7
unsigned int Pwm_08 : 4 ; //FlgSg8
unsigned int Pwm_09 : 4 ; //FlgSg4
unsigned int Pwm_10 : 4 ; //FlgSg5
unsigned int Pwm_11 : 4 ; //FlgSg3
unsigned int Pwm_12 : 4 ; //FlgSg2
unsigned int Pwm_13 : 4 ; //FlgSg1
unsigned int Pwm_14 : 4 ; //FlgSg0
unsigned int Pwm_15 : 4 ; //FlgSp3
unsigned int Pwm_16 : 4 ; //FlgSp2
}BitData;
}UnInfCan,*pInfCan;
//-----<2D>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>----------------------------------------------
#include "user.H"
#include "boot.H"
#include "RTC.H"
#include "temperature.H"
#endif

247
Config.H.bak Normal file
View File

@@ -0,0 +1,247 @@
#ifndef _Configfff_H_
#define _Configfff_H_
//-----<2D><EFBFBD><EAB6A8>-----------------------------------------------------------------
//<2F><><EFBFBD>ز<EFBFBD><D8B2><EFBFBD>--------------------------------------------------------------
//֧<><D6A7>ƽ̨<C6BD><CCA8>
// ___XC164CM___ SSC<53><43><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD>ѯ<EFBFBD><D1AF>ʽ
// ___XC2765X___ SSC<53><43><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD>ѯ<EFBFBD><D1AF>ʽ
#define ___XC886CLM___
#define NumChipSw 2//<2F><><EFBFBD><EFBFBD>MC33993оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define DF_SwInNum 1//<2F><><EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD>оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define DF_SwOutNum 1//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define Tog 2
#define On 1
#define Off 0
//#define N 6 //NΪż<CEAA><C5BC>
#define uchar unsigned char
#define ulong unsigned long
#define uint unsigned int
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>CAN<41><4E><EFBFBD>ݽ<EFBFBD><DDBD>գ<EFBFBD><D5A3><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>___CANRX___
//#define ___CANRX___
//<2F><><EFBFBD>Ź<EFBFBD>
//#define DF_WDT P1_OUT_P0
//<2F><><EFBFBD><EFBFBD>
#define SwIn01 P3_0
#define SwIn02 P3_7
#define SwIn03 P2_4
#define SwIn04 P2_5
#define SwIn05 P3_1
#define SwIn06 P3_6
#define SwIn07 P2_6
#define SwIn08 P2_7
#define SwOut01 P3_2
#define SwOut02 P3_4
#define SwOut03 P4_0
#define SwOut04 P0_7
#define SwOut05 P0_0
#define SwOut06 P0_1
#define SwOut07 P1_3
#define SwOut08 P1_5
#define SwOut09 P0_3
#define SwOut10 P4_1
#define SwOut11 P3_5
#define SwOut12 P3_3
#define SwOut13 P1_4
#define SwOut14 P1_2
#define SwOut15 P0_2
#define SwOut16 P1_7
//<2F><><EFBFBD>زɼ<D8B2><C9BC><EFBFBD><EFBFBD>ݽṹ<DDBD><E1B9B9><EFBFBD><EFBFBD>Ӳ<EFBFBD><D3B2><EFBFBD><EFBFBD><EFBFBD>أ<EFBFBD>Ӳ<EFBFBD><D3B2><EFBFBD>޸<EFBFBD><DEB8><EFBFBD>Ҫ<EFBFBD><D2AA>Ӧ<EFBFBD>޸<EFBFBD>
typedef union _SwSample
{
struct
{
ubyte Arr[DF_SwInNum][4];
}ArrData;
struct
{
//-------<2D>ɼ<EFBFBD>оƬ1-------------------------------
unsigned int S6 : 1;//FlgSg0
unsigned int S5 : 1;//FlgSg1
unsigned int S4 : 1;//FlgSg2
unsigned int S3 : 1;//FlgSg3
unsigned int S1 : 1;//FlgSg4
unsigned int S2 : 1;//FlgSg5
unsigned int S41 : 1;//FlgSg6
unsigned int S15 : 1;//FlgSg7
unsigned int S16 : 1;//FlgSg8
unsigned int S17 : 1;//FlgSg9
unsigned int S18 : 1;//FlgSg10
unsigned int S20 : 1;//FlgSg11
unsigned int S19 : 1;//FlgSg12
unsigned int S42 : 1;//FlgSg13
unsigned int S10 : 1;//FlgSp0
unsigned int S9 : 1;//FlgSp1
unsigned int S8 : 1;//FlgSp2
unsigned int S7 : 1;//FlgSp3
unsigned int S14 : 1;//FlgSp4
unsigned int S13 : 1;//FlgSp5
unsigned int S12 : 1;//FlgSp6
unsigned int S11 : 1;//FlgSp7
unsigned int : 1;//FlgInt
unsigned int : 1;//FlgThem
unsigned int : 8;//
}BitData;
}UnSwSample,*pUnSwSample;
//LED<45><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݽṹ
typedef union _SwOut
{
struct
{
ubyte Arr[DF_SwOutNum][4]; //оƬ<D0BE><C6AC><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD>޸<EFBFBD>
}ArrData;
struct
{
//-------<2D><><EFBFBD><EFBFBD>оƬ1-------------------------------
unsigned int S21 : 1;//FLGSP0
unsigned int S22 : 1;//FLGSP1
unsigned int S23 : 1;//FLGSP2
unsigned int S24 : 1;//FLGSP3
unsigned int S34 : 1;//FLGSP4
unsigned int S33 : 1;//FLGSP5
unsigned int S32 : 1;//FLGSP6
unsigned int S31 : 1;//FLGSP7
unsigned int S25 : 1;//FLGSG0
unsigned int S26 : 1;//FLGSG1
unsigned int S27 : 1;//FLGSG2
unsigned int S28 : 1;//FLGSG3
unsigned int S30 : 1;//FLGSG4
unsigned int S29 : 1;//FLGSG5
unsigned int S43 : 1;//FLGSG6
unsigned int S35 : 1;//FLGSG7
unsigned int S36 : 1;//FLGSG8
unsigned int S37 : 1;//FLGSG9
unsigned int S38 : 1;//FLGSG10
unsigned int S40 : 1;//FLGSG11
unsigned int S39 : 1;//FLGSG12
unsigned int S44 : 1;//FLGSG13
unsigned int : 1;
unsigned int : 1;
unsigned int : 8;
//-------------------------------------------------
}BitData;
}UnSwOut,*pUnSwOut;
//CAN<41><4E><EFBFBD><EFBFBD>--------------------------------------------------------------
#define NumTxCan 1
#define NumRxCan 1//15
#define NumTxCanMoS 16 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ
#define NumRxCanMoS 0 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ
#define ___CANRX___
//CAN<41><4E>Ϣ<EFBFBD>
typedef union _InfCan
{
struct
{
ubyte Arr[1][8];
ubyte ArrRX[2][8];
}ArrData;
struct
{
//----------<2D><><EFBFBD><EFBFBD>0-0x10000001 -------------------------------------------
unsigned int Sta09 : 1 ; //FlgSp1
unsigned int Sta10 : 1 ; //FlgSp0
unsigned int Sta11 : 1 ; //FlgSp7
unsigned int Sta12 : 1 ; //FlgSp6
unsigned int Sta13 : 1 ; //FlgSp5
unsigned int Sta14 : 1 ; //FlgSp4
unsigned int Sta15 : 1 ; //FlgSg7
unsigned int Sta16 : 1 ; //FlgSg8
unsigned int Sta01 : 1 ; //FlgSg4
unsigned int Sta02 : 1 ; //FlgSg5
unsigned int Sta03 : 1 ; //FlgSg3
unsigned int Sta04 : 1 ; //FlgSg2
unsigned int Sta05 : 1 ; //FlgSg1
unsigned int Sta06 : 1 ; //FlgSg0
unsigned int Sta07 : 1 ; //FlgSp3
unsigned int Sta08 : 1 ; //FlgSp2
unsigned int CanTx3 : 8 ; ////
unsigned int Dia01 : 1 ; //FlgSg4
unsigned int Dia02 : 1 ; //FlgSg5
unsigned int Dia03 : 1 ; //FlgSg3
unsigned int Dia04 : 1 ; //FlgSg2
unsigned int Dia05 : 1 ; //FlgSg1
unsigned int Dia06 : 1 ; //FlgSg0
unsigned int Dia07 : 1 ; //FlgSp3
unsigned int Dia08 : 1 ; //FlgSp2
unsigned int CanTx5 : 8 ; ////
unsigned int CanTx4 : 8 ; ////
unsigned int CanTx7 : 8 ; ////
unsigned int CanTx6 : 8 ; ////
//----------<2D><><EFBFBD><EFBFBD>0x10000002 --------------------------------------------
unsigned int D29 : 1 ; //FlgSp1
unsigned int D30 : 1 ; //FlgSp0
unsigned int D31 : 1 ; //FlgSp7
unsigned int D32 : 1 ; //FlgSp6
unsigned int D33 : 1 ; //FlgSp5
unsigned int D34 : 1 ; //FlgSp4
unsigned int D35 : 1 ; //FlgSg7
unsigned int D36 : 1 ; //FlgSg8
unsigned int D21 : 1 ; //FlgSg4
unsigned int D22 : 1 ; //FlgSg5
unsigned int D23 : 1 ; //FlgSg3
unsigned int D24 : 1 ; //FlgSg2
unsigned int D25 : 1 ; //FlgSg1
unsigned int D26 : 1 ; //FlgSg0
unsigned int D27 : 1 ; //FlgSp3
unsigned int D28 : 1 ; //FlgSp2
unsigned int CanRx3 : 8 ; ////
unsigned int CanRx2 : 8 ; ////
unsigned int CanRx5 : 8 ; ////
unsigned int CanRx4 : 8 ; ////
unsigned int CanRx7 : 8 ; ////
unsigned int CanRx6 : 8 ; ////
//----------<2D><><EFBFBD><EFBFBD>0x14000003 --------------------------------------------
unsigned int Pwm01 : 4 ; //FlgSp1
unsigned int Pwm02 : 4 ; //FlgSp0
unsigned int Pwm03 : 4 ; //FlgSp7
unsigned int Pwm04 : 4 ; //FlgSp6
unsigned int Pwm05 : 4 ; //FlgSp5
unsigned int Pwm06 : 4 ; //FlgSp4
unsigned int Pwm07 : 4 ; //FlgSg7
unsigned int Pwm08 : 4 ; //FlgSg8
unsigned int Pwm09 : 4 ; //FlgSg4
unsigned int Pwm10 : 4 ; //FlgSg5
unsigned int Pwm11 : 4 ; //FlgSg3
unsigned int Pwm12 : 4 ; //FlgSg2
unsigned int Pwm13 : 4 ; //FlgSg1
unsigned int Pwm14 : 4 ; //FlgSg0
unsigned int Pwm15 : 4 ; //FlgSp3
unsigned int Pwm16 : 4 ; //FlgSp2
}BitData;
}UnInfCan,*pInfCan;
//-----<2D>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>----------------------------------------------
#include "user.H"
#include "boot.H"
#endif

2
ExtDll.iex Normal file
View File

@@ -0,0 +1,2 @@
[EXTDLL]
Count=0