From 6762ed027b927c5ab7e2eb35d017b1ce39815803 Mon Sep 17 00:00:00 2001 From: a74589669 <290198252@qq.com> Date: Sun, 14 Jul 2019 02:57:21 +0800 Subject: [PATCH] =?UTF-8?q?esp8266=20=E5=8F=AF=E4=BB=A5=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c51/RelayController/RelayController.Opt | 37 - c51/RelayController/RelayController.Uv2 | 102 -- c51/RelayController/RelayController.plg | 0 c51/RelayController/main | 0 c51/RelayController/main.c | 5 - c51/relay_controller/STARTUP.A51 | 198 +++ c51/relay_controller/STC11.h | 347 ++++ c51/relay_controller/main.__i | 1 + c51/relay_controller/main.c | 200 +++ c51/relay_controller/relay | Bin 0 -> 8957 bytes c51/relay_controller/relay.M51 | 355 +++++ c51/relay_controller/relay.hex | 49 + c51/relay_controller/relay.lnp | 4 + c51/relay_controller/relay.plg | 636 ++++++++ .../relay.uvgui.Administrator | 1412 +++++++++++++++++ c51/relay_controller/stc.h | 347 ++++ 16 files changed, 3549 insertions(+), 144 deletions(-) delete mode 100644 c51/RelayController/RelayController.Opt delete mode 100644 c51/RelayController/RelayController.Uv2 delete mode 100644 c51/RelayController/RelayController.plg delete mode 100644 c51/RelayController/main delete mode 100644 c51/RelayController/main.c create mode 100644 c51/relay_controller/STARTUP.A51 create mode 100644 c51/relay_controller/STC11.h create mode 100644 c51/relay_controller/main.__i create mode 100644 c51/relay_controller/main.c create mode 100644 c51/relay_controller/relay create mode 100644 c51/relay_controller/relay.M51 create mode 100644 c51/relay_controller/relay.hex create mode 100644 c51/relay_controller/relay.lnp create mode 100644 c51/relay_controller/relay.plg create mode 100644 c51/relay_controller/relay.uvgui.Administrator create mode 100644 c51/relay_controller/stc.h diff --git a/c51/RelayController/RelayController.Opt b/c51/RelayController/RelayController.Opt deleted file mode 100644 index 2b39624..0000000 --- a/c51/RelayController/RelayController.Opt +++ /dev/null @@ -1,37 +0,0 @@ -### uVision2 Project, (C) Keil Software -### Do not modify ! - - cExt (*.c) - aExt (*.a*; *.src) - oExt (*.obj) - lExt (*.lib) - tExt (*.txt) - pExt (*.plm) - CppX (*.cpp) - DaveTm { 0,0,0,0,0,0,0,0 } - -Target (Target 1), 0x0000 // Tools: 'MCS-51' -GRPOPT 1,(Source Group 1),1,0,0 - - -ExtF <.\main.c> 1,5,0,{ 44,0,0,0,2,0,0,0,3,0,0,0,255,255,255,255,255,255,255,255,248,255,255,255,225,255,255,255,52,0,0,0,52,0,0,0,140,8,0,0,72,2,0,0 } - -TARGOPT 1, (Target 1) - CLK51=24000000 - OPTTT 0,1,1,0 - OPTHX 0,65535,0,0,0 - OPTLX 120,65,8,<.\> - OPTOX 16 - OPTLT 1,1,1,0,1,1,0,1,0,0,0,0 - OPTXL 1,1,1,1,1,1,1,0,0 - OPTFL 1,0,1 - OPTBL 0,(Data Sheet) - OPTBL 1,(Add on databooks) - OPTBL 2,(Instruction Set Manual) - OPTDL (S8051.DLL)()(DP51.DLL)(-p52)(S8051.DLL)()(TP51.DLL)(-p52) - OPTDBG 509,0,()()()()()()()()()() ()()()() - OPTDF 0x0 - OPTLE <> - OPTLC <> -EndOpt - diff --git a/c51/RelayController/RelayController.Uv2 b/c51/RelayController/RelayController.Uv2 deleted file mode 100644 index 76ae0ee..0000000 --- a/c51/RelayController/RelayController.Uv2 +++ /dev/null @@ -1,102 +0,0 @@ -### uVision2 Project, (C) Keil Software -### Do not modify ! - -Target (Target 1), 0x0000 // Tools: 'MCS-51' - -Group (Source Group 1) - - - -Options 1,0,0 // Target 'Target 1' - Device (AT89C52) - Vendor (Atmel) - Cpu (IRAM(0 - 0xFF) IROM(0 - 0x1FFF) CLOCK(24000000)) - Rgf (AT89X52.H) - Mem () - C () - A () - RL () - OH () - UseEnv=0 - EnvBin () - EnvInc () - EnvLib () - EnvReg (ÿAtmel\) - OrgReg (ÿAtmel\) - TgStat=0 - OutDir (.\) - OutName (RelayController) - GenApp=1 - GenLib=0 - GenHex=0 - Debug=1 - Browse=1 - LstDir (.\) - HexSel=0 - MG32K=0 - RunUsr 0 0 <> - RunUsr 1 0 <> - SVCSID <> - MODEL5=0 - RTOS5=0 - ROMSZ5=2 - DHOLD5=0 - XHOLD5=0 - T51FL=80 - CBANKS5=0 - XBANKS5=0 - RCB51 { 0,0,0,0,0,0,0,0,0 } - RXB51 { 0,0,0,0,0,0,0,0,0 } - OCM51 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } - OCR51 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } - IRO51 { 1,0,0,0,0,0,32,0,0 } - IRA51 { 0,0,0,0,0,0,1,0,0 } - XRA51 { 0,0,0,0,0,0,0,0,0 } - C51FL=21630224 - C51VA=0 - C51MSC () - C51DEF () - C51UDF () - INCC5 () - AX51FL=4 - AX51MSC () - AX51SET () - AX51RST () - INCA5 () - IncBld=1 - AlwaysBuild=0 - GenAsm=0 - AsmAsm=0 - PublicsOnly=0 - StopCode=3 - CustArgs () - LibMods () - BankNo=65535 - LX51FL=292 - LX51OVL () - LX51MSC () - LX51DWN () - LX51LFI () - LX51ASN () - LX51RES () - LX51CCL () - LX51UCL () - LX51CSC () - LX51UCS () - LX51COB () - LX51XDB () - LX51PDB () - LX51BIB () - LX51DAB () - LX51IDB () - LX51PRC () - LX51STK () - LX51COS () - LX51XDS () - LX51BIS () - LX51DAS () - LX51IDS () - OPTDL (S8051.DLL)()(DP51.DLL)(-p52)(S8051.DLL)()(TP51.DLL)(-p52) - OPTDBG 509,0,()()()()()()()()()() ()()()() -EndOpt - diff --git a/c51/RelayController/RelayController.plg b/c51/RelayController/RelayController.plg deleted file mode 100644 index e69de29..0000000 diff --git a/c51/RelayController/main b/c51/RelayController/main deleted file mode 100644 index e69de29..0000000 diff --git a/c51/RelayController/main.c b/c51/RelayController/main.c deleted file mode 100644 index 32b6526..0000000 --- a/c51/RelayController/main.c +++ /dev/null @@ -1,5 +0,0 @@ -#include - - - - diff --git a/c51/relay_controller/STARTUP.A51 b/c51/relay_controller/STARTUP.A51 new file mode 100644 index 0000000..ec99b9e --- /dev/null +++ b/c51/relay_controller/STARTUP.A51 @@ -0,0 +1,198 @@ +$NOMOD51 +;------------------------------------------------------------------------------ +; This file is part of the C51 Compiler package +; Copyright (c) 1988-2005 Keil Elektronik GmbH and Keil Software, Inc. +; Version 8.01 +; +; *** <<< Use Configuration Wizard in Context Menu >>> *** +;------------------------------------------------------------------------------ +; STARTUP.A51: This code is executed after processor reset. +; +; To translate this file use A51 with the following invocation: +; +; A51 STARTUP.A51 +; +; To link the modified STARTUP.OBJ file to your application use the following +; Lx51 invocation: +; +; Lx51 your object file list, STARTUP.OBJ controls +; +;------------------------------------------------------------------------------ +; +; User-defined Power-On Initialization of Memory +; +; With the following EQU statements the initialization of memory +; at processor reset can be defined: +; +; IDATALEN: IDATA memory size <0x0-0x100> +; Note: The absolute start-address of IDATA memory is always 0 +; The IDATA space overlaps physically the DATA and BIT areas. +IDATALEN EQU 80H +; +; XDATASTART: XDATA memory start address <0x0-0xFFFF> +; The absolute start address of XDATA memory +XDATASTART EQU 0 +; +; XDATALEN: XDATA memory size <0x0-0xFFFF> +; The length of XDATA memory in bytes. +XDATALEN EQU 0 +; +; PDATASTART: PDATA memory start address <0x0-0xFFFF> +; The absolute start address of PDATA memory +PDATASTART EQU 0H +; +; PDATALEN: PDATA memory size <0x0-0xFF> +; The length of PDATA memory in bytes. +PDATALEN EQU 0H +; +; +;------------------------------------------------------------------------------ +; +; Reentrant Stack Initialization +; +; The following EQU statements define the stack pointer for reentrant +; functions and initialized it: +; +; Stack Space for reentrant functions in the SMALL model. +; IBPSTACK: Enable SMALL model reentrant stack +; Stack space for reentrant functions in the SMALL model. +IBPSTACK EQU 0 ; set to 1 if small reentrant is used. +; IBPSTACKTOP: End address of SMALL model stack <0x0-0xFF> +; Set the top of the stack to the highest location. +IBPSTACKTOP EQU 0xFF +1 ; default 0FFH+1 +; +; +; Stack Space for reentrant functions in the LARGE model. +; XBPSTACK: Enable LARGE model reentrant stack +; Stack space for reentrant functions in the LARGE model. +XBPSTACK EQU 0 ; set to 1 if large reentrant is used. +; XBPSTACKTOP: End address of LARGE model stack <0x0-0xFFFF> +; Set the top of the stack to the highest location. +XBPSTACKTOP EQU 0xFFFF +1 ; default 0FFFFH+1 +; +; +; Stack Space for reentrant functions in the COMPACT model. +; PBPSTACK: Enable COMPACT model reentrant stack +; Stack space for reentrant functions in the COMPACT model. +PBPSTACK EQU 0 ; set to 1 if compact reentrant is used. +; +; PBPSTACKTOP: End address of COMPACT model stack <0x0-0xFFFF> +; Set the top of the stack to the highest location. +PBPSTACKTOP EQU 0xFF +1 ; default 0FFH+1 +; +; +;------------------------------------------------------------------------------ +; +; Memory Page for Using the Compact Model with 64 KByte xdata RAM +; Compact Model Page Definition +; +; Define the XDATA page used for PDATA variables. +; PPAGE must conform with the PPAGE set in the linker invocation. +; +; Enable pdata memory page initalization +PPAGEENABLE EQU 0 ; set to 1 if pdata object are used. +; +; PPAGE number <0x0-0xFF> +; uppermost 256-byte address of the page used for PDATA variables. +PPAGE EQU 0 +; +; SFR address which supplies uppermost address byte <0x0-0xFF> +; most 8051 variants use P2 as uppermost address byte +PPAGE_SFR DATA 0A0H +; +; +;------------------------------------------------------------------------------ + +; Standard SFR Symbols +ACC DATA 0E0H +B DATA 0F0H +SP DATA 81H +DPL DATA 82H +DPH DATA 83H + + NAME ?C_STARTUP + + +?C_C51STARTUP SEGMENT CODE +?STACK SEGMENT IDATA + + RSEG ?STACK + DS 1 + + EXTRN CODE (?C_START) + PUBLIC ?C_STARTUP + + CSEG AT 0 +?C_STARTUP: LJMP STARTUP1 + + RSEG ?C_C51STARTUP + +STARTUP1: + +IF IDATALEN <> 0 + MOV R0,#IDATALEN - 1 + CLR A +IDATALOOP: MOV @R0,A + DJNZ R0,IDATALOOP +ENDIF + +IF XDATALEN <> 0 + MOV DPTR,#XDATASTART + MOV R7,#LOW (XDATALEN) + IF (LOW (XDATALEN)) <> 0 + MOV R6,#(HIGH (XDATALEN)) +1 + ELSE + MOV R6,#HIGH (XDATALEN) + ENDIF + CLR A +XDATALOOP: MOVX @DPTR,A + INC DPTR + DJNZ R7,XDATALOOP + DJNZ R6,XDATALOOP +ENDIF + +IF PPAGEENABLE <> 0 + MOV PPAGE_SFR,#PPAGE +ENDIF + +IF PDATALEN <> 0 + MOV R0,#LOW (PDATASTART) + MOV R7,#LOW (PDATALEN) + CLR A +PDATALOOP: MOVX @R0,A + INC R0 + DJNZ R7,PDATALOOP +ENDIF + +IF IBPSTACK <> 0 +EXTRN DATA (?C_IBP) + + MOV ?C_IBP,#LOW IBPSTACKTOP +ENDIF + +IF XBPSTACK <> 0 +EXTRN DATA (?C_XBP) + + MOV ?C_XBP,#HIGH XBPSTACKTOP + MOV ?C_XBP+1,#LOW XBPSTACKTOP +ENDIF + +IF PBPSTACK <> 0 +EXTRN DATA (?C_PBP) + MOV ?C_PBP,#LOW PBPSTACKTOP +ENDIF + + MOV SP,#?STACK-1 + +; This code is required if you use L51_BANK.A51 with Banking Mode 4 +; Code Banking +; Select Bank 0 for L51_BANK.A51 Mode 4 +#if 0 +; Initialize bank mechanism to code bank 0 when using L51_BANK.A51 with Banking Mode 4. +EXTRN CODE (?B_SWITCH0) + CALL ?B_SWITCH0 ; init bank mechanism to code bank 0 +#endif +; + LJMP ?C_START + + END diff --git a/c51/relay_controller/STC11.h b/c51/relay_controller/STC11.h new file mode 100644 index 0000000..9ab1a48 --- /dev/null +++ b/c51/relay_controller/STC11.h @@ -0,0 +1,347 @@ +#ifndef __STC12C5A60S2_H_ +#define __STC12C5A60S2_H_ + +///////////////////////////////////////////////// + +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ???????????? C51 Core SFRs +// 7 6 5 4 3 2 1 0 Reset Value +sfr ACC = 0xE0; //Accumulator 0000,0000 +sfr B = 0xF0; //B Register 0000,0000 +sfr PSW = 0xD0; //Program Status Word CY AC F0 RS1 RS0 OV F1 P 0000,0000 +//----------------------------------- +sbit CY = PSW^7; +sbit AC = PSW^6; +sbit F0 = PSW^5; +sbit RS1 = PSW^4; +sbit RS0 = PSW^3; +sbit OV = PSW^2; +sbit P = PSW^0; +//----------------------------------- +sfr SP = 0x81; //Stack Pointer 0000,0111 +sfr DPL = 0x82; //Data Pointer Low Byte 0000,0000 +sfr DPH = 0x83; //Data Pointer High Byte 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ?????????????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr PCON = 0x87; //Power Control SMOD SMOD0 LVDF POF GF1 GF0 PD IDL 0001,0000 +// 7 6 5 4 3 2 1 0 Reset Value +sfr AUXR = 0x8E; //Auxiliary Register T0x12 T1x12 UART_M0x6 BRTR S2SMOD BRTx12 EXTRAM S1BRS 0000,0000 +//----------------------------------- +sfr AUXR1 = 0xA2; //Auxiliary Register 1 - PCA_P4 SPI_P4 S2_P4 GF2 ADRJ - DPS 0000,0000 +/* +PCA_P4: + 0, ??PCA ?P1 ? + 1,PCA/PWM ?P1 ????P4 ?: ECI ?P1.2 ???P4.1 ?, + PCA0/PWM0 ?P1.3 ???P4.2 ? + PCA1/PWM1 ?P1.4 ???P4.3 ? +SPI_P4: + 0, ??SPI ?P1 ? + 1,SPI ?P1 ????P4 ?: SPICLK ?P1.7 ???P4.3 ? + MISO ?P1.6 ???P4.2 ? + MOSI ?P1.5 ???P4.1 ? + SS ?P1.4 ???P4.0 ? +S2_P4: + 0, ??UART2 ?P1 ? + 1,UART2 ?P1 ????P4 ?: TxD2 ?P1.3 ???P4.3 ? + RxD2 ?P1.2 ???P4.2 ? +GF2: ????? + +ADRJ: + 0, 10 ?A/D ??????8 ???ADC_RES ???, ?2 ???ADC_RESL ??? + 1,10 ?A/D ???????2 ???ADC_RES ?????2 ?, ?8 ???ADC_RESL ??? + +DPS: 0, ????????DPTR0 + 1,?????????DPTR1 +*/ +//----------------------------------- +sfr WAKE_CLKO = 0x8F; //??? SFR WAK1_CLKO +/* + 7 6 5 4 3 2 1 0 Reset Value + PCAWAKEUP RXD_PIN_IE T1_PIN_IE T0_PIN_IE LVD_WAKE _ T1CLKO T0CLKO 0000,0000B + +b7 - PCAWAKEUP : PCA ????? powerdown? +b6 - RXD_PIN_IE : ? P3.0(RXD) ????? RI ???? powerdown(????????)? +b5 - T1_PIN_IE : ? T1 ?????? T1 ???????? powerdown(????????)? +b4 - T0_PIN_IE : ? T0 ?????? T0 ???????? powerdown(????????)? +b3 - LVD_WAKE : ? CMPIN ?????? LVD ???????? powerdown(????????)? +b2 - +b1 - T1CLKO : ?? T1CKO(P3.5) ??? T1 ????,Fck1 = 1/2 T1 ??? +b0 - T0CLKO : ?? T0CKO(P3.4) ??? T0 ????,Fck0 = 1/2 T1 ??? +*/ +//----------------------------------- +sfr CLK_DIV = 0x97; //Clock Divder - - - - - CLKS2 CLKS1 CLKS0 xxxx,x000 +//----------------------------------- +sfr BUS_SPEED = 0xA1; //Stretch register - - ALES1 ALES0 - RWS2 RWS1 RWS0 xx10,x011 +/* +ALES1 and ALES0: +00 : The P0 address setup time and hold time to ALE negative edge is one clock cycle +01 : The P0 address setup time and hold time to ALE negative edge is two clock cycles. +10 : The P0 address setup time and hold time to ALE negative edge is three clock cycles. (default) +11 : The P0 address setup time and hold time to ALE negative edge is four clock cycles. + +RWS2,RWS1,RWS0: + 000 : The MOVX read/write pulse is 1 clock cycle. + 001 : The MOVX read/write pulse is 2 clock cycles. + 010 : The MOVX read/write pulse is 3 clock cycles. + 011 : The MOVX read/write pulse is 4 clock cycles. (default) + 100 : The MOVX read/write pulse is 5 clock cycles. + 101 : The MOVX read/write pulse is 6 clock cycles. + 110 : The MOVX read/write pulse is 7 clock cycles. + 111 : The MOVX read/write pulse is 8 clock cycles. +*/ +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ???????????? +//?????????????????????????,?????????? +//???????????,??? ??? 1T 8051?? ??????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr IE = 0xA8; //??????? EA ELVD EADC ES ET1 EX1 ET0 EX0 0x00,0000 +//----------------------- +sbit EA = IE^7; +sbit ELVD = IE^6; //????????? +sbit EADC = IE^5; //ADC ????? +sbit ES = IE^4; +sbit ET1 = IE^3; +sbit EX1 = IE^2; +sbit ET0 = IE^1; +sbit EX0 = IE^0; +//----------------------- +sfr IE2 = 0xAF; //Auxiliary Interrupt - - - - - - ESPI ES2 0000,0000B +//----------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr IP = 0xB8; //??????? PPCA PLVD PADC PS PT1 PX1 PT0 PX0 0000,0000 +//-------- +sbit PPCA = IP^7; //PCA ??????? +sbit PLVD = IP^6; //????????? +sbit PADC = IP^5; //ADC ????? +sbit PS = IP^4; +sbit PT1 = IP^3; +sbit PX1 = IP^2; +sbit PT0 = IP^1; +sbit PX0 = IP^0; +//----------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr IPH = 0xB7; //??????? PPCAH PLVDH PADCH PSH PT1H PX1H PT0H PX0H 0000,0000 +sfr IP2 = 0xB5; // - - - - - - PSPI PS2 xxxx,xx00 +sfr IPH2 = 0xB6; // - - - - - - PSPIH PS2H xxxx,xx00 +//----------------------- +//??? 1T 8051?? ???I/O ???????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr P0 = 0x80; //8 bitPort0 P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0.1 P0.0 1111,1111 +sbit P00 = P0^0; +sbit P01 = P0^1; +sbit P02 = P0^2; +sbit P03 = P0^3; +sbit P04 = P0^4; +sbit P05 = P0^5; +sbit P06 = P0^6; +sbit P07 = P0^7; +sfr P0M0 = 0x94; // 0000,0000 +sfr P0M1 = 0x93; // 0000,0000 +sfr P1 = 0x90; //8 bitPort1 P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 P1.0 1111,1111 +sbit P10 = P1^0; +sbit P11 = P1^1; +sbit P12 = P1^2; +sbit P13 = P1^3; +sbit P14 = P1^4; +sbit P15 = P1^5; +sbit P16 = P1^6; +sbit P17 = P1^7; +sfr P1M0 = 0x92; // 0000,0000 +sfr P1M1 = 0x91; // 0000,0000 +sfr P1ASF = 0x9D; //P1 analog special function +sfr P2 = 0xA0; //8 bitPort2 P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 1111,1111 +sbit P20 = P2^0; +sbit P21 = P2^1; +sbit P22 = P2^2; +sbit P23 = P2^3; +sbit P24 = P2^4; +sbit P25 = P2^5; +sbit P26 = P2^6; +sbit P27 = P2^7; +sfr P2M0 = 0x96; // 0000,0000 +sfr P2M1 = 0x95; // 0000,0000 +sfr P3 = 0xB0; //8 bitPort3 P3.7 P3.6 P3.5 P3.4 P3.3 P3.2 P3.1 P3.0 1111,1111 +sbit P30 = P3^0; +sbit P31 = P3^1; +sbit P32 = P3^2; +sbit P33 = P3^3; +sbit P34 = P3^4; +sbit P35 = P3^5; +sbit P36 = P3^6; +sbit P37 = P3^7; +sfr P3M0 = 0xB2; // 0000,0000 +sfr P3M1 = 0xB1; // 0000,0000 +sfr P4 = 0xC0; //8 bitPort4 P4.7 P4.6 P4.5 P4.4 P4.3 P4.2 P4.1 P4.0 1111,1111 +sbit P40 = P4^0; +sbit P41 = P4^1; +sbit P42 = P4^2; +sbit P43 = P4^3; +sbit P44 = P4^4; +sbit P45 = P4^5; +sbit P46 = P4^6; +sbit P47 = P4^7; +sfr P4M0 = 0xB4; // 0000,0000 +sfr P4M1 = 0xB3; // 0000,0000 +// 7 6 5 4 3 2 1 0 Reset Value +sfr P4SW = 0xBB; //Port-4 switch - LVD_P4.6 ALE_P4.5 NA_P4.4 - - - - x000,xxxx + +sfr P5 = 0xC8; //8 bitPort5 - - - - P5.3 P5.2 P5.1 P5.0 xxxx,1111 +sbit P50 = P5^0; +sbit P51 = P5^1; +sbit P52 = P5^2; +sbit P53 = P5^3; +sfr P5M0 = 0xCA; // 0000,0000 +sfr P5M1 = 0xC9; // 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ????????????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr TCON = 0x88; //T0/T1 Control TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 0000,0000 +//----------------------------------- +sbit TF1 = TCON^7; +sbit TR1 = TCON^6; +sbit TF0 = TCON^5; +sbit TR0 = TCON^4; +sbit IE1 = TCON^3; +sbit IT1 = TCON^2; +sbit IE0 = TCON^1; +sbit IT0 = TCON^0; +//----------------------------------- +sfr TMOD = 0x89; //T0/T1 Modes GATE1 C/T1 M1_1 M1_0 GATE0 C/T0 M0_1 M0_0 0000,0000 +sfr TL0 = 0x8A; //T0 Low Byte 0000,0000 +sfr TH0 = 0x8C; //T0 High Byte 0000,0000 +sfr TL1 = 0x8B; //T1 Low Byte 0000,0000 +sfr TH1 = 0x8D; //T1 High Byte 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ????????????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr SCON = 0x98; //Serial Control SM0/FE SM1 SM2 REN TB8 RB8 TI RI 0000,0000 +//----------------------------------- +sbit SM0 = SCON^7; //SM0/FE +sbit SM1 = SCON^6; +sbit SM2 = SCON^5; +sbit REN = SCON^4; +sbit TB8 = SCON^3; +sbit RB8 = SCON^2; +sbit TI = SCON^1; +sbit RI = SCON^0; +//----------------------------------- +sfr SBUF = 0x99; //Serial Data Buffer xxxx,xxxx +sfr SADEN = 0xB9; //Slave Address Mask 0000,0000 +sfr SADDR = 0xA9; //Slave Address 0000,0000 +//----------------------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr S2CON = 0x9A; //S2 Control S2SM0 S2SM1 S2SM2 S2REN S2TB8 S2RB8 S2TI S2RI 00000000B +sfr S2BUF = 0x9B; //S2 Serial Buffer xxxx,xxxx +sfr BRT = 0x9C; //S2 Baud-Rate Timer 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ???????????????? +sfr WDT_CONTR = 0xC1; //Watch-Dog-Timer Control register +// 7 6 5 4 3 2 1 0 Reset Value +// WDT_FLAG - EN_WDT CLR_WDT IDLE_WDT PS2 PS1 PS0 xx00,0000 +//----------------------- + +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ???PCA/PWM ??????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr CCON = 0xD8; //PCA ?????? CF CR - - - - CCF1 CCF0 00xx,xx00 +//----------------------- +sbit CF = CCON^7; //PCA???????,????????,??????0? +sbit CR = CCON^6; //1:?? PCA ?????, ??????0? +//- +//- +sbit CCF1 = CCON^1; //PCA ??1 ????, ?????, ??????0? +sbit CCF0 = CCON^0; //PCA ??0 ????, ?????, ??????0? +//----------------------- +sfr CMOD = 0xD9; //PCA ???????? CIDL - - - CPS2 CPS1 CPS0 ECF 0xxx,x000 +/* +CIDL: idle ??? PCA ?????????, 0: ????, 1: ????? + +CPS2: PCA ????????? 2? +CPS1: PCA ????????? 1? +CPS0: PCA ????????? 0? + CPS2 CPS1 CPS0 + 0 0 0 ?????? fosc/12? + 0 0 1 ?????? fosc/2? + 0 1 0 Timer0 ??? + 0 1 1 ? ECI/P3.4 ????????,?? fosc/2? + 1 0 0 ??????, Fosc/1 + 1 0 1 ??????/4,Fosc/4 + 1 1 0 ??????/6,Fosc/6 + 1 1 1 ??????/8,Fosc/8 + +ECF: PCA??????????, 1--?? CF(CCON.7) ????? +*/ +//----------------------- +sfr CL = 0xE9; //PCA ????? 0000,0000 +sfr CH = 0xF9; //PCA ????? 0000,0000 +//----------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr CCAPM0 = 0xDA; //PCA ??0 PWM ??? - ECOM0 CAPP0 CAPN0 MAT0 TOG0 PWM0 ECCF0 x000,0000 +sfr CCAPM1 = 0xDB; //PCA ??1 PWM ??? - ECOM1 CAPP1 CAPN1 MAT1 TOG1 PWM1 ECCF1 x000,0000 + +//ECOMn = 1:??????? +//CAPPn = 1:???????????? +//CAPNn = 1:???????????? +//MATn = 1:????????, ?? CCON ?? CCFn ??? +//TOGn = 1:????????, CEXn ???? +//PWMn = 1:? CEXn ??? PWM ??? +//ECCFn = 1:?? CCON ?? CCFn ????? + +//ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn +// 0 0 0 0 0 0 0 0x00 ???????? +// x 1 0 0 0 0 x 0x21 16?CEXn?????????? +// x 0 1 0 0 0 x 0x11 16?CEXn?????????? +// x 1 1 0 0 0 x 0x31 16?CEXn??(????)??????? +// 1 0 0 1 0 0 x 0x49 16??????? +// 1 0 0 1 1 0 x 0x4d 16???????? +// 1 0 0 0 0 1 0 0x42 8? PWM? + +//ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn +// 0 0 0 0 0 0 0 0x00 ???? +// 1 0 0 0 0 1 0 0x42 ??8?PWM, ??? +// 1 1 0 0 0 1 1 0x63 PWM??????????? +// 1 0 1 0 0 1 1 0x53 PWM??????????? +// 1 1 1 0 0 1 1 0x73 PWM????????????????? + +//----------------------- +sfr CCAP0L = 0xEA; //PCA ?? 0 ???/?????? 8 ?? 0000,0000 +sfr CCAP0H = 0xFA; //PCA ?? 0 ???/?????? 8 ?? 0000,0000 +sfr CCAP1L = 0xEB; //PCA ?? 1 ???/?????? 8 ?? 0000,0000 +sfr CCAP1H = 0xFB; //PCA ?? 1 ???/?????? 8 ?? 0000,0000 +//----------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr PCA_PWM0 = 0xF2; //PCA ??0 PWM ???? - - - - - - EPC0H EPC0L xxxx,xx00 +sfr PCA_PWM1 = 0xF3; //PCA ??1 PWM ???? - - - - - - EPC1H EPC1L xxxx,xx00 +//PCA_PWMn: 7 6 5 4 3 2 1 0 +// - - - - - - EPCnH EPCnL +//B7-B2: ?? +//B1(EPCnH): ? PWM ???,? CCAPnH ?? 9 ??? +//B0(EPCnL): ? PWM ???,? CCAPnL ?? 9 ??? +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ??? ADC ??????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr ADC_CONTR = 0xBC; //A/D ??????? ADC_POWER SPEED1 SPEED0 ADC_FLAG ADC_START CHS2 CHS1 CHS0 0000,0000 +sfr ADC_RES = 0xBD; //A/D ?????8? ADCV.9 ADCV.8 ADCV.7 ADCV.6 ADCV.5 ADCV.4 ADCV.3 ADCV.2 0000,0000 +sfr ADC_RESL = 0xBE; //A/D ?????2? ADCV.1 ADCV.0 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ??? SPI ??????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr SPCTL = 0xCE; //SPI Control Register SSIG SPEN DORD MSTR CPOL CPHA SPR1 SPR0 0000,0100 +sfr SPSTAT = 0xCD; //SPI Status Register SPIF WCOL - - - - - - 00xx,xxxx +sfr SPDAT = 0xCF; //SPI Data Register 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ??? IAP/ISP ??????? +sfr IAP_DATA = 0xC2; +sfr IAP_ADDRH = 0xC3; +sfr IAP_ADDRL = 0xC4; +// 7 6 5 4 3 2 1 0 Reset Value +sfr IAP_CMD = 0xC5; //IAP Mode Table 0 - - - - - MS1 MS0 0xxx,xx00 +sfr IAP_TRIG = 0xC6; +sfr IAP_CONTR = 0xC7; //IAP Control Register IAPEN SWBS SWRST CFAIL - WT2 WT1 WT0 0000,x000 +//-------------------------------------------------------------------------------- + +///////////////////////////////////////////////// + +#endif + diff --git a/c51/relay_controller/main.__i b/c51/relay_controller/main.__i new file mode 100644 index 0000000..6930b7c --- /dev/null +++ b/c51/relay_controller/main.__i @@ -0,0 +1 @@ +"main.c" ROM(COMPACT) BROWSE DEBUG OBJECTEXTEND TABS (2) \ No newline at end of file diff --git a/c51/relay_controller/main.c b/c51/relay_controller/main.c new file mode 100644 index 0000000..afe5d5b --- /dev/null +++ b/c51/relay_controller/main.c @@ -0,0 +1,200 @@ +/*------------------------------------------------------------------*/ +/* --- STC MCU Limited ---------------------------------------------*/ +/* --- STC10/11xx Series MCU UART (8-bit/9-bit)Demo ----------------*/ +/* --- Mobile: (86)13922805190 -------------------------------------*/ +/* --- Fax: 86-0513-55012956,55012947,55012969 ---------------------*/ +/* --- Tel: 86-0513-55012928,55012929,55012966----------------------*/ +/* --- Web: www.STCMCU.com -----------------------------------------*/ +/* --- Web: www.GXWMCU.com -----------------------------------------*/ +/* If you want to use the program or the program referenced in the */ +/* article, please specify in which data and procedures from STC */ +/*------------------------------------------------------------------*/ + +#include "STC11.h" +#include "intrins.h" + +typedef unsigned char BYTE; +typedef unsigned int WORD; + + +/*Define UART parity mode*/ +#define NONE_PARITY 0 //None parity +#define ODD_PARITY 1 //Odd parity +#define EVEN_PARITY 2 //Even parity +#define MARK_PARITY 3 //Mark parity +#define SPACE_PARITY 4 //Space parity + +#define PARITYBIT NONE_PARITY //Testing even parity + +#define UART_P1 0x80 //(AUXR1.7) switch RXD/TXD from P3.0/P3.1 to P1.6/P1.7 + + +sbit bit9 = P2^2; //P2.2 show UART data bit9 +bit busy; +bit recv_flag = 0; +bit overflow_flag = 0; +char recv_buf[30] = {0}; +char index = 0; +void SendData(BYTE dat); +void SendString(char *s); + +code char SetUp[30] = "ATE0\r\n"; +code char Connect[] = "AT+CIPSTART=\"TCP\",\"192.168.2.108\",8080\r\n"; +void P1_Uart(){ + AUXR1 &= 0x7f; + AUXR1 |= UART_P1; +} +void P3_Uart(){ + AUXR1 &= 0x7f; +} +void Delay3020ms() //@11.0592MHz +{ + unsigned char i, j, k; + + _nop_(); + _nop_(); + i = 127; + j = 233; + k = 148; + do + { + do + { + while (--k); + } while (--j); + } while (--i); +} + +void Delay1020us() //@11.0592MHz +{ + unsigned char i, j; + + i = 11; + j = 246; + do + { + while (--j); + } while (--i); +} +void Uart_Init(){ + PCON &= 0x7F; //?????? + SCON = 0x50; //8???,????? + AUXR |= 0x40; //???1???Fosc,?1T + AUXR &= 0xFE; //??1?????1??????? + TMOD &= 0x0F; //?????1??? + TMOD |= 0x20; //?????1?8??????? + TL1 = 0xFD; //?????? + TH1 = 0xFD; //???????? + ET1 = 0; //?????1?? + TR1 = 1; //?????1 +} + +void callbackUart(){ + if (recv_flag == 1 || overflow_flag == 1){ + P3_Uart(); + SendString(recv_buf); + recv_flag = 0; + overflow_flag = 0; + P1_Uart(); + } +} +void main() +{ + bit flag1 = 0; + bit flag2 = 0; + Delay3020ms(); + + Delay3020ms(); + Delay3020ms(); + Uart_Init(); + + P1M1 = 0x00; + P1M0 = 0x3f; // realy gpio init + + // open uart interrupt + ES = 1; + EA = 1; + REN = 1; + P1_Uart(); + Delay1020us(); + // close P1 input + //P1 = 0X00; + Delay1020us(); + + + while(1){ + if (flag1 == 0){ + flag1 = 1; + SendString(SetUp); + Delay3020ms(); + + } + callbackUart(); + if ((flag1 == 1) && (flag2 == 0)) { + flag2 = 1; + SendString(Connect); + Delay3020ms(); + + } + callbackUart(); + }; +} + +/*---------------------------- +UART interrupt service routine +----------------------------*/ +void Uart_Isr() interrupt 4 +{ + static char last_byte; + if (RI) + { + RI = 0; //Clear receive interrupt flag + if((last_byte == '\r') &&(SBUF == '\n' )&& (index != 1)) { + recv_flag = 1; + index = 0; + } + RI = 0; + recv_buf[index] = SBUF; + last_byte = SBUF; + index ++; + if(index > 29){ + index = 0; + overflow_flag = 1; + } + } + if (TI) + { + TI = 0; //Clear transmit interrupt flag + busy = 0; //Clear transmit busy flag + } +} + +/*---------------------------- +Send a byte data to UART +Input: dat (data to be sent) +Output:None +----------------------------*/ +void SendData(BYTE dat) +{ + while(busy == 1) return; + ACC = dat; //Calculate the even parity bit P (PSW.0) + + busy = 1; + SBUF = ACC; //Send data to UART buffer + while(busy == 1) ; +} + +/*---------------------------- +Send a string to UART +Input: s (address of string) +Output:None +----------------------------*/ +void SendString(char *s) +{ + while (*s != '\0') //Check the end of the string + { + Delay1020us(); + SendData(*s++); //Send current char and increment string ptr + } +} + diff --git a/c51/relay_controller/relay b/c51/relay_controller/relay new file mode 100644 index 0000000000000000000000000000000000000000..9cef2cc0864a5b4e7ae599c09a9934d3bf5f645e GIT binary patch literal 8957 zcmb6<3v^V~wfo-rPB8aWERn%%VMnG!olNFafTP?5z77v$Q{k%$PEAaL{_wGA)CeXEd z7CHCsv(NsVz4zH?pF4Eaz{R4#G`~-eCjzlVeY6At-4_ohCdF$4)z!tmP`Il87GF3D zaP@x|FZA%Vx~f|x*!`2Y=j8GT62coDo8aQCAn{w?(9%}YsQY4dHIssMHPJvYQS7UV z)y<2CO`gai9884gC&INMUm{QypHx;1(0ZbHp(2Qd2m;*(FBx9@TfxGdcp~Wcmn@ax zQX3fy^c1x=&h zgO(vdE6_|!leH*8VhMuS6^#aN35!>ccn#MEs;a{v?*vfAKr()F4CFPqk~qc}nn5uQ z;5VetPfJI`F=R=fpCMg9g8q;09OMSF0%!CbaNz4|nCm9%D=T|Xp8e>2&zeeEx#dOO zM@VG@P2EV#-vr=PHlyj4S5QUe0DOWzblAK)aH5A~xaqwlIL&<dexaME|0D3c%y)oA9PQ zq3}|i(qobimHHJ1?D8Zd!EiEEUsJOn8SsUm&_n+wNe&S}vX8<@m%0i)h4_kwaWpk_ z7kY|}X;!aG#ULZ3OA|nTMn5M>AU_BWXVhO)3NTCajH`%RwHb=k*{Trsp(pJ_nK<4ghqj6Ftdzb6ZoKHt`aG zBJG>17zj0VH-Nkc=SRW-htz9SQXm;=Yv~5(vqT;T`DH?59F5f`c|x@1%S+2jmv@1z zgY0T)YieEz&h0oi76In~J`)juGOgH{>&Ll0IQJu5QZQJDyJ4F$*-429;HWZ1G30f1 zf)lqICXL3sl8aj#mVi8f1o5i+n?c@0)*w=OJB^9AE%=tGsSAO;ncl=$KfVR(=f}V) zf#gi}bgcsUIC_J2vU49uj&K4k`W+le%tlj2)Tuea_O`a>#%_QU>b1Fz4Xv%IhQ?)v z4+^0~5$dFR7K6N%sH*+o>_TCz0lBay zE_o@0Ki9`$0LvJ-QVYm#eB6nS#mBN{cRsltptpDRnR_4p{e`1n9{a}uByz$TH>ReE zn*Nj?M4@A~GMZRU-E@F)+6;gzwV424*KPo~O1lwYg7zQO-9%jlfKRIg&^3(CiCPux zN6lPz%`T)>r3k8z|I<{JvQ37npSp7?+$~)uP~ai8j%MPX`IR~c;5TXv;5{`CFsvp3K2Ylc zK2qlbe5}sHU7*efIIb=L_*DHC%t4v1w9FjuXpnP*STR)LnMJDH>7GF0>H|lqd_}%i zbr0MPs|xeg&LJ3*^R-!eo_-ywa6-MErY!_Gquv4Vxtav{LR|##H?;xa?`jI*OSO@@ zCRm3;Tp2=^U_O>bK7QS_`;};SCq|2lb|;3v(|j%aiW?WQO&M|wIrFu#=0Ek&$uA!0 zd9Y&m+2QAgcc51JS{eTHIYtdT?zwokx@rn4Omo!}rH(N^=cr+)7>-!Oeed@gp44&E zBmZU+vY0x|U;WBbfcupefQOW20FNlG00YW$fE`LZz!ORbz%Hc=;71B>?cGWbz#io; zfPKmefS)LL13a(XOWkUK7nELr{YoFe8_F7hA!QwP>j4hZ`Soi$zuu+u>q9!feyiL^ z-By54lx^@l8p$P$^eP>Ug?QQ>{a>#KA4bT;V=*_DDo2&UBE#^1P=8UeG+J^d@PMYZ!WT7~0-lSfroZJ+NV* zz@@*Bn7)S}t8^h|SS}rK4h;-Rj9^6yv5jb+>$nmlcy$8*ARC$oNe-Gd@ zj}f74NAD{G02h=WQ0{${x*Y%x^)akD)W-qx)F%K&t2=Qot3L!7ukHf)hWaFRKcem_ z+{Wr|>Ym2EtnMMXd#QT{R-qkSmL2NEMoPx9Af?h`x{fM}T}&tCRyUfXNGp{j{g1=a z7Xv=&y#Arsw?*3Xg!vhDKL;q*UI3V^?FX2uy#!FAy$s;jUV&DzWi0OHB6SEbo`^+i zZ|U)A>BIVIT_xEH_@u5GZp@OM>Q?1Gb&Ix7c}Cr<<*VlxeH|lppW@O^Y0sz~vP=ES z-*NO}zE;%tvHm|ou}*amU?mn3*bM=!Q{STQ0Ki7|Ai$&QA%Mr!x8WL*P;8oXV#GK^ z#Qbv6^{9mem>97<16K-X*kpQzwvxNHr7C^Z_>K2~B@_`TkkhXu1!6wQR$)HDsl1~tTa595>CMQnJm0)~yC zW*7rS&=I^NP0b4 zCYoZ9S?j>$DjMs-Fs}o1Q3jr2((^AV<6e>*$E#g984biDi3J~{a8iaEJ^P!!DxM_# zYhu*!Pg_b8jxsX_`BUC){_By(jOnu>%rB;y#;P-C8$ z`~{BS0`{p{_q~C9oan_-$eC8R!r~*rWMYDi`A{s;ItYG?!@MpOGCkCdtS;xFvBU=( zk^UEZh)UqkkSKF+oI+hlUkRE8iLo~*Hd{=15qR)Rgv=NOYsc!hz6 z=_ZV)qG$~FnJ_Ji=+~Gq%U^H8h7Z$wkLPdBn!nXH|0VW=d6n^uutPfiU^Ocm=Ljrj zESPct!=%S5jzm$U3?WxaYNQeUZMNcHf+d1S+PegkWynPo3#;*+Xc+Fz!f&wQzpzU! zdvks4!ofJNE*6R-(@I3T%n7&JatswL)QHJltO(w#-mw&+5TO*qj+23s88y3L`(i1D zu!;Z70g+4w=a(gumB^QH)aco7@}&(=8-$v{*8x`c;wrQD5rKs#Mm~Z3pBJ;pY<}dyQk9UxU z8e12y50+jrb}QYGzil!}p8{zY4GR`&CJBV?`55mh7JNFDD-7XICfnLOk_E`tNL>_U z0PW`HqV-;3vZV*vj8Y0W+KvoQ!a>5%U?e^X&oJTtk82g{)4(Sv`EuUVO-^i;Z0{{X zyxn_P{aWzvIaZQ*+oQrUo}8UbmZP-HNaT~(A<7sMNYd^}QGtVB)53GZwdR>H{<5?Z zj3Yv9MB9>?I}h07eB^P6=|GF z1`B)T(j*w9S#;Z2JjN^Q(oGJzh^2tL*Ot7lv2h>=4BB7{nIVLUhLt>s@4V8}tYj>5 zZiJGYA7wa^#S-t787#>Tc4Oj&(t`JtLLlEi8=NO&)v=%;fOJ{MM>?mBfQX;|YA{&>;LygzfkrBFt8)}Eju2GsIi_=d}lpXwyfY3c0b=F=<5Wz zpArEz5=wANK!&PhDZT-*I~ito@r{S^3=`hN8H#`ZxMPH(TxUptAMZpXM%&mv)(C2QphSXOe)>MHMsbC8TBtmzL|FCT`0jfOup>FYi)1|@4}iu>^8F! znlOS_dUaRYXxptQZt1>Z91>-om1!cMjc5rI(N9CSn?#q&%D=M_ku~NZ%yD-sGpSmT z2vf~miAYK;WP)njap6Un8ZVvCDTeu+B6zKJTvYo9|Ak^77%VNGa}iD}W`11}KP>G) zE|>daQJlr44`DvYe$7r1snPgR?lkhs44m}w5i)sEppdCn*kCHr8Rl5$uLm4h3^V>f z7Cpmc-Ji4RlU<8DPg!O%Ouy0kB;x>|$%ITRqjL&ua2Ye9pW^B)CbVxeucg_c8$&!F zAhgoB4c?g=C+No{@xLDg{bj*vf$633GQ1a%H;FSfdZv>SeS< zdh#6pRXWc0NqFYfoNGRFs}l6IWkA!bQ@k_Y#9e#~1CXd>O%i5HI{Yd~ogIcMh(5=TFw# zu`@?c_q|?3zt$a8@ryK;jcP@(B3K=YCSr4RacMcP+Q!P=Xrc4!tCD-m+WXcW*Q4@j e{nZQd37x=`59!w-3rCtot CALLED SEGMENT START LENGTH START LENGTH +------------------------------------------------------------------ + BL51 BANKED LINKER/LOCATER V6.22 07/13/2019 21:58:43 PAGE 2 + + +?C_C51STARTUP ----- ----- ----- ----- + +--> ?PR?MAIN?MAIN + +--> ?C_INITSEG + +?PR?MAIN?MAIN 0020H.3 0000H.2 ----- ----- + +--> ?PR?DELAY3020MS?MAIN + +--> ?PR?UART_INIT?MAIN + +--> ?PR?P1_UART?MAIN + +--> ?PR?DELAY1020US?MAIN + +--> ?CO?MAIN + +--> ?PR?_SENDSTRING?MAIN + +--> ?PR?CALLBACKUART?MAIN + +?PR?_SENDSTRING?MAIN ----- ----- 0008H 0003H + +--> ?PR?DELAY1020US?MAIN + +--> ?PR?_SENDDATA?MAIN + +?PR?CALLBACKUART?MAIN ----- ----- ----- ----- + +--> ?PR?P3_UART?MAIN + +--> ?PR?_SENDSTRING?MAIN + +--> ?PR?P1_UART?MAIN + + + +SYMBOL TABLE OF MODULE: relay (?C_STARTUP) + + VALUE TYPE NAME + ---------------------------------- + + ------- MODULE ?C_STARTUP + C:0800H SEGMENT ?C_C51STARTUP + I:0041H SEGMENT ?STACK + C:0000H PUBLIC ?C_STARTUP + D:00E0H SYMBOL ACC + D:00F0H SYMBOL B + D:0083H SYMBOL DPH + D:0082H SYMBOL DPL + N:0000H SYMBOL IBPSTACK + N:0100H SYMBOL IBPSTACKTOP + N:0080H SYMBOL IDATALEN + C:0803H SYMBOL IDATALOOP + N:0000H SYMBOL PBPSTACK + N:0100H SYMBOL PBPSTACKTOP + N:0000H SYMBOL PDATALEN + N:0000H SYMBOL PDATASTART + N:0000H SYMBOL PPAGE + N:0000H SYMBOL PPAGEENABLE + D:00A0H SYMBOL PPAGE_SFR + D:0081H SYMBOL SP + C:0800H SYMBOL STARTUP1 + N:0000H SYMBOL XBPSTACK + N:0000H SYMBOL XBPSTACKTOP + N:0000H SYMBOL XDATALEN + N:0000H SYMBOL XDATASTART + C:0000H LINE# 126 + C:0800H LINE# 133 + C:0802H LINE# 134 + BL51 BANKED LINKER/LOCATER V6.22 07/13/2019 21:58:43 PAGE 3 + + + C:0803H LINE# 135 + C:0804H LINE# 136 + C:0806H LINE# 185 + C:0809H LINE# 196 + ------- ENDMOD ?C_STARTUP + + ------- MODULE MAIN + C:0000H SYMBOL _ICE_DUMMY_ + D:0092H PUBLIC P1M0 + C:0A3BH PUBLIC P1_Uart + D:0091H PUBLIC P1M1 + D:0080H PUBLIC P0 + D:0090H PUBLIC P1 + C:0A42H PUBLIC P3_Uart + D:00A0H PUBLIC P2 + D:00B0H PUBLIC P3 + D:00C0H PUBLIC P4 + D:00C8H PUBLIC P5 + B:00A8H.7 PUBLIC EA + C:0972H PUBLIC _SendString + C:0A25H PUBLIC _SendData + D:00A8H PUBLIC IE + C:09C6H PUBLIC Uart_Init + B:00A8H.4 PUBLIC ES + D:00B8H PUBLIC IP + C:0A16H PUBLIC Delay3020ms + D:0022H PUBLIC index + B:0098H.0 PUBLIC RI + B:0098H.1 PUBLIC TI + C:0A32H PUBLIC Delay1020us + D:00D8H PUBLIC CCON + C:088CH PUBLIC main + C:08DEH PUBLIC Uart_Isr + B:0020H.0 PUBLIC recv_flag + D:0099H PUBLIC SBUF + D:0087H PUBLIC PCON + D:0098H PUBLIC SCON + D:0089H PUBLIC TMOD + D:0088H PUBLIC TCON + D:008EH PUBLIC AUXR + B:0020H.1 PUBLIC busy + D:00E0H PUBLIC ACC + B:00A8H.3 PUBLIC ET1 + D:008DH PUBLIC TH1 + C:0949H PUBLIC Connect + C:09E3H PUBLIC callbackUart + D:0023H PUBLIC recv_buf + D:008BH PUBLIC TL1 + B:0088H.6 PUBLIC TR1 + B:0098H.4 PUBLIC REN + D:00A2H PUBLIC AUXR1 + C:092BH PUBLIC SetUp + B:0020H.2 PUBLIC overflow_flag + D:00D0H PUBLIC PSW + ------- PROC P1_UART + C:0A3BH LINE# 43 + C:0A3BH LINE# 44 + BL51 BANKED LINKER/LOCATER V6.22 07/13/2019 21:58:43 PAGE 4 + + + C:0A3EH LINE# 45 + C:0A41H LINE# 46 + ------- ENDPROC P1_UART + ------- PROC P3_UART + C:0A42H LINE# 47 + C:0A42H LINE# 48 + C:0A45H LINE# 49 + ------- ENDPROC P3_UART + ------- PROC DELAY3020MS + ------- DO + D:0007H SYMBOL i + D:0006H SYMBOL j + D:0005H SYMBOL k + ------- ENDDO + C:0A16H LINE# 50 + C:0A16H LINE# 51 + C:0A16H LINE# 54 + C:0A17H LINE# 55 + C:0A18H LINE# 56 + C:0A1AH LINE# 57 + C:0A1CH LINE# 58 + C:0A1EH LINE# 60 + C:0A1EH LINE# 62 + C:0A1EH LINE# 63 + C:0A20H LINE# 64 + C:0A22H LINE# 65 + C:0A24H LINE# 66 + ------- ENDPROC DELAY3020MS + ------- PROC DELAY1020US + ------- DO + D:0007H SYMBOL i + D:0006H SYMBOL j + ------- ENDDO + C:0A32H LINE# 68 + C:0A32H LINE# 69 + C:0A32H LINE# 72 + C:0A34H LINE# 73 + C:0A36H LINE# 75 + C:0A36H LINE# 76 + C:0A38H LINE# 77 + C:0A3AH LINE# 78 + ------- ENDPROC DELAY1020US + ------- PROC UART_INIT + C:09C6H LINE# 79 + C:09C6H LINE# 80 + C:09C9H LINE# 81 + C:09CCH LINE# 82 + C:09CFH LINE# 83 + C:09D2H LINE# 84 + C:09D5H LINE# 85 + C:09D8H LINE# 86 + C:09DBH LINE# 87 + C:09DEH LINE# 88 + C:09E0H LINE# 89 + C:09E2H LINE# 90 + ------- ENDPROC UART_INIT + ------- PROC CALLBACKUART + BL51 BANKED LINKER/LOCATER V6.22 07/13/2019 21:58:43 PAGE 5 + + + C:09E3H LINE# 92 + C:09E3H LINE# 93 + C:09E9H LINE# 94 + C:09ECH LINE# 95 + C:09F5H LINE# 96 + C:09F7H LINE# 97 + C:09F9H LINE# 98 + C:09FCH LINE# 99 + C:09FCH LINE# 100 + ------- ENDPROC CALLBACKUART + ------- PROC MAIN + ------- DO + B:0020H.3 SYMBOL flag1 + B:0020H.4 SYMBOL flag2 + ------- ENDDO + C:088CH LINE# 101 + C:088CH LINE# 102 + C:088CH LINE# 103 + C:088EH LINE# 104 + C:0890H LINE# 105 + C:0893H LINE# 107 + C:0896H LINE# 108 + C:0899H LINE# 109 + C:089CH LINE# 111 + C:089FH LINE# 112 + C:08A2H LINE# 115 + C:08A4H LINE# 116 + C:08A6H LINE# 117 + C:08A8H LINE# 118 + C:08ABH LINE# 119 + C:08AEH LINE# 122 + C:08B1H LINE# 125 + C:08B1H LINE# 126 + C:08B4H LINE# 127 + C:08B6H LINE# 128 + C:08BFH LINE# 129 + C:08C2H LINE# 131 + C:08C2H LINE# 132 + C:08C5H LINE# 133 + C:08CBH LINE# 134 + C:08CDH LINE# 135 + C:08D6H LINE# 136 + C:08D9H LINE# 138 + C:08D9H LINE# 139 + C:08DCH LINE# 140 + ------- ENDPROC MAIN + ------- PROC UART_ISR + ------- DO + D:0021H SYMBOL last_byte + ------- ENDDO + C:08DEH LINE# 146 + C:08E7H LINE# 149 + C:08EAH LINE# 150 + C:08EAH LINE# 151 + C:08ECH LINE# 152 + C:08FCH LINE# 153 + C:08FEH LINE# 154 + BL51 BANKED LINKER/LOCATER V6.22 07/13/2019 21:58:43 PAGE 6 + + + C:0901H LINE# 155 + C:0901H LINE# 156 + C:0903H LINE# 157 + C:090AH LINE# 158 + C:090DH LINE# 159 + C:090FH LINE# 160 + C:0918H LINE# 161 + C:091BH LINE# 162 + C:091DH LINE# 163 + C:091DH LINE# 164 + C:091DH LINE# 165 + C:0920H LINE# 166 + C:0920H LINE# 167 + C:0922H LINE# 168 + C:0924H LINE# 169 + C:0924H LINE# 170 + ------- ENDPROC UART_ISR + ------- PROC _SENDDATA + D:0007H SYMBOL dat + C:0A25H LINE# 177 + C:0A25H LINE# 178 + C:0A25H LINE# 179 + C:0A29H LINE# 180 + C:0A2AH LINE# 182 + C:0A2CH LINE# 183 + C:0A2EH LINE# 184 + C:0A31H LINE# 185 + ------- ENDPROC _SENDDATA + ------- PROC _SENDSTRING + D:0008H SYMBOL s + C:0972H LINE# 192 + C:0978H LINE# 193 + C:0978H LINE# 194 + C:0983H LINE# 195 + C:0983H LINE# 196 + C:0986H LINE# 197 + C:099BH LINE# 198 + C:099DH LINE# 199 + ------- ENDPROC _SENDSTRING + ------- ENDMOD MAIN + + ------- MODULE ?C?CLDPTR + C:09FDH PUBLIC ?C?CLDPTR + ------- ENDMOD ?C?CLDPTR + +****************************************************************************** +* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 01B2H BYTE (21%) * +****************************************************************************** + +Program Size: data=44.5 xdata=0 code=588 +LINK/LOCATE RUN COMPLETE. 0 WARNING(S), 0 ERROR(S) diff --git a/c51/relay_controller/relay.hex b/c51/relay_controller/relay.hex new file mode 100644 index 0000000..d20869b --- /dev/null +++ b/c51/relay_controller/relay.hex @@ -0,0 +1,49 @@ +:03000000020800F3 +:0C080000787FE4F6D8FD758140020847BF +:10092B00415445300D0A000000000000000000009B +:10093B000000000000000000000000000000415417 +:10094B002B43495053544152543D22544350222C73 +:10095B00223139322E3136382E322E313038222C8C +:07096B00383038300D0A009E +:10099E00C100C1021E230000000000000000000084 +:1009AE000000000000000000000000000000000039 +:0709BE00000000000122000F +:070A3B0053A27F43A28022B9 +:040A420053A27F221A +:0E0A160000007F7F7EE97D94DDFEDEFCDFFACE +:010A240022AF +:080A32007F0B7EF6DEFEDFFC07 +:010A3A002299 +:1009C60053877F759850438E40538EFE53890F434D +:0D09D6008920758BFD758DFDC2ABD28E2280 +:1009E300200003300213120A427B007A007923129B +:0A09F3000972C200C202120A3B2280 +:10088C00C203C204120A16120A16120A161209C65A +:10089C00E4F59175923FD2ACD2AFD29C120A3B12C6 +:1008AC000A32120A3220030ED2037BFF7A09792B0B +:1008BC00120972120A161209E330031120040ED227 +:1008CC00047BFF7A097949120972120A161209E39C +:0208DC0080D3C7 +:030023000208DEF2 +:0908DE00C0E0C0D075D000C000DC +:1008E700309833C298E521B40D10E599B40A0BE5A9 +:1008F7002264016005D200752200C2987423252264 +:10090700F8A6998599210522D3E5226480949D4014 +:0D09170005752200D202309904C299C20178 +:07092400D000D0D0D0E0327A +:0D0A250030010122EFD201F5992001FD22E0 +:100972008B088A09890AAB08AA09A90A1209FD602B +:100982001A120A32AB08050AE50AAA097002050919 +:0C09920014F91209FDFF120A2580DB2277 +:10080C0002088CE493A3F8E493A34003F68001F26E +:10081C0008DFF48029E493A3F85407240CC8C333ED +:10082C00C4540F4420C8834004F456800146F6DFBC +:10083C00E4800B010204081020408090099EE47EA5 +:10084C00019360BCA3FF543F30E509541FFEE493B1 +:10085C00A360010ECF54C025E060A840B8E493A378 +:10086C00FAE493A3F8E493A3C8C582C8CAC583CAA3 +:10087C00F0A3C8C582C8CAC583CADFE9DEE780BE5B +:0109C5000031 +:1009FD00BB010689828A83E0225002E722BBFE02F8 +:090A0D00E32289828A83E493222A +:00000001FF diff --git a/c51/relay_controller/relay.lnp b/c51/relay_controller/relay.lnp new file mode 100644 index 0000000..ef91508 --- /dev/null +++ b/c51/relay_controller/relay.lnp @@ -0,0 +1,4 @@ +"STARTUP.obj", +"main.obj" +TO "relay" +RAMSIZE(256) diff --git a/c51/relay_controller/relay.plg b/c51/relay_controller/relay.plg new file mode 100644 index 0000000..6b05027 --- /dev/null +++ b/c51/relay_controller/relay.plg @@ -0,0 +1,636 @@ + + +
+

