添加pwm接口对应的注释方便查找

master
18650180552 2020-03-20 00:14:17 +08:00
parent b6bec9eeaa
commit 3af5f2a836
24 changed files with 2804 additions and 594 deletions

198
c51/gpio_clock/STARTUP.A51 Normal file
View File

@ -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 <h> Power-On Initialization of Memory
;
; With the following EQU statements the initialization of memory
; at processor reset can be defined:
;
; <o> IDATALEN: IDATA memory size <0x0-0x100>
; <i> Note: The absolute start-address of IDATA memory is always 0
; <i> The IDATA space overlaps physically the DATA and BIT areas.
IDATALEN EQU 80H
;
; <o> XDATASTART: XDATA memory start address <0x0-0xFFFF>
; <i> The absolute start address of XDATA memory
XDATASTART EQU 0
;
; <o> XDATALEN: XDATA memory size <0x0-0xFFFF>
; <i> The length of XDATA memory in bytes.
XDATALEN EQU 0
;
; <o> PDATASTART: PDATA memory start address <0x0-0xFFFF>
; <i> The absolute start address of PDATA memory
PDATASTART EQU 0H
;
; <o> PDATALEN: PDATA memory size <0x0-0xFF>
; <i> The length of PDATA memory in bytes.
PDATALEN EQU 0H
;
;</h>
;------------------------------------------------------------------------------
;
;<h> Reentrant Stack Initialization
;
; The following EQU statements define the stack pointer for reentrant
; functions and initialized it:
;
; <h> Stack Space for reentrant functions in the SMALL model.
; <q> IBPSTACK: Enable SMALL model reentrant stack
; <i> Stack space for reentrant functions in the SMALL model.
IBPSTACK EQU 0 ; set to 1 if small reentrant is used.
; <o> IBPSTACKTOP: End address of SMALL model stack <0x0-0xFF>
; <i> Set the top of the stack to the highest location.
IBPSTACKTOP EQU 0xFF +1 ; default 0FFH+1
; </h>
;
; <h> Stack Space for reentrant functions in the LARGE model.
; <q> XBPSTACK: Enable LARGE model reentrant stack
; <i> Stack space for reentrant functions in the LARGE model.
XBPSTACK EQU 0 ; set to 1 if large reentrant is used.
; <o> XBPSTACKTOP: End address of LARGE model stack <0x0-0xFFFF>
; <i> Set the top of the stack to the highest location.
XBPSTACKTOP EQU 0xFFFF +1 ; default 0FFFFH+1
; </h>
;
; <h> Stack Space for reentrant functions in the COMPACT model.
; <q> PBPSTACK: Enable COMPACT model reentrant stack
; <i> Stack space for reentrant functions in the COMPACT model.
PBPSTACK EQU 0 ; set to 1 if compact reentrant is used.
;
; <o> PBPSTACKTOP: End address of COMPACT model stack <0x0-0xFFFF>
; <i> Set the top of the stack to the highest location.
PBPSTACKTOP EQU 0xFF +1 ; default 0FFH+1
; </h>
;</h>
;------------------------------------------------------------------------------
;
; Memory Page for Using the Compact Model with 64 KByte xdata RAM
; <e>Compact Model Page Definition
;
; <i>Define the XDATA page used for PDATA variables.
; <i>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.
;
; <o> PPAGE number <0x0-0xFF>
; <i> uppermost 256-byte address of the page used for PDATA variables.
PPAGE EQU 0
;
; <o> SFR address which supplies uppermost address byte <0x0-0xFF>
; <i> most 8051 variants use P2 as uppermost address byte
PPAGE_SFR DATA 0A0H
;
; </e>
;------------------------------------------------------------------------------
; 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
;<h> Code Banking
; <q> Select Bank 0 for L51_BANK.A51 Mode 4
#if 0
; <i> 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
;</h>
LJMP ?C_START
END

BIN
c51/gpio_clock/STARTUP.OBJ Normal file

Binary file not shown.

BIN
c51/gpio_clock/clock Normal file

Binary file not shown.

115
c51/gpio_clock/clock.M51 Normal file
View File

@ -0,0 +1,115 @@
BL51 BANKED LINKER/LOCATER V6.22 02/21/2020 23:50:08 PAGE 1
BL51 BANKED LINKER/LOCATER V6.22, INVOKED BY:
D:\PROGRAMS\C51\C51\BIN\BL51.EXE STARTUP.obj, main.obj TO clock RAMSIZE (256)
MEMORY MODEL: SMALL
INPUT MODULES INCLUDED:
STARTUP.obj (?C_STARTUP)
main.obj (MAIN)
LINK MAP OF MODULE: clock (?C_STARTUP)
TYPE BASE LENGTH RELOCATION SEGMENT NAME
-----------------------------------------------------
* * * * * * * D A T A M E M O R Y * * * * * * *
REG 0000H 0008H ABSOLUTE "REG BANK 0"
IDATA 0008H 0001H UNIT ?STACK
* * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 0003H ABSOLUTE
0003H 07FDH *** GAP ***
CODE 0800H 0012H UNIT ?PR?MAIN?MAIN
CODE 0812H 000CH UNIT ?C_C51STARTUP
OVERLAY MAP OF MODULE: clock (?C_STARTUP)
SEGMENT
+--> CALLED SEGMENT
---------------------
?C_C51STARTUP
+--> ?PR?MAIN?MAIN
SYMBOL TABLE OF MODULE: clock (?C_STARTUP)
VALUE TYPE NAME
----------------------------------
------- MODULE ?C_STARTUP
C:0812H SEGMENT ?C_C51STARTUP
I:0008H 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:0815H SYMBOL IDATALOOP
BL51 BANKED LINKER/LOCATER V6.22 02/21/2020 23:50:08 PAGE 2
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:0812H SYMBOL STARTUP1
N:0000H SYMBOL XBPSTACK
N:0000H SYMBOL XBPSTACKTOP
N:0000H SYMBOL XDATALEN
N:0000H SYMBOL XDATASTART
C:0000H LINE# 126
C:0812H LINE# 133
C:0814H LINE# 134
C:0815H LINE# 135
C:0816H LINE# 136
C:0818H LINE# 185
C:081BH LINE# 196
------- ENDMOD ?C_STARTUP
------- MODULE MAIN
C:0000H SYMBOL _ICE_DUMMY_
D:0090H PUBLIC P1
C:0800H PUBLIC main
B:0090H.0 PUBLIC T0CLKO
D:008FH PUBLIC WAKE_CLKO
D:0089H PUBLIC TMOD
D:008CH PUBLIC TH0
D:008AH PUBLIC TL0
B:0088H.4 PUBLIC TR0
------- PROC MAIN
C:0800H LINE# 35
C:0800H LINE# 36
C:0800H LINE# 40
C:0803H LINE# 41
C:0806H LINE# 42
C:0809H LINE# 43
C:080BH LINE# 44
C:080EH LINE# 46
C:080EH LINE# 47
------- ENDPROC MAIN
------- ENDMOD MAIN
******************************************************************************
* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 0021H BYTE ( 1%) *
******************************************************************************
Program Size: data=9.0 xdata=0 code=33
LINK/LOCATE RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)

5
c51/gpio_clock/clock.hex Normal file
View File

@ -0,0 +1,5 @@
:03000000020812E1
:0C081200787FE4F6D8FD7581070208002D
:10080000758902758AF4758CF4D28C758F01B2905B
:0208100080FC6A
:00000001FF

4
c51/gpio_clock/clock.lnp Normal file
View File

@ -0,0 +1,4 @@
"STARTUP.obj",
"main.obj"
TO "clock"
RAMSIZE(256)

68
c51/gpio_clock/clock.plg Normal file
View File

@ -0,0 +1,68 @@
<html>
<body>
<pre>
<h1>µVision Build Log</h1>
<h2>Project:</h2>
D:\project\HardwareDriver\c51\gpio_clock\clock.uvproj
Project File Date: 02/21/2020
<h2>Output:</h2>
Build target 'Target 1'
assembling STARTUP.A51...
linking...
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
ADDRESS: 080AH
Program Size: data=9.0 xdata=0 code=15
"clock" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
ADDRESS: 080AH
Program Size: data=9.0 xdata=0 code=15
"clock" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
ADDRESS: 080AH
Program Size: data=9.0 xdata=0 code=15
creating hex file from "clock"...
"clock" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
ADDRESS: 080AH
Program Size: data=9.0 xdata=0 code=15
creating hex file from "clock"...
"clock" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=9.0 xdata=0 code=31
creating hex file from "clock"...
"clock" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=9.0 xdata=0 code=33
creating hex file from "clock"...
"clock" - 0 Error(s), 0 Warning(s).

View File

BIN
c51/gpio_clock/main.OBJ Normal file

Binary file not shown.

1
c51/gpio_clock/main.__i Normal file
View File

@ -0,0 +1 @@
"main.c" BROWSE DEBUG OBJECTEXTEND

49
c51/gpio_clock/main.c Normal file
View File

@ -0,0 +1,49 @@
/*------------------------------------------------------------------*/
/* --- STC MCU Limited ---------------------------------------------*/
/* --- STC10/11xx Series Programmable Clock Output 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 "reg51.h"
//-----------------------------------------------
/* define constants */
#define FOSC 11059200L
//#define MODE1T //Timer clock mode, comment this line is 12T mode, uncomment is 1T mode
#ifdef MODE1T
#define F38_4KHz (256-FOSC/2/38400) //38.4KHz frequency calculation method of 1T mode
#else
#define F38_4KHz (256-FOSC/2/12/38400) //38.4KHz frequency calculation method of 12T mode
#endif
/* define SFR */
sfr AUXR = 0x8e; //Auxiliary register
sfr WAKE_CLKO = 0x8f; //wakeup and clock output control register
sbit T0CLKO = P1^0; //timer0 clock output pin
//-----------------------------------------------
/* main program */
void main()
{
#ifdef MODE1T
AUXR = 0x80; //timer0 work in 1T mode
#endif
TMOD = 0x02; //set timer0 as mode2 (8-bit auto-reload)
TL0 = F38_4KHz; //initial timer0
TH0 = F38_4KHz; //initial timer0
TR0 = 1; //timer0 start running
WAKE_CLKO = 0x01; //enable timer0 clock output
while (1)
T0CLKO=~T0CLKO; //loop
}

Binary file not shown.

Binary file not shown.

BIN
c51/relay_controller/relay Normal file

Binary file not shown.

View File