µVision Build Log

+

Project:

+D:\project\relay_controller\relay.uvproj +Project File Date: 07/08/2019 + +

Output:

+Build target 'Target 1' +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=495 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=39.3 xdata=0 code=498 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=39.3 xdata=0 code=507 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=39.3 xdata=0 code=505 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(112): warning C206: 'Delay1020sus': missing function-prototype +linking... +*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) +*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) + ADDRESS: 08AEH +Program Size: data=39.3 xdata=0 code=505 +creating hex file from "relay"... +"relay" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(112): warning C206: 'Delay1020sus': missing function-prototype +linking... +*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) +*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) + ADDRESS: 08AEH +Program Size: data=39.3 xdata=0 code=505 +creating hex file from "relay"... +"relay" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(111): warning C206: 'Delay1020sus': missing function-prototype +linking... +*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) +*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) + ADDRESS: 08AEH +Program Size: data=39.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(111): warning C206: 'Delay1020sus': missing function-prototype +linking... +*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) +*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) + ADDRESS: 08AEH +Program Size: data=39.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(111): warning C206: 'Delay1020sus': missing function-prototype +linking... +*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) +*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) + ADDRESS: 08AEH +Program Size: data=39.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(111): warning C206: 'Delay1020sus': missing function-prototype +linking... +*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) +*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) + ADDRESS: 08AEH +Program Size: data=39.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(111): warning C206: 'Delay1020sus': missing function-prototype +linking... +*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) +*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) + ADDRESS: 08EFH +Program Size: data=39.3 xdata=0 code=496 +creating hex file from "relay"... +"relay" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(112): warning C206: 'Delay1020sus': missing function-prototype +linking... +*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) +*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) + ADDRESS: 08ABH +Program Size: data=39.3 xdata=0 code=499 +creating hex file from "relay"... +"relay" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(112): warning C206: 'Delay1020sus': missing function-prototype +linking... +*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) +*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL + SYMBOL: DELAY1020SUS + MODULE: main.obj (MAIN) + ADDRESS: 08ABH +Program Size: data=39.3 xdata=0 code=499 +creating hex file from "relay"... +"relay" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=495 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=490 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=495 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=495 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=495 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +compiling main.c... +main.c - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=495 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=495 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=492 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=492 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=495 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=490 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=493 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=493 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=499 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=499 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=499 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=499 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(114): error C202: 'TXEN': undefined identifier +Target not created +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=511 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=511 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=512 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=494 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=491 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?DELAY3020MS?MAIN +Program Size: data=39.3 xdata=0 code=488 +creating hex file from "relay"... +"relay" - 0 Error(s), 1 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=39.3 xdata=0 code=497 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=39.3 xdata=0 code=497 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +linking... +Program Size: data=44.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=502 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=508 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=508 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=508 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=508 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=508 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +linking... +Program Size: data=44.3 xdata=0 code=508 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=508 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=587 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=596 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=596 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +linking... +Program Size: data=44.5 xdata=0 code=596 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Rebuild target 'Target 1' +assembling STARTUP.A51... +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=587 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=587 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +linking... +Program Size: data=44.5 xdata=0 code=587 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=568 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.3 xdata=0 code=549 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(93): error C141: syntax error near 'sbit' +main.c(93): error C202: 'flag1': undefined identifier +main.c(94): error C141: syntax error near 'sbit' +main.c(94): error C202: 'flag2': undefined identifier +main.c(117): error C202: 'flag1': undefined identifier +main.c(118): error C202: 'flag1': undefined identifier +main.c(121): error C202: 'flag1': undefined identifier +main.c(122): error C202: 'flag1': undefined identifier +Target not created +Build target 'Target 1' +compiling main.c... +main.c(93): error C141: syntax error near 'sbit' +main.c(93): error C202: 'flag2': undefined identifier +main.c(94): error C141: syntax error near 'sbit' +main.c(94): error C202: 'flag1': undefined identifier +main.c(116): error C202: 'flag1': undefined identifier +main.c(117): error C202: 'flag1': undefined identifier +main.c(120): error C202: 'flag1': undefined identifier +main.c(121): error C202: 'flag1': undefined identifier +Target not created +compiling main.c... +main.c(93): error C141: syntax error near 'sbit' +main.c(93): error C202: 'flag2': undefined identifier +main.c(94): error C141: syntax error near 'sbit' +main.c(94): error C202: 'flag1': undefined identifier +main.c(116): error C202: 'flag1': undefined identifier +main.c(117): error C202: 'flag1': undefined identifier +main.c(120): error C202: 'flag1': undefined identifier +main.c(121): error C202: 'flag1': undefined identifier +main.c - 8 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +main.c(93): error C141: syntax error near 'sbit' +main.c(93): error C202: 'flag2': undefined identifier +main.c(94): error C141: syntax error near 'sbit' +main.c(94): error C202: 'flag1': undefined identifier +main.c(116): error C202: 'flag1': undefined identifier +main.c(117): error C202: 'flag1': undefined identifier +main.c(120): error C202: 'flag1': undefined identifier +main.c(121): error C202: 'flag1': undefined identifier +Target not created +Build target 'Target 1' +compiling main.c... +main.c(93): error C202: 'bool': undefined identifier +main.c(93): error C141: syntax error near 'flag1' +main.c(94): error C202: 'bool': undefined identifier +main.c(94): error C141: syntax error near 'flag2' +main.c(116): error C202: 'flag1': undefined identifier +main.c(117): error C202: 'flag1': undefined identifier +main.c(120): error C202: 'flag1': undefined identifier +main.c(121): error C202: 'flag1': undefined identifier +Target not created +Build target 'Target 1' +compiling main.c... +main.c(94): error C202: 'bool': undefined identifier +main.c(94): error C141: syntax error near 'flag2' +main.c(120): error C202: 'flag2': undefined identifier +Target not created +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=575 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=575 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +linking... +Program Size: data=44.5 xdata=0 code=575 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=596 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=597 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +linking... +Program Size: data=44.5 xdata=0 code=597 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=603 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=577 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=605 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +linking... +Program Size: data=44.5 xdata=0 code=605 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=601 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=603 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +Program Size: data=44.5 xdata=0 code=588 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). +Build target 'Target 1' +linking... +Program Size: data=44.5 xdata=0 code=588 +creating hex file from "relay"... +"relay" - 0 Error(s), 0 Warning(s). diff --git a/c51/relay_controller/relay.uvgui.Administrator b/c51/relay_controller/relay.uvgui.Administrator new file mode 100644 index 0000000..8ba6928 --- /dev/null +++ b/c51/relay_controller/relay.uvgui.Administrator @@ -0,0 +1,1412 @@ + + + + -4.1 + +
### uVision Project, (C) Keil Software
+ + + + + + 38003 + Registers + 115 117 + + + 346 + Code Coverage + 636 160 + + + 204 + Performance Analyzer + 796 + + + + + + 1506 + Symbols + + 133 133 133 + + + 1936 + Watch 1 + + 133 133 133 + + + 1937 + Watch 2 + + 133 133 133 + + + 1935 + Call Stack + Locals + + 133 133 133 + + + 2506 + Trace Data + + 75 135 130 95 70 230 200 + + + + + 1938 + Run Time Environment + + 0 250 30 60 60 500 -1 21844 -21846 + + + + + 1 + 1 + 0 + + + + + + + 44 + 2 + 3 + + -32000 + -32040 + + + -1 + -1 + + + 200 + 200 + 1280 + 825 + + + + 0 + + 358 + 01000000040000000100000001000000010000000100000000000000020000000000000001000000010000000000000028000000280000000100000003000000000000000100000022443A5C70726F6A6563745C72656C61795F636F6E74726F6C6C65725C6D61696E2E6300000000066D61696E2E6300000000FFDC7800FFFFFFFF27443A5C70726F6A6563745C72656C61795F636F6E74726F6C6C65725C535441525455502E413531000000000B535441525455502E41353100000000BECEA100FFFFFFFF23443A5C70726F6A6563745C72656C61795F636F6E74726F6C6C65725C53544331312E68000000000753544331312E6800000000BECEA100FFFFFFFF0100000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD500010000000000000002000000F60000008D00000000050000CF020000 + + + + 0 + Build + + -1 + -1 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 8A0000004F000000B0030000D7000000 + + + 16 + DD000000E00000000304000068010000 + + + + 1005 + 1005 + 1 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000066000000EF00000078020000 + + + 16 + 210000005F000000A70000007F020000 + + + + 109 + 109 + 1 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000066000000EF00000078020000 + + + 16 + 210000005F000000A70000007F020000 + + + + 1465 + 1465 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 1466 + 1466 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 1467 + 1467 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 1468 + 1468 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 1506 + 1506 + 0 + 0 + 0 + 0 + 32767 + 0 + 16384 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 1913 + 1913 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 8D00000066000000AD030000BE000000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 1935 + 1935 + 0 + 0 + 0 + 0 + 32767 + 0 + 32768 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 1936 + 1936 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 1937 + 1937 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 1938 + 1938 + 0 + 0 + 0 + 0 + 32767 + 0 + 16384 + 0 + + 16 + 00000000000000000D01000020020000 + + + 16 + 210000005F0000002E0100007F020000 + + + + 1939 + 1939 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 1940 + 1940 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 1941 + 1941 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 1942 + 1942 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 195 + 195 + 1 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000066000000EF00000078020000 + + + 16 + 210000005F000000A70000007F020000 + + + + 196 + 196 + 1 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000066000000EF00000078020000 + + + 16 + 210000005F000000A70000007F020000 + + + + 197 + 197 + 1 + 0 + 0 + 0 + 32767 + 0 + 32768 + 0 + + 16 + 00000000A902000000050000AF030000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 198 + 198 + 0 + 0 + 0 + 0 + 32767 + 0 + 32768 + 0 + + 16 + 00000000F9010000B003000095020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 199 + 199 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 03000000AC020000FD04000096030000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 203 + 203 + 0 + 0 + 0 + 0 + 32767 + 0 + 8192 + 0 + + 16 + 8D00000066000000AD030000BE000000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 204 + 204 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 8D00000066000000AD030000BE000000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 221 + 221 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 00000000000000000000000000000000 + + + 16 + 0A0000000A0000006E0000006E000000 + + + + 2506 + 2506 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 2507 + 2507 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 343 + 343 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 8D00000066000000AD030000BE000000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 346 + 346 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 8D00000066000000AD030000BE000000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 35824 + 35824 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 8D00000066000000AD030000BE000000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 35885 + 35885 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35886 + 35886 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35887 + 35887 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35888 + 35888 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35889 + 35889 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35890 + 35890 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35891 + 35891 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35892 + 35892 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35893 + 35893 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35894 + 35894 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35895 + 35895 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35896 + 35896 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35897 + 35897 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35898 + 35898 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35899 + 35899 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35900 + 35900 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35901 + 35901 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35902 + 35902 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35903 + 35903 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35904 + 35904 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 35905 + 35905 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 2302000066000000AD030000F0010000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 38003 + 38003 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000066000000EF00000078020000 + + + 16 + 210000005F000000A70000007F020000 + + + + 38007 + 38007 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 03000000AC020000FD04000096030000 + + + 16 + 210000005F000000F9010000E7000000 + + + + 436 + 436 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 03000000AC020000FD04000096030000 + + + 16 + 210000005F000000A70000007F020000 + + + + 437 + 437 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 440 + 440 + 0 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 0300000010020000AD0300007C020000 + + + 16 + 210000005F000000B1010000EF010000 + + + + 59392 + 59392 + 1 + 0 + 0 + 0 + 940 + 0 + 8192 + 0 + + 16 + 0000000000000000B70300001C000000 + + + 16 + 0A0000000A0000006E0000006E000000 + + + + 59393 + 0 + 1 + 0 + 0 + 0 + 32767 + 0 + 4096 + 0 + + 16 + 00000000AF03000000050000C2030000 + + + 16 + 0A0000000A0000006E0000006E000000 + + + + 59399 + 59399 + 1 + 0 + 0 + 0 + 439 + 0 + 8192 + 1 + + 16 + 000000001C000000C201000038000000 + + + 16 + 0A0000000A0000006E0000006E000000 + + + + 59400 + 59400 + 0 + 0 + 0 + 0 + 612 + 0 + 8192 + 2 + + 16 + 00000000380000006F02000054000000 + + + 16 + 0A0000000A0000006E0000006E000000 + + + + 2715 + 000000000D000000000000000020000000000000FFFFFFFFFFFFFFFF8A000000D7000000B0030000DB000000000000000100000004000000010000000000000000000000FFFFFFFF06000000CB00000057010000CC000000F08B00005A01000079070000FFFF02000B004354616262656450616E650020000000000000DD000000E000000003040000680100008A0000004F000000B0030000D70000000000000040280046060000000B446973617373656D626C7900000000CB00000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A6572000000005701000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A657200000000CC00000001000000FFFFFFFFFFFFFFFF0E4C6F67696320416E616C797A657200000000F08B000001000000FFFFFFFFFFFFFFFF0D436F646520436F766572616765000000005A01000001000000FFFFFFFFFFFFFFFF11496E737472756374696F6E205472616365000000007907000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFCB00000001000000FFFFFFFFCB000000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000920700000000000000000000000000000000000001000000920700000100000092070000000000000040000000000000FFFFFFFFFFFFFFFF1C0200004F0000002002000009020000000000000200000004000000010000000000000000000000FFFFFFFF17000000E2050000CA0900002D8C00002E8C00002F8C0000308C0000318C0000328C0000338C0000348C0000358C0000368C0000378C0000388C0000398C00003A8C00003B8C00003C8C00003D8C00003E8C00003F8C0000408C0000418C00000180004000000000000073020000E0000000030400009A020000200200004F000000B0030000090200000000000040410046170000000753796D626F6C7300000000E205000001000000FFFFFFFFFFFFFFFF0A5472616365204461746100000000CA09000001000000FFFFFFFFFFFFFFFF00000000002D8C000001000000FFFFFFFFFFFFFFFF00000000002E8C000001000000FFFFFFFFFFFFFFFF00000000002F8C000001000000FFFFFFFFFFFFFFFF0000000000308C000001000000FFFFFFFFFFFFFFFF0000000000318C000001000000FFFFFFFFFFFFFFFF0000000000328C000001000000FFFFFFFFFFFFFFFF0000000000338C000001000000FFFFFFFFFFFFFFFF0000000000348C000001000000FFFFFFFFFFFFFFFF0000000000358C000001000000FFFFFFFFFFFFFFFF0000000000368C000001000000FFFFFFFFFFFFFFFF0000000000378C000001000000FFFFFFFFFFFFFFFF0000000000388C000001000000FFFFFFFFFFFFFFFF0000000000398C000001000000FFFFFFFFFFFFFFFF00000000003A8C000001000000FFFFFFFFFFFFFFFF00000000003B8C000001000000FFFFFFFFFFFFFFFF00000000003C8C000001000000FFFFFFFFFFFFFFFF00000000003D8C000001000000FFFFFFFFFFFFFFFF00000000003E8C000001000000FFFFFFFFFFFFFFFF00000000003F8C000001000000FFFFFFFFFFFFFFFF0000000000408C000001000000FFFFFFFFFFFFFFFF0000000000418C000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFE205000001000000FFFFFFFFE2050000000000000010000001000000FFFFFFFFFFFFFFFFF20000004F000000F600000091020000010000000200001004000000010000007CFFFFFF71040000FFFFFFFF05000000ED0300006D000000C3000000C4000000739400000180001000000100000053000000E00000004501000022030000000000004F000000F2000000910200000000000040140056050000000750726F6A65637401000000ED03000001000000FFFFFFFFFFFFFFFF05426F6F6B73010000006D00000001000000FFFFFFFFFFFFFFFF0946756E6374696F6E7301000000C300000001000000FFFFFFFFFFFFFFFF0954656D706C6174657301000000C400000001000000FFFFFFFFFFFFFFFF09526567697374657273000000007394000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFED03000001000000FFFFFFFFED030000000000000080000000000000FFFFFFFFFFFFFFFF00000000F5010000B0030000F901000000000000010000000400000001000000000000000000000000000000000000000000000001000000C6000000FFFFFFFF0E0000008F070000930700009407000095070000960700009007000091070000B5010000B8010000B9050000BA050000BB050000BC050000CB09000001800080000000000000530000008A020000030400002603000000000000F9010000B00300009502000000000000404100460E0000001343616C6C20537461636B202B204C6F63616C73000000008F07000001000000FFFFFFFFFFFFFFFF0755415254202331000000009307000001000000FFFFFFFFFFFFFFFF0755415254202332000000009407000001000000FFFFFFFFFFFFFFFF0755415254202333000000009507000001000000FFFFFFFFFFFFFFFF15446562756720287072696E74662920566965776572000000009607000001000000FFFFFFFFFFFFFFFF0757617463682031000000009007000001000000FFFFFFFFFFFFFFFF0757617463682032000000009107000001000000FFFFFFFFFFFFFFFF10547261636520457863657074696F6E7300000000B501000001000000FFFFFFFFFFFFFFFF0E4576656E7420436F756E7465727300000000B801000001000000FFFFFFFFFFFFFFFF084D656D6F7279203100000000B905000001000000FFFFFFFFFFFFFFFF084D656D6F7279203200000000BA05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203300000000BB05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203400000000BC05000001000000FFFFFFFFFFFFFFFF105472616365204E617669676174696F6E00000000CB09000001000000FFFFFFFFFFFFFFFFFFFFFFFF0000000001000000000000000000000001000000FFFFFFFFD8010000F9010000DC0100009502000000000000020000000400000000000000000000000000000000000000000000000000000002000000C6000000FFFFFFFF8F07000001000000FFFFFFFF8F07000001000000C6000000000000000080000001000000FFFFFFFFFFFFFFFF000000009102000000050000950200000100000001000010040000000100000031FDFFFF86000000FFFFFFFF04000000C5000000C7000000B4010000779400000180008000000100000053000000260300005305000040040000000000009502000000050000AF0300000000000040820056040000000C4275696C64204F757470757401000000C500000001000000FFFFFFFFFFFFFFFF0D46696E6420496E2046696C657300000000C700000001000000FFFFFFFFFFFFFFFF0A4572726F72204C69737400000000B401000001000000FFFFFFFFFFFFFFFF0742726F77736572000000007794000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFC500000001000000FFFFFFFFC5000000000000000000000000000000 + + + 59392 + File + + 2125 + 00200000010000002800FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000000000000000000000000000000000000000100000001000000018001E100000000000001000000000000000000000000000000000100000001000000018003E1000000000000020000000000000000000000000000000001000000010000000180CD7F0000000000000300000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018023E100000000040004000000000000000000000000000000000100000001000000018022E100000000040005000000000000000000000000000000000100000001000000018025E10000000000000600000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001802BE10000000000000700000000000000000000000000000000010000000100000001802CE10000000004000800000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001807A8A0000000000000900000000000000000000000000000000010000000100000001807B8A0000000004000A00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180D3B00000000000000B000000000000000000000000000000000100000001000000018015B10000000004000C0000000000000000000000000000000001000000010000000180F4B00000000004000D000000000000000000000000000000000100000001000000018036B10000000004000E00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FF88000000000400460000000000000000000000000000000001000000010000000180FE880000000004004500000000000000000000000000000000010000000100000001800B810000000004001300000000000000000000000000000000010000000100000001800C810000000004001400000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180F0880000020000000F000000000000000000000000000000000100000001000000FFFF0100120043555646696E64436F6D626F427574746F6EE8030000000000000000000000000000000000000000000000010000000100000096000000020020500000000002503196000000000000000D000274780250310750315F5561727402726909726563765F666C61670462757379044D61726B014109504152495459424954023F3F083F3F3F3F3F3F3F3F0475696E7402503000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018024E10000000000001100000000000000000000000000000000010000000100000001800A810000000000001200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018022800000020000001500000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C488000000000000160000000000000000000000000000000001000000010000000180C988000000000400180000000000000000000000000000000001000000010000000180C788000000000000190000000000000000000000000000000001000000010000000180C8880000000000001700000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E4C010000020001001A0000000F50726F6A6563742057696E646F7773000000000000000000000000010000000100000000000000000000000100000008002880DD880000000000001A0000000750726F6A656374000000000000000000000000010000000100000000000000000000000100000000002880DC8B0000000000003A00000005426F6F6B73000000000000000000000000010000000100000000000000000000000100000000002880E18B0000000000003B0000000946756E6374696F6E73000000000000000000000000010000000100000000000000000000000100000000002880E28B000000000000400000000954656D706C6174657300000000000000000000000001000000010000000000000000000000010000000000288018890000000000003D0000000E536F757263652042726F777365720000000000000000000000000100000001000000000000000000000001000000000028800000000000000400FFFFFFFF00000000000000000001000000000000000100000000000000000000000100000000002880D988000000000000390000000C4275696C64204F7574707574000000000000000000000000010000000100000000000000000000000100000000002880E38B000000000000410000000B46696E64204F75747075740000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FB7F0000000000001B000000000000000000000000000000000100000001000000000000000446696C65AC030000 + + + 1423 + 2800FFFF01001100434D4643546F6F6C426172427574746F6E00E1000000000000FFFFFFFF000100000000000000010000000000000001000000018001E1000000000000FFFFFFFF000100000000000000010000000000000001000000018003E1000000000000FFFFFFFF0001000000000000000100000000000000010000000180CD7F000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF000000000000000000010000000000000001000000018023E1000000000000FFFFFFFF000100000000000000010000000000000001000000018022E1000000000000FFFFFFFF000100000000000000010000000000000001000000018025E1000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF00000000000000000001000000000000000100000001802BE1000000000000FFFFFFFF00010000000000000001000000000000000100000001802CE1000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF00000000000000000001000000000000000100000001807A8A000000000000FFFFFFFF00010000000000000001000000000000000100000001807B8A000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF0000000000000000000100000000000000010000000180D3B0000000000000FFFFFFFF000100000000000000010000000000000001000000018015B1000000000000FFFFFFFF0001000000000000000100000000000000010000000180F4B0000000000000FFFFFFFF000100000000000000010000000000000001000000018036B1000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF0000000000000000000100000000000000010000000180FF88000000000000FFFFFFFF0001000000000000000100000000000000010000000180FE88000000000000FFFFFFFF00010000000000000001000000000000000100000001800B81000000000000FFFFFFFF00010000000000000001000000000000000100000001800C81000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF0000000000000000000100000000000000010000000180F088000000000000FFFFFFFF0001000000000000000100000000000000010000000180EE7F000000000000FFFFFFFF000100000000000000010000000000000001000000018024E1000000000000FFFFFFFF00010000000000000001000000000000000100000001800A81000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF00000000000000000001000000000000000100000001802280000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF0000000000000000000100000000000000010000000180C488000000000000FFFFFFFF0001000000000000000100000000000000010000000180C988000000000000FFFFFFFF0001000000000000000100000000000000010000000180C788000000000000FFFFFFFF0001000000000000000100000000000000010000000180C888000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF0000000000000000000100000000000000010000000180DD88000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF0000000000000000000100000000000000010000000180FB7F000000000000FFFFFFFF000100000000000000010000000000000001000000 + + + 1423 + 2800FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000000000000000000000000000000000000000100000001000000018001E100000000000001000000000000000000000000000000000100000001000000018003E1000000000000020000000000000000000000000000000001000000010000000180CD7F0000000000000300000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018023E100000000000004000000000000000000000000000000000100000001000000018022E100000000000005000000000000000000000000000000000100000001000000018025E10000000000000600000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001802BE10000000000000700000000000000000000000000000000010000000100000001802CE10000000000000800000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001807A8A0000000000000900000000000000000000000000000000010000000100000001807B8A0000000000000A00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180D3B00000000000000B000000000000000000000000000000000100000001000000018015B10000000000000C0000000000000000000000000000000001000000010000000180F4B00000000000000D000000000000000000000000000000000100000001000000018036B10000000000000E00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FF880000000000000F0000000000000000000000000000000001000000010000000180FE880000000000001000000000000000000000000000000000010000000100000001800B810000000000001100000000000000000000000000000000010000000100000001800C810000000000001200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180F088000000000000130000000000000000000000000000000001000000010000000180EE7F00000000000014000000000000000000000000000000000100000001000000018024E10000000000001500000000000000000000000000000000010000000100000001800A810000000000001600000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018022800000000000001700000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C488000000000000180000000000000000000000000000000001000000010000000180C988000000000000190000000000000000000000000000000001000000010000000180C7880000000000001A0000000000000000000000000000000001000000010000000180C8880000000000001B00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180DD880000000000001C00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FB7F0000000000001D000000000000000000000000000000000100000001000000 + + + + 59399 + Build + + 643 + 00200000010000000F00FFFF01001100434D4643546F6F6C426172427574746F6ECF7F0000000000001C0000000000000000000000000000000001000000010000000180D07F0000000000001D000000000000000000000000000000000100000001000000018030800000000000001E00000000000000000000000000000000010000000100000001809E8A0000000004001F0000000000000000000000000000000001000000010000000180D17F0000000004002000000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001804C8A0000000004002100000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6EBA000000000000000000000000000000000000000000000000010000000100000096000000030020500000000008546172676574203196000000000000000100085461726765742031000000000180EB880000000000002200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C07F000000000000230000000000000000000000000000000001000000010000000180B08A000000000400240000000000000000000000000000000001000000010000000180A8010000020004004E0000000000000000000000000000000001000000010000000180BE010000000004005000000000000000000000000000000000010000000100000000000000054275696C64B7010000 + + + 548 + 0F00FFFF01001100434D4643546F6F6C426172427574746F6ECF7F000000000000FFFFFFFF0001000000000000000100000000000000010000000180D07F000000000000FFFFFFFF00010000000000000001000000000000000100000001803080000000000000FFFFFFFF00010000000000000001000000000000000100000001809E8A000000000000FFFFFFFF0001000000000000000100000000000000010000000180D17F000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF00000000000000000001000000000000000100000001804C8A000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF00000000000000000001000000000000000100000001806680000000000000FFFFFFFF0001000000000000000100000000000000010000000180EB88000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF0000000000000000000100000000000000010000000180C07F000000000000FFFFFFFF0001000000000000000100000000000000010000000180B08A000000000000FFFFFFFF0001000000000000000100000000000000010000000180A801000000000000FFFFFFFF0001000000000000000100000000000000010000000180BE01000000000000FFFFFFFF000100000000000000010000000000000001000000 + + + 548 + 0F00FFFF01001100434D4643546F6F6C426172427574746F6ECF7F000000000000000000000000000000000000000000000001000000010000000180D07F00000000000001000000000000000000000000000000000100000001000000018030800000000000000200000000000000000000000000000000010000000100000001809E8A000000000000030000000000000000000000000000000001000000010000000180D17F0000000000000400000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001804C8A0000000000000500000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001806680000000000000060000000000000000000000000000000001000000010000000180EB880000000000000700000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C07F000000000000080000000000000000000000000000000001000000010000000180B08A000000000000090000000000000000000000000000000001000000010000000180A8010000000000000A0000000000000000000000000000000001000000010000000180BE010000000000000B000000000000000000000000000000000100000001000000 + + + + 59400 + Debug + + 2220 + 00200000000000001900FFFF01001100434D4643546F6F6C426172427574746F6ECC880000000000002500000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018017800000000000002600000000000000000000000000000000010000000100000001801D800000000000002700000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001801A800000000000002800000000000000000000000000000000010000000100000001801B80000000000000290000000000000000000000000000000001000000010000000180E57F0000000000002A00000000000000000000000000000000010000000100000001801C800000000000002B00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018000890000000000002C00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180E48B0000000000002D0000000000000000000000000000000001000000010000000180F07F0000000000002E0000000000000000000000000000000001000000010000000180E8880000000000003700000000000000000000000000000000010000000100000001803B010000000000002F0000000000000000000000000000000001000000010000000180BB8A00000000000030000000000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E0E01000000000000310000000D57617463682057696E646F7773000000000000000000000000010000000100000000000000000000000100000002001380D88B000000000000310000000757617463682031000000000000000000000000010000000100000000000000000000000100000000001380D98B0000000000003100000007576174636820320000000000000000000000000100000001000000000000000000000001000000000013800F01000000000000320000000E4D656D6F72792057696E646F7773000000000000000000000000010000000100000000000000000000000100000004001380D28B00000000000032000000084D656D6F72792031000000000000000000000000010000000100000000000000000000000100000000001380D38B00000000000032000000084D656D6F72792032000000000000000000000000010000000100000000000000000000000100000000001380D48B00000000000032000000084D656D6F72792033000000000000000000000000010000000100000000000000000000000100000000001380D58B00000000000032000000084D656D6F727920340000000000000000000000000100000001000000000000000000000001000000000013801001000000000000330000000E53657269616C2057696E646F77730000000000000000000000000100000001000000000000000000000001000000040013809307000000000000330000000755415254202331000000000000000000000000010000000100000000000000000000000100000000001380940700000000000033000000075541525420233200000000000000000000000001000000010000000000000000000000010000000000138095070000000000003300000007554152542023330000000000000000000000000100000001000000000000000000000001000000000013809607000000000000330000000E49544D2F525441205669657765720000000000000000000000000100000001000000000000000000000001000000000013803C010000000000003400000010416E616C797369732057696E646F7773000000000000000000000000010000000100000000000000000000000100000003001380658A000000000000340000000E4C6F67696320416E616C797A6572000000000000000000000000010000000100000000000000000000000100000000001380DC7F0000000000003E00000014506572666F726D616E636520416E616C797A6572000000000000000000000000010000000100000000000000000000000100000000001380E788000000000000380000000D436F646520436F76657261676500000000000000000000000001000000010000000000000000000000010000000000138053010000000000003F0000000D54726163652057696E646F77730000000000000000000000000100000001000000000000000000000001000000010013805401000000000000FFFFFFFF115472616365204D656E7520416E63686F720000000000000000010000000000000001000000000000000000000001000000000013802901000000000000350000001553797374656D205669657765722057696E646F77730000000000000000000000000100000001000000000000000000000001000000010013804B01000000000000FFFFFFFF1453797374656D2056696577657220416E63686F720000000000000000010000000000000001000000000000000000000001000000000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000138001890000000000003600000007546F6F6C626F7800000000000000000000000001000000010000000000000000000000010000000300138044C5000000000000FFFFFFFF0E5570646174652057696E646F77730000000000000000010000000000000001000000000000000000000001000000000013800000000000000400FFFFFFFF000000000000000000010000000000000001000000000000000000000001000000000013805B01000000000000FFFFFFFF12546F6F6C626F78204D656E75416E63686F72000000000000000001000000000000000100000000000000000000000100000000000000000005446562756764020000 + + + 898 + 1900FFFF01001100434D4643546F6F6C426172427574746F6ECC88000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF00000000000000000001000000000000000100000001801780000000000000FFFFFFFF00010000000000000001000000000000000100000001801D80000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF00000000000000000001000000000000000100000001801A80000000000000FFFFFFFF00010000000000000001000000000000000100000001801B80000000000000FFFFFFFF0001000000000000000100000000000000010000000180E57F000000000000FFFFFFFF00010000000000000001000000000000000100000001801C80000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF00000000000000000001000000000000000100000001800089000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF0000000000000000000100000000000000010000000180E48B000000000000FFFFFFFF0001000000000000000100000000000000010000000180F07F000000000000FFFFFFFF0001000000000000000100000000000000010000000180E888000000000000FFFFFFFF00010000000000000001000000000000000100000001803B01000000000000FFFFFFFF0001000000000000000100000000000000010000000180BB8A000000000000FFFFFFFF0001000000000000000100000000000000010000000180D88B000000000000FFFFFFFF0001000000000000000100000000000000010000000180D28B000000000000FFFFFFFF00010000000000000001000000000000000100000001809307000000000000FFFFFFFF0001000000000000000100000000000000010000000180658A000000000000FFFFFFFF0001000000000000000100000000000000010000000180C18A000000000000FFFFFFFF0001000000000000000100000000000000010000000180EE8B000000000000FFFFFFFF00010000000000000001000000000000000100000001800000000000000000FFFFFFFF00000000000000000001000000000000000100000001800189000000000000FFFFFFFF000100000000000000010000000000000001000000 + + + 898 + 1900FFFF01001100434D4643546F6F6C426172427574746F6ECC880000000000000000000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018017800000000000000100000000000000000000000000000000010000000100000001801D800000000000000200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001801A800000000000000300000000000000000000000000000000010000000100000001801B80000000000000040000000000000000000000000000000001000000010000000180E57F0000000000000500000000000000000000000000000000010000000100000001801C800000000000000600000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018000890000000000000700000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180E48B000000000000080000000000000000000000000000000001000000010000000180F07F000000000000090000000000000000000000000000000001000000010000000180E8880000000000000A00000000000000000000000000000000010000000100000001803B010000000000000B0000000000000000000000000000000001000000010000000180BB8A0000000000000C0000000000000000000000000000000001000000010000000180D88B0000000000000D0000000000000000000000000000000001000000010000000180D28B0000000000000E000000000000000000000000000000000100000001000000018093070000000000000F0000000000000000000000000000000001000000010000000180658A000000000000100000000000000000000000000000000001000000010000000180C18A000000000000110000000000000000000000000000000001000000010000000180EE8B0000000000001200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180018900000000000013000000000000000000000000000000000100000001000000 + + + + 0 + 1280 + 1024 + + + + + + + D:\project\relay_controller\STC11.h + 0 + 28 + 46 + + + + + 1 + 0 + + 100 + 0 + + .\main.c + 0 + 40 + 132 + 1 + + 0 + + + .\STARTUP.A51 + 0 + 1 + 1 + 1 + + 0 + + + STC11.h + 28 + 28 + 46 + 1 + + 0 + + + + +
diff --git a/c51/relay_controller/stc.h b/c51/relay_controller/stc.h new file mode 100644 index 0000000..9ab1a48 --- /dev/null +++ b/c51/relay_controller/stc.h @@ -0,0 +1,347 @@ +#ifndef __STC12C5A60S2_H_ +#define __STC12C5A60S2_H_ + +///////////////////////////////////////////////// + +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ???????????? C51 Core SFRs +// 7 6 5 4 3 2 1 0 Reset Value +sfr ACC = 0xE0; //Accumulator 0000,0000 +sfr B = 0xF0; //B Register 0000,0000 +sfr PSW = 0xD0; //Program Status Word CY AC F0 RS1 RS0 OV F1 P 0000,0000 +//----------------------------------- +sbit CY = PSW^7; +sbit AC = PSW^6; +sbit F0 = PSW^5; +sbit RS1 = PSW^4; +sbit RS0 = PSW^3; +sbit OV = PSW^2; +sbit P = PSW^0; +//----------------------------------- +sfr SP = 0x81; //Stack Pointer 0000,0111 +sfr DPL = 0x82; //Data Pointer Low Byte 0000,0000 +sfr DPH = 0x83; //Data Pointer High Byte 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ?????????????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr PCON = 0x87; //Power Control SMOD SMOD0 LVDF POF GF1 GF0 PD IDL 0001,0000 +// 7 6 5 4 3 2 1 0 Reset Value +sfr AUXR = 0x8E; //Auxiliary Register T0x12 T1x12 UART_M0x6 BRTR S2SMOD BRTx12 EXTRAM S1BRS 0000,0000 +//----------------------------------- +sfr AUXR1 = 0xA2; //Auxiliary Register 1 - PCA_P4 SPI_P4 S2_P4 GF2 ADRJ - DPS 0000,0000 +/* +PCA_P4: + 0, ??PCA ?P1 ? + 1,PCA/PWM ?P1 ????P4 ?: ECI ?P1.2 ???P4.1 ?, + PCA0/PWM0 ?P1.3 ???P4.2 ? + PCA1/PWM1 ?P1.4 ???P4.3 ? +SPI_P4: + 0, ??SPI ?P1 ? + 1,SPI ?P1 ????P4 ?: SPICLK ?P1.7 ???P4.3 ? + MISO ?P1.6 ???P4.2 ? + MOSI ?P1.5 ???P4.1 ? + SS ?P1.4 ???P4.0 ? +S2_P4: + 0, ??UART2 ?P1 ? + 1,UART2 ?P1 ????P4 ?: TxD2 ?P1.3 ???P4.3 ? + RxD2 ?P1.2 ???P4.2 ? +GF2: ????? + +ADRJ: + 0, 10 ?A/D ??????8 ???ADC_RES ???, ?2 ???ADC_RESL ??? + 1,10 ?A/D ???????2 ???ADC_RES ?????2 ?, ?8 ???ADC_RESL ??? + +DPS: 0, ????????DPTR0 + 1,?????????DPTR1 +*/ +//----------------------------------- +sfr WAKE_CLKO = 0x8F; //??? SFR WAK1_CLKO +/* + 7 6 5 4 3 2 1 0 Reset Value + PCAWAKEUP RXD_PIN_IE T1_PIN_IE T0_PIN_IE LVD_WAKE _ T1CLKO T0CLKO 0000,0000B + +b7 - PCAWAKEUP : PCA ????? powerdown? +b6 - RXD_PIN_IE : ? P3.0(RXD) ????? RI ???? powerdown(????????)? +b5 - T1_PIN_IE : ? T1 ?????? T1 ???????? powerdown(????????)? +b4 - T0_PIN_IE : ? T0 ?????? T0 ???????? powerdown(????????)? +b3 - LVD_WAKE : ? CMPIN ?????? LVD ???????? powerdown(????????)? +b2 - +b1 - T1CLKO : ?? T1CKO(P3.5) ??? T1 ????,Fck1 = 1/2 T1 ??? +b0 - T0CLKO : ?? T0CKO(P3.4) ??? T0 ????,Fck0 = 1/2 T1 ??? +*/ +//----------------------------------- +sfr CLK_DIV = 0x97; //Clock Divder - - - - - CLKS2 CLKS1 CLKS0 xxxx,x000 +//----------------------------------- +sfr BUS_SPEED = 0xA1; //Stretch register - - ALES1 ALES0 - RWS2 RWS1 RWS0 xx10,x011 +/* +ALES1 and ALES0: +00 : The P0 address setup time and hold time to ALE negative edge is one clock cycle +01 : The P0 address setup time and hold time to ALE negative edge is two clock cycles. +10 : The P0 address setup time and hold time to ALE negative edge is three clock cycles. (default) +11 : The P0 address setup time and hold time to ALE negative edge is four clock cycles. + +RWS2,RWS1,RWS0: + 000 : The MOVX read/write pulse is 1 clock cycle. + 001 : The MOVX read/write pulse is 2 clock cycles. + 010 : The MOVX read/write pulse is 3 clock cycles. + 011 : The MOVX read/write pulse is 4 clock cycles. (default) + 100 : The MOVX read/write pulse is 5 clock cycles. + 101 : The MOVX read/write pulse is 6 clock cycles. + 110 : The MOVX read/write pulse is 7 clock cycles. + 111 : The MOVX read/write pulse is 8 clock cycles. +*/ +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ???????????? +//?????????????????????????,?????????? +//???????????,??? ??? 1T 8051?? ??????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr IE = 0xA8; //??????? EA ELVD EADC ES ET1 EX1 ET0 EX0 0x00,0000 +//----------------------- +sbit EA = IE^7; +sbit ELVD = IE^6; //????????? +sbit EADC = IE^5; //ADC ????? +sbit ES = IE^4; +sbit ET1 = IE^3; +sbit EX1 = IE^2; +sbit ET0 = IE^1; +sbit EX0 = IE^0; +//----------------------- +sfr IE2 = 0xAF; //Auxiliary Interrupt - - - - - - ESPI ES2 0000,0000B +//----------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr IP = 0xB8; //??????? PPCA PLVD PADC PS PT1 PX1 PT0 PX0 0000,0000 +//-------- +sbit PPCA = IP^7; //PCA ??????? +sbit PLVD = IP^6; //????????? +sbit PADC = IP^5; //ADC ????? +sbit PS = IP^4; +sbit PT1 = IP^3; +sbit PX1 = IP^2; +sbit PT0 = IP^1; +sbit PX0 = IP^0; +//----------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr IPH = 0xB7; //??????? PPCAH PLVDH PADCH PSH PT1H PX1H PT0H PX0H 0000,0000 +sfr IP2 = 0xB5; // - - - - - - PSPI PS2 xxxx,xx00 +sfr IPH2 = 0xB6; // - - - - - - PSPIH PS2H xxxx,xx00 +//----------------------- +//??? 1T 8051?? ???I/O ???????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr P0 = 0x80; //8 bitPort0 P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0.1 P0.0 1111,1111 +sbit P00 = P0^0; +sbit P01 = P0^1; +sbit P02 = P0^2; +sbit P03 = P0^3; +sbit P04 = P0^4; +sbit P05 = P0^5; +sbit P06 = P0^6; +sbit P07 = P0^7; +sfr P0M0 = 0x94; // 0000,0000 +sfr P0M1 = 0x93; // 0000,0000 +sfr P1 = 0x90; //8 bitPort1 P1.7 P1.6 P1.5 P1.4 P1.3 P1.2 P1.1 P1.0 1111,1111 +sbit P10 = P1^0; +sbit P11 = P1^1; +sbit P12 = P1^2; +sbit P13 = P1^3; +sbit P14 = P1^4; +sbit P15 = P1^5; +sbit P16 = P1^6; +sbit P17 = P1^7; +sfr P1M0 = 0x92; // 0000,0000 +sfr P1M1 = 0x91; // 0000,0000 +sfr P1ASF = 0x9D; //P1 analog special function +sfr P2 = 0xA0; //8 bitPort2 P2.7 P2.6 P2.5 P2.4 P2.3 P2.2 P2.1 P2.0 1111,1111 +sbit P20 = P2^0; +sbit P21 = P2^1; +sbit P22 = P2^2; +sbit P23 = P2^3; +sbit P24 = P2^4; +sbit P25 = P2^5; +sbit P26 = P2^6; +sbit P27 = P2^7; +sfr P2M0 = 0x96; // 0000,0000 +sfr P2M1 = 0x95; // 0000,0000 +sfr P3 = 0xB0; //8 bitPort3 P3.7 P3.6 P3.5 P3.4 P3.3 P3.2 P3.1 P3.0 1111,1111 +sbit P30 = P3^0; +sbit P31 = P3^1; +sbit P32 = P3^2; +sbit P33 = P3^3; +sbit P34 = P3^4; +sbit P35 = P3^5; +sbit P36 = P3^6; +sbit P37 = P3^7; +sfr P3M0 = 0xB2; // 0000,0000 +sfr P3M1 = 0xB1; // 0000,0000 +sfr P4 = 0xC0; //8 bitPort4 P4.7 P4.6 P4.5 P4.4 P4.3 P4.2 P4.1 P4.0 1111,1111 +sbit P40 = P4^0; +sbit P41 = P4^1; +sbit P42 = P4^2; +sbit P43 = P4^3; +sbit P44 = P4^4; +sbit P45 = P4^5; +sbit P46 = P4^6; +sbit P47 = P4^7; +sfr P4M0 = 0xB4; // 0000,0000 +sfr P4M1 = 0xB3; // 0000,0000 +// 7 6 5 4 3 2 1 0 Reset Value +sfr P4SW = 0xBB; //Port-4 switch - LVD_P4.6 ALE_P4.5 NA_P4.4 - - - - x000,xxxx + +sfr P5 = 0xC8; //8 bitPort5 - - - - P5.3 P5.2 P5.1 P5.0 xxxx,1111 +sbit P50 = P5^0; +sbit P51 = P5^1; +sbit P52 = P5^2; +sbit P53 = P5^3; +sfr P5M0 = 0xCA; // 0000,0000 +sfr P5M1 = 0xC9; // 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ????????????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr TCON = 0x88; //T0/T1 Control TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 0000,0000 +//----------------------------------- +sbit TF1 = TCON^7; +sbit TR1 = TCON^6; +sbit TF0 = TCON^5; +sbit TR0 = TCON^4; +sbit IE1 = TCON^3; +sbit IT1 = TCON^2; +sbit IE0 = TCON^1; +sbit IT0 = TCON^0; +//----------------------------------- +sfr TMOD = 0x89; //T0/T1 Modes GATE1 C/T1 M1_1 M1_0 GATE0 C/T0 M0_1 M0_0 0000,0000 +sfr TL0 = 0x8A; //T0 Low Byte 0000,0000 +sfr TH0 = 0x8C; //T0 High Byte 0000,0000 +sfr TL1 = 0x8B; //T1 Low Byte 0000,0000 +sfr TH1 = 0x8D; //T1 High Byte 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ????????????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr SCON = 0x98; //Serial Control SM0/FE SM1 SM2 REN TB8 RB8 TI RI 0000,0000 +//----------------------------------- +sbit SM0 = SCON^7; //SM0/FE +sbit SM1 = SCON^6; +sbit SM2 = SCON^5; +sbit REN = SCON^4; +sbit TB8 = SCON^3; +sbit RB8 = SCON^2; +sbit TI = SCON^1; +sbit RI = SCON^0; +//----------------------------------- +sfr SBUF = 0x99; //Serial Data Buffer xxxx,xxxx +sfr SADEN = 0xB9; //Slave Address Mask 0000,0000 +sfr SADDR = 0xA9; //Slave Address 0000,0000 +//----------------------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr S2CON = 0x9A; //S2 Control S2SM0 S2SM1 S2SM2 S2REN S2TB8 S2RB8 S2TI S2RI 00000000B +sfr S2BUF = 0x9B; //S2 Serial Buffer xxxx,xxxx +sfr BRT = 0x9C; //S2 Baud-Rate Timer 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ???????????????? +sfr WDT_CONTR = 0xC1; //Watch-Dog-Timer Control register +// 7 6 5 4 3 2 1 0 Reset Value +// WDT_FLAG - EN_WDT CLR_WDT IDLE_WDT PS2 PS1 PS0 xx00,0000 +//----------------------- + +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ???PCA/PWM ??????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr CCON = 0xD8; //PCA ?????? CF CR - - - - CCF1 CCF0 00xx,xx00 +//----------------------- +sbit CF = CCON^7; //PCA???????,????????,??????0? +sbit CR = CCON^6; //1:?? PCA ?????, ??????0? +//- +//- +sbit CCF1 = CCON^1; //PCA ??1 ????, ?????, ??????0? +sbit CCF0 = CCON^0; //PCA ??0 ????, ?????, ??????0? +//----------------------- +sfr CMOD = 0xD9; //PCA ???????? CIDL - - - CPS2 CPS1 CPS0 ECF 0xxx,x000 +/* +CIDL: idle ??? PCA ?????????, 0: ????, 1: ????? + +CPS2: PCA ????????? 2? +CPS1: PCA ????????? 1? +CPS0: PCA ????????? 0? + CPS2 CPS1 CPS0 + 0 0 0 ?????? fosc/12? + 0 0 1 ?????? fosc/2? + 0 1 0 Timer0 ??? + 0 1 1 ? ECI/P3.4 ????????,?? fosc/2? + 1 0 0 ??????, Fosc/1 + 1 0 1 ??????/4,Fosc/4 + 1 1 0 ??????/6,Fosc/6 + 1 1 1 ??????/8,Fosc/8 + +ECF: PCA??????????, 1--?? CF(CCON.7) ????? +*/ +//----------------------- +sfr CL = 0xE9; //PCA ????? 0000,0000 +sfr CH = 0xF9; //PCA ????? 0000,0000 +//----------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr CCAPM0 = 0xDA; //PCA ??0 PWM ??? - ECOM0 CAPP0 CAPN0 MAT0 TOG0 PWM0 ECCF0 x000,0000 +sfr CCAPM1 = 0xDB; //PCA ??1 PWM ??? - ECOM1 CAPP1 CAPN1 MAT1 TOG1 PWM1 ECCF1 x000,0000 + +//ECOMn = 1:??????? +//CAPPn = 1:???????????? +//CAPNn = 1:???????????? +//MATn = 1:????????, ?? CCON ?? CCFn ??? +//TOGn = 1:????????, CEXn ???? +//PWMn = 1:? CEXn ??? PWM ??? +//ECCFn = 1:?? CCON ?? CCFn ????? + +//ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn +// 0 0 0 0 0 0 0 0x00 ???????? +// x 1 0 0 0 0 x 0x21 16?CEXn?????????? +// x 0 1 0 0 0 x 0x11 16?CEXn?????????? +// x 1 1 0 0 0 x 0x31 16?CEXn??(????)??????? +// 1 0 0 1 0 0 x 0x49 16??????? +// 1 0 0 1 1 0 x 0x4d 16???????? +// 1 0 0 0 0 1 0 0x42 8? PWM? + +//ECOMn CAPPn CAPNn MATn TOGn PWMn ECCFn +// 0 0 0 0 0 0 0 0x00 ???? +// 1 0 0 0 0 1 0 0x42 ??8?PWM, ??? +// 1 1 0 0 0 1 1 0x63 PWM??????????? +// 1 0 1 0 0 1 1 0x53 PWM??????????? +// 1 1 1 0 0 1 1 0x73 PWM????????????????? + +//----------------------- +sfr CCAP0L = 0xEA; //PCA ?? 0 ???/?????? 8 ?? 0000,0000 +sfr CCAP0H = 0xFA; //PCA ?? 0 ???/?????? 8 ?? 0000,0000 +sfr CCAP1L = 0xEB; //PCA ?? 1 ???/?????? 8 ?? 0000,0000 +sfr CCAP1H = 0xFB; //PCA ?? 1 ???/?????? 8 ?? 0000,0000 +//----------------------- +// 7 6 5 4 3 2 1 0 Reset Value +sfr PCA_PWM0 = 0xF2; //PCA ??0 PWM ???? - - - - - - EPC0H EPC0L xxxx,xx00 +sfr PCA_PWM1 = 0xF3; //PCA ??1 PWM ???? - - - - - - EPC1H EPC1L xxxx,xx00 +//PCA_PWMn: 7 6 5 4 3 2 1 0 +// - - - - - - EPCnH EPCnL +//B7-B2: ?? +//B1(EPCnH): ? PWM ???,? CCAPnH ?? 9 ??? +//B0(EPCnL): ? PWM ???,? CCAPnL ?? 9 ??? +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ??? ADC ??????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr ADC_CONTR = 0xBC; //A/D ??????? ADC_POWER SPEED1 SPEED0 ADC_FLAG ADC_START CHS2 CHS1 CHS0 0000,0000 +sfr ADC_RES = 0xBD; //A/D ?????8? ADCV.9 ADCV.8 ADCV.7 ADCV.6 ADCV.5 ADCV.4 ADCV.3 ADCV.2 0000,0000 +sfr ADC_RESL = 0xBE; //A/D ?????2? ADCV.1 ADCV.0 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ??? SPI ??????? +// 7 6 5 4 3 2 1 0 Reset Value +sfr SPCTL = 0xCE; //SPI Control Register SSIG SPEN DORD MSTR CPOL CPHA SPR1 SPR0 0000,0100 +sfr SPSTAT = 0xCD; //SPI Status Register SPIF WCOL - - - - - - 00xx,xxxx +sfr SPDAT = 0xCF; //SPI Data Register 0000,0000 +//-------------------------------------------------------------------------------- +//??? 1T 8051?? ??? IAP/ISP ??????? +sfr IAP_DATA = 0xC2; +sfr IAP_ADDRH = 0xC3; +sfr IAP_ADDRL = 0xC4; +// 7 6 5 4 3 2 1 0 Reset Value +sfr IAP_CMD = 0xC5; //IAP Mode Table 0 - - - - - MS1 MS0 0xxx,xx00 +sfr IAP_TRIG = 0xC6; +sfr IAP_CONTR = 0xC7; //IAP Control Register IAPEN SWBS SWRST CFAIL - WT2 WT1 WT0 0000,x000 +//-------------------------------------------------------------------------------- + +///////////////////////////////////////////////// + +#endif +