@ -0,0 +1,462 @@
BL51 BANKED LINKER/LOCATER V6.22 02/03/2020 01:33:59 PAGE 1
BL51 BANKED LINKER/LOCATER V6.22, INVOKED BY:
D:\PROGRAMS\C51\C51\BIN\BL51.EXE STARTUP.obj, main.obj TO relay RAMSIZE (256)
MEMORY MODEL: SMALL
INPUT MODULES INCLUDED:
STARTUP.obj (?C_STARTUP)
main.obj (MAIN)
D:\PROGRAMS\C51\C51\LIB\C51S.LIB (?C_INIT)
D:\PROGRAMS\C51\C51\LIB\C51S.LIB (?C?CLDPTR)
D:\PROGRAMS\C51\C51\LIB\C51S.LIB (?C?MEMSET)
LINK MAP OF MODULE: relay (?C_STARTUP)
TYPE BASE LENGTH RELOCATION SEGMENT NAME
-----------------------------------------------------
* * * * * * * D A T A M E M O R Y * * * * * * *
REG 0000H 0008H ABSOLUTE "REG BANK 0"
DATA 0008H 0003H UNIT ?DT?_SENDWIFI?MAIN
DATA 000BH 0003H UNIT _DATA_GROUP_
000EH 0012H *** GAP ***
BIT 0020H.0 0000H.6 UNIT ?BI?MAIN
BIT 0020H.6 0000H.2 UNIT _BIT_GROUP_
DATA 0021H 0030H UNIT ?DT?MAIN
IDATA 0051H 0001H UNIT ?STACK
* * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 0003H ABSOLUTE
0003H 0020H *** GAP ***
CODE 0023H 0003H ABSOLUTE
0026H 07DAH *** GAP ***
CODE 0800H 00B0H UNIT ?PR?UART_ISR?MAIN
CODE 08B0H 008CH UNIT ?C_C51STARTUP
CODE 093CH 0063H UNIT ?PR?MAIN?MAIN
CODE 099FH 0058H UNIT ?CO?MAIN
CODE 09F7H 0045H UNIT ?C?LIB_CODE
CODE 0A3CH 0034H UNIT ?C_INITSEG
CODE 0A70H 0031H UNIT ?PR?CALLBACKUART?MAIN
CODE 0AA1H 0026H UNIT ?PR?_SENDSTRING?MAIN
CODE 0AC7H 0024H UNIT ?PR?_SENDBUFFER?MAIN
CODE 0AEBH 001DH UNIT ?PR?UART_INIT?MAIN
CODE 0B08H 001BH UNIT ?PR?_SENDWIFI?MAIN
CODE 0B23H 0013H UNIT ?PR?_SENDDATA?MAIN
CODE 0B36H 000FH UNIT ?PR?DELAY3020MS?MAIN
CODE 0B45H 000FH UNIT ?PR?DELAY500MS?MAIN
CODE 0B54H 0009H UNIT ?PR?DELAY1020US?MAIN
CODE 0B5DH 0007H UNIT ?PR?P1_UART?MAIN
CODE 0B64H 0004H UNIT ?PR?P3_UART?MAIN
OVERLAY MAP OF MODULE: relay (?C_STARTUP)
BL51 BANKED LINKER/LOCATER V6.22 02/03/2020 01:33:59 PAGE 2
SEGMENT BIT_GROUP DATA_GROUP
+--> CALLED SEGMENT START LENGTH START LENGTH
------------------------------------------------------------------
?C_C51STARTUP ----- ----- ----- -----
+--> ?PR?MAIN?MAIN
+--> ?C_INITSEG
?PR?MAIN?MAIN 0020H.6 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 ----- ----- 000BH 0003H
+--> ?PR?DELAY1020US?MAIN
+--> ?PR?_SENDDATA?MAIN
?PR?CALLBACKUART?MAIN ----- ----- ----- -----
+--> ?PR?P3_UART?MAIN
+--> ?PR?_SENDBUFFER?MAIN
+--> ?PR?P1_UART?MAIN
?PR?_SENDBUFFER?MAIN ----- ----- 000BH 0003H
+--> ?PR?DELAY1020US?MAIN
+--> ?PR?_SENDDATA?MAIN
*** NEW ROOT ***************************************************
?PR?UART_ISR?MAIN ----- ----- ----- -----
+--> ?CO?MAIN
SYMBOL TABLE OF MODULE: relay (?C_STARTUP)
VALUE TYPE NAME
----------------------------------
------- MODULE ?C_STARTUP
C:08B0H SEGMENT ?C_C51STARTUP
I:0051H 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:08B3H SYMBOL IDATALOOP
N:0000H SYMBOL PBPSTACK
N:0100H SYMBOL PBPSTACKTOP
N:0000H SYMBOL PDATALEN
BL51 BANKED LINKER/LOCATER V6.22 02/03/2020 01:33:59 PAGE 3
N:0000H SYMBOL PDATASTART
N:0000H SYMBOL PPAGE
N:0000H SYMBOL PPAGEENABLE
D:00A0H SYMBOL PPAGE_SFR
D:0081H SYMBOL SP
C:08B0H SYMBOL STARTUP1
N:0000H SYMBOL XBPSTACK
N:0000H SYMBOL XBPSTACKTOP
N:0000H SYMBOL XDATALEN
N:0000H SYMBOL XDATASTART
C:0000H LINE# 126
C:08B0H LINE# 133
C:08B2H LINE# 134
C:08B3H LINE# 135
C:08B4H LINE# 136
C:08B6H LINE# 185
C:08B9H LINE# 196
------- ENDMOD ?C_STARTUP
------- MODULE MAIN
C:0000H SYMBOL _ICE_DUMMY_
C:09E8H PUBLIC AT_SendData
D:0092H PUBLIC P1M0
C:0B5DH PUBLIC P1_Uart
D:0091H PUBLIC P1M1
D:0080H PUBLIC P0
D:0090H PUBLIC P1
C:0B64H PUBLIC P3_Uart
D:00A0H PUBLIC P2
D:00B0H PUBLIC P3
D:00C0H PUBLIC P4
B:0020H.2 PUBLIC recv_flag_global
D:00C8H PUBLIC P5
B:00A8H.7 PUBLIC EA
C:0AA1H PUBLIC _SendString
C:0B29H PUBLIC _SendData
D:00A8H PUBLIC IE
C:0AEBH PUBLIC Uart_Init
B:00A8H.4 PUBLIC ES
D:00B8H PUBLIC IP
C:0B36H PUBLIC Delay3020ms
D:0023H PUBLIC index
B:0098H.0 PUBLIC RI
B:0098H.1 PUBLIC TI
C:0B08H PUBLIC _SendWifi
C:0B54H PUBLIC Delay1020us
D:00D8H PUBLIC CCON
C:093CH PUBLIC main
C:0800H PUBLIC Uart_Isr
D:0099H PUBLIC SBUF
D:0087H PUBLIC PCON
D:0024H PUBLIC gSendbuf
D:0098H PUBLIC SCON
D:0089H PUBLIC TMOD
D:0088H PUBLIC TCON
B:0020H.3 PUBLIC connected_flag
D:008EH PUBLIC AUXR
BL51 BANKED LINKER/LOCATER V6.22 02/03/2020 01:33:59 PAGE 4
C:09BFH PUBLIC AT_Connect
B:0020H.4 PUBLIC busy
D:00E0H PUBLIC ACC
B:00A8H.3 PUBLIC ET1
D:008DH PUBLIC TH1
D:0032H PUBLIC index_tmp
C:0A70H PUBLIC callbackUart
D:0033H PUBLIC recv_buf
D:008BH PUBLIC TL1
B:0088H.6 PUBLIC TR1
B:0098H.4 PUBLIC REN
C:0B45H PUBLIC Delay500ms
C:09A1H PUBLIC AT_SetUp
C:0AC7H PUBLIC _SendBuffer
D:00A2H PUBLIC AUXR1
B:0020H.5 PUBLIC overflow_flag
D:00D0H PUBLIC PSW
------- PROC P1_UART
C:0B5DH LINE# 50
C:0B5DH LINE# 51
C:0B60H LINE# 52
C:0B63H LINE# 53
------- ENDPROC P1_UART
------- PROC P3_UART
C:0B64H LINE# 54
C:0B64H LINE# 55
C:0B67H LINE# 56
------- ENDPROC P3_UART
------- PROC DELAY3020MS
------- DO
D:0007H SYMBOL i
D:0006H SYMBOL j
D:0005H SYMBOL k
------- ENDDO
C:0B36H LINE# 57
C:0B36H LINE# 58
C:0B36H LINE# 61
C:0B37H LINE# 62
C:0B38H LINE# 63
C:0B3AH LINE# 64
C:0B3CH LINE# 65
C:0B3EH LINE# 67
C:0B3EH LINE# 69
C:0B3EH LINE# 70
C:0B40H LINE# 71
C:0B42H LINE# 72
C:0B44H LINE# 73
------- ENDPROC DELAY3020MS
------- PROC DELAY500MS
------- DO
D:0007H SYMBOL i
D:0006H SYMBOL j
D:0005H SYMBOL k
------- ENDDO
C:0B45H LINE# 74
C:0B45H LINE# 75
C:0B45H LINE# 78
BL51 BANKED LINKER/LOCATER V6.22 02/03/2020 01:33:59 PAGE 5
C:0B46H LINE# 79
C:0B47H LINE# 80
C:0B49H LINE# 81
C:0B4BH LINE# 82
C:0B4DH LINE# 84
C:0B4DH LINE# 86
C:0B4DH LINE# 87
C:0B4FH LINE# 88
C:0B51H LINE# 89
C:0B53H LINE# 90
------- ENDPROC DELAY500MS
------- PROC DELAY1020US
------- DO
D:0007H SYMBOL i
D:0006H SYMBOL j
------- ENDDO
C:0B54H LINE# 92
C:0B54H LINE# 93
C:0B54H LINE# 96
C:0B56H LINE# 97
C:0B58H LINE# 99
C:0B58H LINE# 100
C:0B5AH LINE# 101
C:0B5CH LINE# 102
------- ENDPROC DELAY1020US
------- PROC UART_INIT
C:0AEBH LINE# 103
C:0AEBH LINE# 104
C:0AEEH LINE# 105
C:0AF1H LINE# 106
C:0AF4H LINE# 107
C:0AF7H LINE# 108
C:0AFAH LINE# 109
C:0AFDH LINE# 110
C:0B00H LINE# 111
C:0B03H LINE# 112
C:0B05H LINE# 113
C:0B07H LINE# 114
------- ENDPROC UART_INIT
------- PROC CALLBACKUART
C:0A70H LINE# 116
C:0A70H LINE# 117
C:0A76H LINE# 118
C:0A79H LINE# 119
C:0A7CH LINE# 120
C:0A7FH LINE# 121
C:0A8AH LINE# 122
C:0A99H LINE# 123
C:0A9BH LINE# 124
C:0A9DH LINE# 125
C:0AA0H LINE# 126
C:0AA0H LINE# 127
------- ENDPROC CALLBACKUART
------- PROC MAIN
------- DO
D:0007H SYMBOL i
B:0020H.6 SYMBOL flag1
BL51 BANKED LINKER/LOCATER V6.22 02/03/2020 01:33:59 PAGE 6
B:0020H.7 SYMBOL flag2
------- ENDDO
C:093CH LINE# 128
C:093CH LINE# 129
C:093CH LINE# 130
C:093EH LINE# 131
C:0940H LINE# 132
C:0942H LINE# 133
C:0945H LINE# 135
C:0948H LINE# 136
C:094BH LINE# 137
C:094EH LINE# 139
C:0950H LINE# 140
C:0953H LINE# 143
C:0955H LINE# 144
C:0957H LINE# 145
C:0959H LINE# 146
C:095CH LINE# 147
C:095FH LINE# 150
C:0962H LINE# 152
C:0963H LINE# 153
C:096CH LINE# 154
C:0970H LINE# 155
C:0970H LINE# 156
C:0973H LINE# 157
C:0975H LINE# 158
C:097EH LINE# 159
C:0981H LINE# 161
C:0981H LINE# 162
C:0984H LINE# 163
C:098AH LINE# 164
C:098CH LINE# 165
C:0995H LINE# 166
C:0998H LINE# 167
C:099AH LINE# 169
C:099AH LINE# 170
C:099DH LINE# 171
------- ENDPROC MAIN
------- PROC UART_ISR
------- DO
D:0021H SYMBOL last_byte
B:0020H.0 SYMBOL flag_recv
B:0020H.1 SYMBOL flag_need_read
D:0022H SYMBOL recv_cnt
------- ENDDO
C:0800H LINE# 181
C:0809H LINE# 189
C:080FH LINE# 190
C:080FH LINE# 191
C:0811H LINE# 192
C:0824H LINE# 195
C:0824H LINE# 196
C:082BH LINE# 197
C:082DH LINE# 198
C:0830H LINE# 199
C:0833H LINE# 202
C:0833H LINE# 203
BL51 BANKED LINKER/LOCATER V6.22 02/03/2020 01:33:59 PAGE 7
C:0862H LINE# 209
C:0862H LINE# 210
C:0864H LINE# 211
C:0867H LINE# 212
C:0867H LINE# 213
C:086AH LINE# 214
C:0873H LINE# 215
C:0875H LINE# 216
C:0877H LINE# 217
C:087EH LINE# 218
C:0880H LINE# 219
C:0883H LINE# 220
C:0886H LINE# 221
C:0888H LINE# 222
C:0888H LINE# 223
C:0888H LINE# 224
C:088FH LINE# 225
C:0892H LINE# 226
C:0894H LINE# 227
C:089DH LINE# 228
C:08A0H LINE# 229
C:08A2H LINE# 230
C:08A2H LINE# 231
C:08A2H LINE# 232
C:08A5H LINE# 233
C:08A5H LINE# 234
C:08A7H LINE# 235
C:08A9H LINE# 236
C:08A9H LINE# 237
------- ENDPROC UART_ISR
------- PROC L?0063
------- ENDPROC L?0063
------- PROC _SENDDATA
D:0007H SYMBOL dat
C:0B29H LINE# 244
C:0B29H LINE# 245
C:0B29H LINE# 246
C:0B2DH LINE# 247
C:0B2EH LINE# 249
C:0B30H LINE# 250
C:0B32H LINE# 251
C:0B35H LINE# 252
------- ENDPROC _SENDDATA
------- PROC _SENDSTRING
D:000BH SYMBOL s
C:0AA1H LINE# 259
C:0AA7H LINE# 260
C:0AA7H LINE# 261
C:0AB2H LINE# 262
C:0AB2H LINE# 263
C:0AB5H LINE# 264
C:0AC4H LINE# 265
C:0AC6H LINE# 266
------- ENDPROC _SENDSTRING
------- PROC _SENDWIFI
D:0008H SYMBOL dat
C:0B08H LINE# 267
BL51 BANKED LINKER/LOCATER V6.22 02/03/2020 01:33:59 PAGE 8
C:0B0EH LINE# 268
C:0B17H LINE# 269
C:0B1AH LINE# 270
------- ENDPROC _SENDWIFI
------- PROC _SENDBUFFER
D:000BH SYMBOL s
D:0005H SYMBOL len
C:0AC7H LINE# 272
C:0ACDH LINE# 274
C:0AD5H LINE# 275
C:0AD5H LINE# 276
C:0AD8H LINE# 277
C:0AE7H LINE# 278
C:0AE8H LINE# 279
C:0AEAH LINE# 280
------- ENDPROC _SENDBUFFER
------- ENDMOD MAIN
------- MODULE ?C?CLDPTR
C:09F7H PUBLIC ?C?CLDPTR
------- ENDMOD ?C?CLDPTR
------- MODULE ?C?MEMSET
C:0A10H PUBLIC ?C?MEMSET
------- ENDMOD ?C?MEMSET
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
******************************************************************************
* RESTRICTED VERSION WITH 0800H BYTE CODE SIZE LIMIT; USED: 02A8H BYTE (33%) *
******************************************************************************
Program Size: data=64.0 xdata=0 code=878
LINK/LOCATE RUN COMPLETE. 2 WARNING(S), 0 ERROR(S)

View File

@ -0,0 +1,71 @@
:030000000208B043
:0C08B000787FE4F6D8FD7581500208F74F
:10099F000000415445300D0A000000000000000027
:1009AF000000000000000000000000000000000038
:1009BF0041542B43495053544152543D22544350B8
:1009CF00222C223139322E3136382E322E31303818
:1009DF00222C383038300D0A0041542B43495053E4
:0809EF00454E443D350D0A00A0
:100A3C00C103C102C1051E3300000000000000000C
:100A4C00000000000000000000000000000000009A
:100A5C00000000000000012300013200C100C101B0
:030A6C0001220064
:070B5D0053A27F43A2802296
:040B640053A27F22F7
:0E0B360000007F7F7EE97D94DDFEDEFCDFFAAD
:010B4400228E
:0E0B450000007F167E037DE3DDFEDEFCDFFA9E
:010B5300227F
:080B54007F0B7EF6DEFEDFFCE4
:010B5C002276
:100AEB0053877F759850438E40538EFE53890F4327
:0D0AFB008920758BFD758DFDC2ABD28E225A
:100A700020020330052A120B643005037550497BB0
:100A8000007A0079337D1E120AC77E007F1E7D002A
:100A90007B007A007933120A10C202C205120B5D84
:010AA0002233
:10093C00E4FFC206C207120B36120B36120B36122C
:10094C000AEBF59175923FD2ACD2AFD29C120B5DF3
:10095C00120B54120B54FFEF04FE74242FF8A6064E
:10096C000FBF0DF320060ED2067BFF7A0979A11278
:10097C000AA1120B36120A70300613200710D20788
:10098C007BFF7A0979BF120AA1120B36D203120A25
:03099C007080D197
:03002300020800D0
:09080000C0E0C0D075D000C000BA
:100809002098030208A2C298E521B40D1DE599B408
:100819000A18E5236401601220030F74342523F8B4
:100829007600D20275230075210074322523F8E67B
:10083900643A702A74312523F8E6643570207430DF
:100849002523F8E6B42C17742F2523F8E6B4440EB3
:10085900D3E523648094844005D2017522043001D4
:100869001ED3E522648094804004152280117434DB
:100879002523F8769FD202752300752200C20174E0
:10088900332523F8A6998599210523D3E523648087
:10089900949D4005752300D205309904C299C2047C
:0708A900D000D0D0D0E032F6
:060B230014F91209F7FFAE
:0D0B290030040122EFD204F5992004FD22D2
:100AA1008B0B8A0C890DAB0BAA0CA90D1209F760EF
:100AB10014120B54AB0B050DE50DAA0C7002050CBD
:060AC100120B2380E1226C
:100B08008B088A09890A7BFF7A0979E8120AA112F7
:0B0B18000B36AB08AA09A90A020AA1CB
:100AC7008B0B8A0C890DD3ED648094804015120B33
:100AD70054AB0B050DE50DAA0C7002050C120B2388
:040AE7001D80E32269
:1008BC0002093CE493A3F8E493A34003F68001F20D
:1008CC0008DFF48029E493A3F85407240CC8C3333D
:1008DC00C4540F4420C8834004F456800146F6DF0C
:1008EC00E4800B0102040810204080900A3CE47E56
:1008FC00019360BCA3FF543F30E509541FFEE49301
:10090C00A360010ECF54C025E060A840B8E493A3C7
:10091C00FAE493A3F8E493A3C8C582C8CAC583CAF2
:10092C00F0A3C8C582C8CAC583CADFE9DEE780BEAA
:010A6F000086
:1009F700BB010689828A83E0225002E722BBFE02FE
:090A0700E32289828A83E4932230
:100A1000EF4E6012EF60010EEDBB010B89828A83FD
:100A2000F0A3DFFCDEFA2289F05007F709DFFCA90A
:0C0A3000F022BBFEFCF309DFFCA9F02261
:00000001FF

View File

@ -4,587 +4,6 @@
<h1>µVision Build Log</h1> <h1>µVision Build Log</h1>
<h2>Project:</h2> <h2>Project:</h2>
D:\project\HardwareDriver\c51\relay_controller\relay.uvproj D:\project\HardwareDriver\c51\relay_controller\relay.uvproj
Project File Date: <unknown> Project File Date: 02/21/2020
<h2>Output:</h2> <h2>Output:</h2>
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=44.5 xdata=0 code=588
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
linking...
Program Size: data=44.5 xdata=0 code=588
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(43): error C231: '_SendData': redefinition
MAIN.C(44): error C141: syntax error near 'void'
MAIN.C(44): error C141: syntax error near '{'
MAIN.C(45): error C231: 'AUXR1': redefinition
MAIN.C(46): error C231: 'AUXR1': redefinition
MAIN.C(48): error C141: syntax error near '{'
MAIN.C(49): error C231: 'AUXR1': redefinition
MAIN.C(52): error C141: syntax error near '{'
MAIN.C(55): error C231: '__nop_': redefinition
MAIN.C(56): error C231: '__nop_': redefinition
MAIN.C(57): error C231: 'i': redefinition
MAIN.C(57): error C231: 'i': redefinition
MAIN.C(58): error C231: 'j': redefinition
MAIN.C(58): error C231: 'j': redefinition
MAIN.C(59): error C231: 'k': redefinition
MAIN.C(59): error C231: 'k': redefinition
MAIN.C(60): error C141: syntax error near 'do'
MAIN.C(64): error C141: syntax error near '--'
MAIN.C(64): error C129: missing ';' before ')'
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(44): error C141: syntax error near 'void'
MAIN.C(44): error C141: syntax error near '{'
MAIN.C(45): error C231: 'AUXR1': redefinition
MAIN.C(46): error C231: 'AUXR1': redefinition
MAIN.C(48): error C141: syntax error near '{'
MAIN.C(49): error C231: 'AUXR1': redefinition
MAIN.C(52): error C141: syntax error near '{'
MAIN.C(55): error C231: '__nop_': redefinition
MAIN.C(56): error C231: '__nop_': redefinition
MAIN.C(57): error C231: 'i': redefinition
MAIN.C(57): error C231: 'i': redefinition
MAIN.C(58): error C231: 'j': redefinition
MAIN.C(58): error C231: 'j': redefinition
MAIN.C(59): error C231: 'k': redefinition
MAIN.C(59): error C231: 'k': redefinition
MAIN.C(60): error C141: syntax error near 'do'
MAIN.C(64): error C141: syntax error near '--'
MAIN.C(64): error C129: missing ';' before ')'
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(129): error C202: 'SetUp': undefined identifier
MAIN.C(136): error C202: 'Connect': undefined identifier
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(200): warning C280: 'dat': unreferenced local variable
MAIN.C(200): warning C280: 'len': unreferenced local variable
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=49.5 xdata=0 code=619
"relay" - 0 Error(s), 3 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(200): warning C280: 'dat': unreferenced local variable
MAIN.C(200): warning C280: 'len': unreferenced local variable
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=49.5 xdata=0 code=619
"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?_SENDWIFI?MAIN
Program Size: data=47.5 xdata=0 code=628
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=47.5 xdata=0 code=628
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(46): error C141: syntax error near '}'
MAIN.C(145): error C141: syntax error near 'int'
MAIN.C(145): error C202: 'z': undefined identifier
MAIN.C(145): error C202: 'z': undefined identifier
MAIN.C(145): error C202: 'z': undefined identifier
MAIN.C(145): error C141: syntax error near ')'
MAIN.C(226): error C141: syntax error near 'SendString'
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(46): error C141: syntax error near '}'
MAIN.C(146): error C141: syntax error near 'int'
MAIN.C(146): error C141: syntax error near ')'
MAIN.C(227): error C141: syntax error near 'SendString'
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(146): error C141: syntax error near 'int'
MAIN.C(146): error C141: syntax error near ')'
MAIN.C(227): error C141: syntax error near 'SendString'
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(227): error C141: syntax error near 'SendString'
Target not created
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=61.5 xdata=0 code=683
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=61.5 xdata=0 code=683
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
linking...
Program Size: data=61.5 xdata=0 code=683
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=61.5 xdata=0 code=685
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=61.5 xdata=0 code=686
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=61.5 xdata=0 code=686
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=61.5 xdata=0 code=685
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
linking...
Program Size: data=61.5 xdata=0 code=685
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
Program Size: data=61.5 xdata=0 code=685
"relay" - 0 Error(s), 0 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.5 xdata=0 code=685
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.5 xdata=0 code=685
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.5 xdata=0 code=685
"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?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=673
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=673
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?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=673
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?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=679
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?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=679
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?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=786
creating hex file from "relay"...
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=786
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?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=786
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?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=788
creating hex file from "relay"...
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
assembling STARTUP.A51...
compiling main.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=796
creating hex file from "relay"...
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=796
creating hex file from "relay"...
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=796
creating hex file from "relay"...
"relay" - 0 Error(s), 1 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(186): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=750
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(187): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=750
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(189): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=61.6 xdata=0 code=759
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(184): error C202: 'false': undefined identifier
MAIN.C(193): error C141: syntax error near '}'
MAIN.C(196): error C202: 'true': undefined identifier
MAIN.C(198): error C202: 'true': undefined identifier
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(189): warning C260: '=': pointer truncation
MAIN.C(193): error C141: syntax error near '}'
MAIN.C(196): error C101: ''b': invalid character constant
MAIN.C(196): error C141: syntax error near ''b'
MAIN.C(196): error C141: syntax error near '1'
main.c(196): error C305: unterminated string/char const
MAIN.C(198): error C101: ''b': invalid character constant
MAIN.C(198): error C141: syntax error near ''b'
MAIN.C(198): error C141: syntax error near '0'
MAIN.C(198): error C141: syntax error near ')'
main.c(198): error C305: unterminated string/char const
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(189): warning C260: '=': pointer truncation
MAIN.C(193): error C141: syntax error near '}'
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(189): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=64.7 xdata=0 code=825
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(189): warning C260: '=': pointer truncation
MAIN.C(204): error C141: syntax error near ')'
MAIN.C(205): error C141: syntax error near '}'
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(190): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=66.7 xdata=0 code=874
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(116): error C202: 'recv_flag': undefined identifier
MAIN.C(120): error C202: 'recv_flag': undefined identifier
MAIN.C(191): error C202: 'recv_flag': undefined identifier
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(190): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=66.7 xdata=0 code=874
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(191): warning C260: '=': pointer truncation
MAIN.C(205): error C171: 'break': missing enclosing loop
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(191): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=67.0 xdata=0 code=898
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(191): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=67.0 xdata=0 code=898
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(191): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=67.0 xdata=0 code=913
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(192): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=67.0 xdata=0 code=924
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(192): warning C260: '=': pointer truncation
MAIN.C(225): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=67.0 xdata=0 code=946
creating hex file from "relay"...
"relay" - 0 Error(s), 3 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(195): warning C260: '=': pointer truncation
MAIN.C(228): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=67.0 xdata=0 code=946
creating hex file from "relay"...
"relay" - 0 Error(s), 3 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(195): warning C260: '=': pointer truncation
MAIN.C(229): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
Program Size: data=67.0 xdata=0 code=948
creating hex file from "relay"...
"relay" - 0 Error(s), 3 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(195): warning C260: '=': pointer truncation
MAIN.C(229): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=67.0 xdata=0 code=933
creating hex file from "relay"...
"relay" - 0 Error(s), 4 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(228): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=67.0 xdata=0 code=929
creating hex file from "relay"...
"relay" - 0 Error(s), 3 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(178): warning C280: 'last_byte': unreferenced local variable
MAIN.C(179): warning C280: 'sec_last_byte': unreferenced local variable
MAIN.C(180): warning C280: 'trd_last_byte': unreferenced local variable
MAIN.C(181): warning C280: 'four_last_byte': unreferenced local variable
MAIN.C(183): warning C280: 'flag_recv': unreferenced local variable
MAIN.C(184): warning C280: 'flag_need_read': unreferenced local variable
MAIN.C(185): warning C280: 'recv_cnt': unreferenced local variable
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=67.0 xdata=0 code=692
creating hex file from "relay"...
"relay" - 0 Error(s), 9 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(179): warning C280: 'last_byte': unreferenced local variable
MAIN.C(180): warning C280: 'sec_last_byte': unreferenced local variable
MAIN.C(181): warning C280: 'trd_last_byte': unreferenced local variable
MAIN.C(182): warning C280: 'four_last_byte': unreferenced local variable
MAIN.C(184): warning C280: 'flag_recv': unreferenced local variable
MAIN.C(185): warning C280: 'flag_need_read': unreferenced local variable
MAIN.C(186): warning C280: 'recv_cnt': unreferenced local variable
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=67.1 xdata=0 code=698
creating hex file from "relay"...
"relay" - 0 Error(s), 9 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=61.7 xdata=0 code=691
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(163): error C202: 'connected_flag': undefined identifier
MAIN.C(182): error C202: 'index': undefined identifier
MAIN.C(183): error C202: 'index': undefined identifier
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(40): error C129: missing ';' before 'connected_flag'
Target not created
Build target 'Target 1'
compiling main.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=60.7 xdata=0 code=688
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=60.7 xdata=0 code=688
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(229): warning C260: '=': pointer truncation
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=67.0 xdata=0 code=932
creating hex file from "relay"...
"relay" - 0 Error(s), 3 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(215): warning C260: '=': pointer truncation
MAIN.C(185): warning C280: 'flag_recv': unreferenced local variable
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=67.0 xdata=0 code=877
creating hex file from "relay"...
"relay" - 0 Error(s), 4 Warning(s).
Build target 'Target 1'
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY500MS?MAIN
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_SENDWIFI?MAIN
Program Size: data=67.0 xdata=0 code=877
creating hex file from "relay"...
"relay" - 0 Error(s), 2 Warning(s).
Build target 'Target 1'
compiling main.c...
MAIN.C(195): error C202: 'sec_last_byte': undefined identifier
MAIN.C(197): error C202: 'trd_last_byte': undefined identifier
MAIN.C(198): error C202: 'four_last_byte': undefined identifier
MAIN.C(201): error C202: 'sec_last_byte': undefined identifier
MAIN.C(215): error C202: 'sec_last_byte': undefined identifier
MAIN.C(217): error C202: 'trd_last_byte': undefined identifier
MAIN.C(218): error C202: 'four_last_byte': undefined identifier
Target not created
Build target 'Target 1'
compiling main.c...
MAIN.C(195): error C202: 'sec_last_byte': undefined identifier
MAIN.C(197): error C202: 'trd_last_byte': undefined identifier
MAIN.C(198): error C202: 'four_last_byte': undefined identifier
MAIN.C(203): error C202: 'sec_last_byte': undefined identifier
MAIN.C(219): error C202: 'sec_last_byte': undefined identifier
MAIN.C(221): error C202: 'trd_last_byte': undefined identifier
MAIN.C(222): error C202: 'four_last_byte': undefined identifier
Target not created

View File

@ -0,0 +1,197 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_opt.xsd">
<SchemaVersion>1.0</SchemaVersion>
<Header>### uVision Project, (C) Keil Software</Header>
<Extensions>
<cExt>*.c</cExt>
<aExt>*.s*; *.src; *.a*</aExt>
<oExt>*.obj</oExt>
<lExt>*.lib</lExt>
<tExt>*.txt; *.h; *.inc</tExt>
<pExt>*.plm</pExt>
<CppX>*.cpp</CppX>
<nMigrate>0</nMigrate>
</Extensions>
<DaveTm>
<dwLowDateTime>0</dwLowDateTime>
<dwHighDateTime>0</dwHighDateTime>
</DaveTm>
<Target>
<TargetName>Target 1</TargetName>
<ToolsetNumber>0x0</ToolsetNumber>
<ToolsetName>MCS-51</ToolsetName>
<TargetOption>
<CLK51>45000000</CLK51>
<OPTTT>
<gFlags>1</gFlags>
<BeepAtEnd>1</BeepAtEnd>
<RunSim>1</RunSim>
<RunTarget>0</RunTarget>
<RunAbUc>0</RunAbUc>
</OPTTT>
<OPTHX>
<HexSelection>0</HexSelection>
<FlashByte>65535</FlashByte>
<HexRangeLowAddress>0</HexRangeLowAddress>
<HexRangeHighAddress>0</HexRangeHighAddress>
<HexOffset>0</HexOffset>
</OPTHX>
<OPTLEX>
<PageWidth>120</PageWidth>
<PageLength>65</PageLength>
<TabStop>8</TabStop>
<ListingPath>.\</ListingPath>
</OPTLEX>
<ListingPage>
<CreateCListing>1</CreateCListing>
<CreateAListing>1</CreateAListing>
<CreateLListing>1</CreateLListing>
<CreateIListing>0</CreateIListing>
<AsmCond>1</AsmCond>
<AsmSymb>1</AsmSymb>
<AsmXref>0</AsmXref>
<CCond>1</CCond>
<CCode>0</CCode>
<CListInc>0</CListInc>
<CSymb>0</CSymb>
<LinkerCodeListing>0</LinkerCodeListing>
</ListingPage>
<OPTXL>
<LMap>1</LMap>
<LComments>1</LComments>
<LGenerateSymbols>1</LGenerateSymbols>
<LLibSym>1</LLibSym>
<LLines>1</LLines>
<LLocSym>1</LLocSym>
<LPubSym>1</LPubSym>
<LXref>0</LXref>
<LExpSel>0</LExpSel>
</OPTXL>
<OPTFL>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<IsCurrentTarget>1</IsCurrentTarget>
</OPTFL>
<CpuCode>255</CpuCode>
<DebugOpt>
<uSim>1</uSim>
<uTrg>0</uTrg>
<sLdApp>1</sLdApp>
<sGomain>1</sGomain>
<sRbreak>1</sRbreak>
<sRwatch>1</sRwatch>
<sRmem>1</sRmem>
<sRfunc>1</sRfunc>
<sRbox>1</sRbox>
<tLdApp>1</tLdApp>
<tGomain>0</tGomain>
<tRbreak>1</tRbreak>
<tRwatch>1</tRwatch>
<tRmem>1</tRmem>
<tRfunc>0</tRfunc>
<tRbox>1</tRbox>
<tRtrace>0</tRtrace>
<sRSysVw>1</sRSysVw>
<tRSysVw>1</tRSysVw>
<sRunDeb>0</sRunDeb>
<sLrtime>0</sLrtime>
<bEvRecOn>1</bEvRecOn>
<bSchkAxf>0</bSchkAxf>
<bTchkAxf>0</bTchkAxf>
<nTsel>-1</nTsel>
<sDll></sDll>
<sDllPa></sDllPa>
<sDlgDll></sDlgDll>
<sDlgPa></sDlgPa>
<sIfile></sIfile>
<tDll></tDll>
<tDllPa></tDllPa>
<tDlgDll></tDlgDll>
<tDlgPa></tDlgPa>
<tIfile></tIfile>
<pMon></pMon>
</DebugOpt>
<Breakpoint/>
<Tracepoint>
<THDelay>0</THDelay>
</Tracepoint>
<DebugFlag>
<trace>0</trace>
<periodic>1</periodic>
<aLwin>0</aLwin>
<aCover>0</aCover>
<aSer1>0</aSer1>
<aSer2>0</aSer2>
<aPa>0</aPa>
<viewmode>0</viewmode>
<vrSel>0</vrSel>
<aSym>0</aSym>
<aTbox>0</aTbox>
<AscS1>0</AscS1>
<AscS2>0</AscS2>
<AscS3>0</AscS3>
<aSer3>0</aSer3>
<eProf>0</eProf>
<aLa>0</aLa>
<aPa1>0</aPa1>
<AscS4>0</AscS4>
<aSer4>0</aSer4>
<StkLoc>0</StkLoc>
<TrcWin>0</TrcWin>
<newCpu>0</newCpu>
<uProt>0</uProt>
</DebugFlag>
<LintExecutable></LintExecutable>
<LintConfigFile></LintConfigFile>
<bLintAuto>0</bLintAuto>
<bAutoGenD>0</bAutoGenD>
<LntExFlags>0</LntExFlags>
<pMisraName></pMisraName>
<pszMrule></pszMrule>
<pSingCmds></pSingCmds>
<pMultCmds></pMultCmds>
<pMisraNamep></pMisraNamep>
<pszMrulep></pszMrulep>
<pSingCmdsp></pSingCmdsp>
<pMultCmdsp></pMultCmdsp>
</TargetOption>
</Target>
<Group>
<GroupName>Source Group 1</GroupName>
<tvExp>1</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel>
<RteFlg>0</RteFlg>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>1</FileNumber>
<FileType>2</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\STARTUP.A51</PathWithFileName>
<FilenameWithoutPath>STARTUP.A51</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>2</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\main.c</PathWithFileName>
<FilenameWithoutPath>main.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
</Group>
</ProjectOpt>

View File

@ -0,0 +1,395 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_proj.xsd">
<SchemaVersion>1.1</SchemaVersion>
<Header>### uVision Project, (C) Keil Software</Header>
<Targets>
<Target>
<TargetName>Target 1</TargetName>
<ToolsetNumber>0x0</ToolsetNumber>
<ToolsetName>MCS-51</ToolsetName>
<uAC6>0</uAC6>
<TargetOption>
<TargetCommonOption>
<Device>STC11F02E</Device>
<Vendor>STC</Vendor>
<Cpu>IRAM(0-0xFF) IROM(0-0x7FF) CLOCK(45000000)</Cpu>
<FlashUtilSpec></FlashUtilSpec>
<StartupFile>"LIB\STARTUP.A51" ("Standard 8051 Startup Code")</StartupFile>
<FlashDriverDll></FlashDriverDll>
<DeviceId>57890</DeviceId>
<RegisterFile>STC12C5A60S2.H</RegisterFile>
<MemoryEnv></MemoryEnv>
<Cmp></Cmp>
<Asm></Asm>
<Linker></Linker>
<OHString></OHString>
<InfinionOptionDll></InfinionOptionDll>
<SLE66CMisc></SLE66CMisc>
<SLE66AMisc></SLE66AMisc>
<SLE66LinkerMisc></SLE66LinkerMisc>
<SFDFile></SFDFile>
<bCustSvd>0</bCustSvd>
<UseEnv>0</UseEnv>
<BinPath></BinPath>
<IncludePath></IncludePath>
<LibPath></LibPath>
<RegisterFilePath>STC\</RegisterFilePath>
<DBRegisterFilePath>STC\</DBRegisterFilePath>
<TargetStatus>
<Error>0</Error>
<ExitCodeStop>0</ExitCodeStop>
<ButtonStop>0</ButtonStop>
<NotGenerated>0</NotGenerated>
<InvalidFlash>1</InvalidFlash>
</TargetStatus>
<OutputDirectory>.\</OutputDirectory>
<OutputName>relay</OutputName>
<CreateExecutable>1</CreateExecutable>
<CreateLib>0</CreateLib>
<CreateHexFile>1</CreateHexFile>
<DebugInformation>1</DebugInformation>
<BrowseInformation>1</BrowseInformation>
<ListingPath>.\</ListingPath>
<HexFormatSelection>0</HexFormatSelection>
<Merge32K>0</Merge32K>
<CreateBatchFile>0</CreateBatchFile>
<BeforeCompile>
<RunUserProg1>0</RunUserProg1>
<RunUserProg2>0</RunUserProg2>
<UserProg1Name></UserProg1Name>
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
<nStopU1X>0</nStopU1X>
<nStopU2X>0</nStopU2X>
</BeforeCompile>
<BeforeMake>
<RunUserProg1>0</RunUserProg1>
<RunUserProg2>0</RunUserProg2>
<UserProg1Name></UserProg1Name>
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
<nStopB1X>0</nStopB1X>
<nStopB2X>0</nStopB2X>
</BeforeMake>
<AfterMake>
<RunUserProg1>0</RunUserProg1>
<RunUserProg2>0</RunUserProg2>
<UserProg1Name></UserProg1Name>
<UserProg2Name></UserProg2Name>
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
<nStopA1X>0</nStopA1X>
<nStopA2X>0</nStopA2X>
</AfterMake>
<SelectedForBatchBuild>0</SelectedForBatchBuild>
<SVCSIdString></SVCSIdString>
</TargetCommonOption>
<CommonProperty>
<UseCPPCompiler>0</UseCPPCompiler>
<RVCTCodeConst>0</RVCTCodeConst>
<RVCTZI>0</RVCTZI>
<RVCTOtherData>0</RVCTOtherData>
<ModuleSelection>0</ModuleSelection>
<IncludeInBuild>1</IncludeInBuild>
<AlwaysBuild>0</AlwaysBuild>
<GenerateAssemblyFile>0</GenerateAssemblyFile>
<AssembleAssemblyFile>0</AssembleAssemblyFile>
<PublicsOnly>0</PublicsOnly>
<StopOnExitCode>3</StopOnExitCode>
<CustomArgument></CustomArgument>
<IncludeLibraryModules></IncludeLibraryModules>
<ComprImg>1</ComprImg>
<BankNo>65535</BankNo>
</CommonProperty>
<DllOption>
<SimDllName>S8051.DLL</SimDllName>
<SimDllArguments></SimDllArguments>
<SimDlgDll>DP51.DLL</SimDlgDll>
<SimDlgDllArguments>-pDR8051</SimDlgDllArguments>
<TargetDllName>S8051.DLL</TargetDllName>
<TargetDllArguments></TargetDllArguments>
<TargetDlgDll>TP51.DLL</TargetDlgDll>
<TargetDlgDllArguments>-p51</TargetDlgDllArguments>
</DllOption>
<DebugOption>
<OPTHX>
<HexSelection>0</HexSelection>
<HexRangeLowAddress>0</HexRangeLowAddress>
<HexRangeHighAddress>0</HexRangeHighAddress>
<HexOffset>0</HexOffset>
<Oh166RecLen>16</Oh166RecLen>
</OPTHX>
<Simulator>
<UseSimulator>1</UseSimulator>
<LoadApplicationAtStartup>1</LoadApplicationAtStartup>
<RunToMain>1</RunToMain>
<RestoreBreakpoints>1</RestoreBreakpoints>
<RestoreWatchpoints>1</RestoreWatchpoints>
<RestoreMemoryDisplay>1</RestoreMemoryDisplay>
<RestoreFunctions>1</RestoreFunctions>
<RestoreToolbox>1</RestoreToolbox>
<LimitSpeedToRealTime>0</LimitSpeedToRealTime>
<RestoreSysVw>1</RestoreSysVw>
</Simulator>
<Target>
<UseTarget>0</UseTarget>
<LoadApplicationAtStartup>1</LoadApplicationAtStartup>
<RunToMain>0</RunToMain>
<RestoreBreakpoints>1</RestoreBreakpoints>
<RestoreWatchpoints>1</RestoreWatchpoints>
<RestoreMemoryDisplay>1</RestoreMemoryDisplay>
<RestoreFunctions>0</RestoreFunctions>
<RestoreToolbox>1</RestoreToolbox>
<RestoreTracepoints>0</RestoreTracepoints>
<RestoreSysVw>1</RestoreSysVw>
</Target>
<RunDebugAfterBuild>0</RunDebugAfterBuild>
<TargetSelection>-1</TargetSelection>
<SimDlls>
<CpuDll></CpuDll>
<CpuDllArguments></CpuDllArguments>
<PeripheralDll></PeripheralDll>
<PeripheralDllArguments></PeripheralDllArguments>
<InitializationFile></InitializationFile>
</SimDlls>
<TargetDlls>
<CpuDll></CpuDll>
<CpuDllArguments></CpuDllArguments>
<PeripheralDll></PeripheralDll>
<PeripheralDllArguments></PeripheralDllArguments>
<InitializationFile></InitializationFile>
<Driver></Driver>
</TargetDlls>
</DebugOption>
<Utilities>
<Flash1>
<UseTargetDll>0</UseTargetDll>
<UseExternalTool>0</UseExternalTool>
<RunIndependent>0</RunIndependent>
<UpdateFlashBeforeDebugging>0</UpdateFlashBeforeDebugging>
<Capability>0</Capability>
<DriverSelection>-1</DriverSelection>
</Flash1>
<bUseTDR>0</bUseTDR>
<Flash2></Flash2>
<Flash3></Flash3>
<Flash4></Flash4>
<pFcarmOut></pFcarmOut>
<pFcarmGrp></pFcarmGrp>
<pFcArmRoot></pFcArmRoot>
<FcArmLst>0</FcArmLst>
</Utilities>
<Target51>
<Target51Misc>
<MemoryModel>0</MemoryModel>
<RTOS>0</RTOS>
<RomSize>2</RomSize>
<DataHold>0</DataHold>
<XDataHold>0</XDataHold>
<UseOnchipRom>0</UseOnchipRom>
<UseOnchipArithmetic>0</UseOnchipArithmetic>
<UseMultipleDPTR>0</UseMultipleDPTR>
<UseOnchipXram>0</UseOnchipXram>
<HadIRAM>1</HadIRAM>
<HadXRAM>0</HadXRAM>
<HadIROM>1</HadIROM>
<Moda2>0</Moda2>
<Moddp2>0</Moddp2>
<Modp2>0</Modp2>
<Mod517dp>0</Mod517dp>
<Mod517au>0</Mod517au>
<Mode2>0</Mode2>
<useCB>0</useCB>
<useXB>0</useXB>
<useL251>0</useL251>
<useA251>0</useA251>
<Mx51>0</Mx51>
<ModC812>0</ModC812>
<ModCont>0</ModCont>
<Lp51>0</Lp51>
<useXBS>0</useXBS>
<ModDA>0</ModDA>
<ModAB2>0</ModAB2>
<Mx51P>0</Mx51P>
<hadXRAM2>0</hadXRAM2>
<uocXram2>0</uocXram2>
<hadXRAM3>0</hadXRAM3>
<ModC2>0</ModC2>
<ModH2>0</ModH2>
<Mdu_R515>0</Mdu_R515>
<Mdu_F120>0</Mdu_F120>
<Psoc>0</Psoc>
<hadIROM2>0</hadIROM2>
<hadIROM3>0</hadIROM3>
<ModSmx2>0</ModSmx2>
<cBanks>0</cBanks>
<xBanks>0</xBanks>
<OnChipMemories>
<RCB>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0xffff</Size>
</RCB>
<RXB>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</RXB>
<Ocm1>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocm1>
<Ocm2>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocm2>
<Ocm3>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocm3>
<Ocr1>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocr1>
<Ocr2>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocr2>
<Ocr3>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</Ocr3>
<IRO>
<Type>1</Type>
<StartAddress>0x0</StartAddress>
<Size>0x800</Size>
</IRO>
<IRA>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x100</Size>
</IRA>
<XRA>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</XRA>
<XRA512>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</XRA512>
<IROM512>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</IROM512>
<XRA513>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</XRA513>
<IROM513>
<Type>0</Type>
<StartAddress>0x0</StartAddress>
<Size>0x0</Size>
</IROM513>
</OnChipMemories>
</Target51Misc>
<C51>
<RegisterColoring>0</RegisterColoring>
<VariablesInOrder>0</VariablesInOrder>
<IntegerPromotion>1</IntegerPromotion>
<uAregs>0</uAregs>
<UseInterruptVector>1</UseInterruptVector>
<Fuzzy>3</Fuzzy>
<Optimize>8</Optimize>
<WarningLevel>2</WarningLevel>
<SizeSpeed>1</SizeSpeed>
<ObjectExtend>1</ObjectExtend>
<ACallAJmp>0</ACallAJmp>
<InterruptVectorAddress>0</InterruptVectorAddress>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>
<Undefine></Undefine>
<IncludePath></IncludePath>
</VariousControls>
</C51>
<Ax51>
<UseMpl>0</UseMpl>
<UseStandard>1</UseStandard>
<UseCase>0</UseCase>
<UseMod51>0</UseMod51>
<VariousControls>
<MiscControls></MiscControls>
<Define></Define>
<Undefine></Undefine>
<IncludePath></IncludePath>
</VariousControls>
</Ax51>
<Lx51>
<useFile>0</useFile>
<linkonly>0</linkonly>
<UseMemoryFromTarget>1</UseMemoryFromTarget>
<CaseSensitiveSymbols>0</CaseSensitiveSymbols>
<WarningLevel>2</WarningLevel>
<DataOverlaying>1</DataOverlaying>
<OverlayString></OverlayString>
<MiscControls></MiscControls>
<DisableWarningNumbers></DisableWarningNumbers>
<LinkerCmdFile></LinkerCmdFile>
<Assign></Assign>
<ReserveString></ReserveString>
<CClasses></CClasses>
<UserClasses></UserClasses>
<CSection></CSection>
<UserSection></UserSection>
<CodeBaseAddress></CodeBaseAddress>
<XDataBaseAddress></XDataBaseAddress>
<PDataBaseAddress></PDataBaseAddress>
<BitBaseAddress></BitBaseAddress>
<DataBaseAddress></DataBaseAddress>
<IDataBaseAddress></IDataBaseAddress>
<Precede></Precede>
<Stack></Stack>
<CodeSegmentName></CodeSegmentName>
<XDataSegmentName></XDataSegmentName>
<BitSegmentName></BitSegmentName>
<DataSegmentName></DataSegmentName>
<IDataSegmentName></IDataSegmentName>
</Lx51>
</Target51>
</TargetOption>
<Groups>
<Group>
<GroupName>Source Group 1</GroupName>
<Files>
<File>
<FileName>STARTUP.A51</FileName>
<FileType>2</FileType>
<FilePath>.\STARTUP.A51</FilePath>
</File>
<File>
<FileName>main.c</FileName>
<FileType>1</FileType>
<FilePath>.\main.c</FilePath>
</File>
</Files>
</Group>
</Groups>
</Target>
</Targets>
</Project>

File diff suppressed because it is too large Load Diff

View File

@ -3,14 +3,14 @@
".\objects\24l01.o" ".\objects\24l01.o"
".\objects\spi_hal.o" ".\objects\spi_hal.o"
".\objects\interrupt.o" ".\objects\interrupt.o"
".\objects\retarget.o"
".\objects\startup_m451series.o"
".\objects\system_m451series.o"
".\objects\clk.o" ".\objects\clk.o"
".\objects\gpio.o" ".\objects\gpio.o"
".\objects\pwm.o" ".\objects\pwm.o"
".\objects\spi.o" ".\objects\spi.o"
".\objects\sys.o" ".\objects\sys.o"
".\objects\retarget.o"
".\objects\startup_m451series.o"
".\objects\system_m451series.o"
--strict --scatter ".\Objects\roboticarm_controller.sct" --strict --scatter ".\Objects\roboticarm_controller.sct"
--summary_stderr --info summarysizes --map --load_addr_map_info --xref --callgraph --symbols --summary_stderr --info summarysizes --map --load_addr_map_info --xref --callgraph --symbols
--info sizes --info totals --info unused --info veneers --info sizes --info totals --info unused --info veneers

View File

@ -11,13 +11,13 @@ short Axis5 = 0;
short Axis6 = 0; short Axis6 = 0;
void GPIO_Direction_Init(){ void GPIO_Direction_Init(){
GPIO_SetMode(PB,BIT4,GPIO_MODE_OUTPUT); //white GPIO_SetMode(PB,BIT4,GPIO_MODE_OUTPUT); //white the grabber
GPIO_SetMode(PB,BIT8,GPIO_MODE_OUTPUT); // yellow GPIO_SetMode(PB,BIT8,GPIO_MODE_OUTPUT); // yellow port4
GPIO_SetMode(PB,BIT9,GPIO_MODE_OUTPUT); // grey GPIO_SetMode(PB,BIT9,GPIO_MODE_OUTPUT); // grey port1
GPIO_SetMode(PB,BIT11,GPIO_MODE_OUTPUT); //green GPIO_SetMode(PB,BIT11,GPIO_MODE_OUTPUT); //green port2
GPIO_SetMode(PE,BIT5,GPIO_MODE_OUTPUT); // zise GPIO_SetMode(PE,BIT5,GPIO_MODE_OUTPUT); // zise port5
GPIO_SetMode(PA,BIT9,GPIO_MODE_OUTPUT); // blue GPIO_SetMode(PA,BIT9,GPIO_MODE_OUTPUT); // blue port3
PB4 = 0; PB4 = 0;
PB8 = 0; PB8 = 0;

View File

@ -16,7 +16,7 @@
<TargetCommonOption> <TargetCommonOption>
<Device>M453VG6AE</Device> <Device>M453VG6AE</Device>
<Vendor>Nuvoton</Vendor> <Vendor>Nuvoton</Vendor>
<PackID>Nuvoton.NuMicro_DFP.1.2.0</PackID> <PackID>Nuvoton.NuMicro_DFP.1.3.5</PackID>
<PackURL>http://www.nuvoton.com/hq/enu/Documents/KEILSoftwarePack</PackURL> <PackURL>http://www.nuvoton.com/hq/enu/Documents/KEILSoftwarePack</PackURL>
<Cpu>IRAM(0x20000000,0x8000) IROM(0x00000000,0x40000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000)</Cpu> <Cpu>IRAM(0x20000000,0x8000) IROM(0x00000000,0x40000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000)</Cpu>
<FlashUtilSpec></FlashUtilSpec> <FlashUtilSpec></FlashUtilSpec>
@ -430,10 +430,25 @@
</Targets> </Targets>
<RTE> <RTE>
<packages>
<filter>
<targetInfos/>
</filter>
<package name="CMSIS" schemaVersion="1.3" url="http://www.keil.com/pack/" vendor="ARM" version="5.6.0">
<targetInfos>
<targetInfo name="Target 1" versionMatchMode="fixed"/>
</targetInfos>
</package>
<package name="NuMicro_DFP" schemaVersion="1.2" url="http://www.nuvoton.com/hq/enu/Documents/KEILSoftwarePack" vendor="Nuvoton" version="1.2.0">
<targetInfos>
<targetInfo name="Target 1" versionMatchMode="fixed"/>
</targetInfos>
</package>
</packages>
<apis/> <apis/>
<components> <components>
<component Cclass="CMSIS" Cgroup="CORE" Cvendor="ARM" Cversion="5.1.1" condition="ARMv6_7_8-M Device"> <component Cclass="CMSIS" Cgroup="CORE" Cvendor="ARM" Cversion="5.3.0" condition="ARMv6_7_8-M Device">
<package name="CMSIS" schemaVersion="1.3" url="http://www.keil.com/pack/" vendor="ARM" version="5.3.0"/> <package name="CMSIS" schemaVersion="1.3" url="http://www.keil.com/pack/" vendor="ARM" version="5.6.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>