📄 addanfeng.s
字号:
_jietuo::
.byte 64,224
.byte 224,224
.byte 224,224
.byte 230,254
.byte 252,248
.byte 240,224
.byte 224,240
.byte 240,0
.byte 0,0
.byte 0,0
.byte 0,54
.byte 63,127
.byte 255,255
.byte 127,63
.byte 63,127
.byte 127,0
.dbsym e jietuo _jietuo A[32:32]kc
_jietuor::
.byte 0,192
.byte 32,16
.byte 8,4
.byte 2,2
.byte 250,2
.byte 4,8
.byte 16,32
.byte 192,0
.byte 0,3
.byte 4,8
.byte 16,32
.byte 64,'A
.byte 'C,'A
.byte 33,17
.byte 9,4
.byte 3,0
.dbsym e jietuor _jietuor A[32:32]kc
_empty::
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.dbsym e empty _empty A[32:32]kc
_number::
.byte 0,224
.byte 16,8
.byte 8,16
.byte 224,0
.byte 0,15
.byte 16,32
.byte 32,16
.byte 15,0
.byte 0,16
.byte 16,248
.byte 0,0
.byte 0,0
.byte 0,32
.byte 32,63
.byte 32,32
.byte 0,0
.byte 0,'p
.byte 8,8
.byte 8,136
.byte 'p,0
.byte 0,48
.byte 40,36
.byte 34,33
.byte 48,0
.byte 0,48
.byte 8,136
.byte 136,'H
.byte 48,0
.byte 0,24
.byte 32,32
.byte 32,17
.byte 14,0
.byte 0,0
.byte 192,32
.byte 16,248
.byte 0,0
.byte 0,7
.byte 4,36
.byte 36,63
.byte 36,0
.byte 0,248
.byte 8,136
.byte 136,8
.byte 8,0
.byte 0,25
.byte 33,32
.byte 32,17
.byte 14,0
.byte 0,224
.byte 16,136
.byte 136,24
.byte 0,0
.byte 0,15
.byte 17,32
.byte 32,17
.byte 14,0
.byte 0,56
.byte 8,8
.byte 200,56
.byte 8,0
.byte 0,0
.byte 0,63
.byte 0,0
.byte 0,0
.byte 0,'p
.byte 136,8
.byte 8,136
.byte 'p,0
.byte 0,28
.byte 34,33
.byte 33,34
.byte 28,0
.byte 0,224
.byte 16,8
.byte 8,16
.byte 224,0
.byte 0,0
.byte 49,34
.byte 34,17
.byte 15,0
.byte 0,0
.byte 128,128
.byte 128,128
.byte 128,0
.byte 0,51
.byte 36,36
.byte 36,36
.byte 25,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,48
.byte 48,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,192
.byte 192,0
.byte 0,0
.byte 0,0
.byte 0,48
.byte 48,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 64,32
.byte 16,12
.byte 230,36
.byte 36,36
.byte 4,4
.byte 4,4
.byte 7,4
.byte 4,4
.byte 252,36
.byte 36,36
.byte 36,4
.byte 0,0
.byte 127,4
.byte 4,4
.byte 4,4
.byte 4,0
.byte 0,0
.byte 0,0
.byte 0,254
.byte 34,34
.byte 0,64
.byte 32,16
.byte 12,3
.byte 2,2
.byte 34,34
.byte 34,254
.byte 0,0
.byte 0,0
.byte 2,34
.byte 'B,63
.byte 0,0
.byte 0,0
.byte 0,64
.byte 64,94
.byte 'R,210
.byte 'R,'R
.byte 0,0
.byte 0,0
.byte 2,7
.byte 2,18
.byte 'R,'R
.byte 'R,94
.byte 64,64
.byte 0,0
.byte 34,'B
.byte 34,30
.byte 0,0
.byte 0,0
.byte 0,128
.byte 128,128
.byte 128,128
.byte 128,128
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 128,128
.byte 128,128
.byte 128,192
.byte 128,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 16,16
.byte 16,16
.byte 16,16
.byte 0,16
.byte 16,16
.byte 16,16
.byte 16,16
.byte 16,16
.byte 16,24
.byte 16,0
.byte 0,0
.byte 16,16
.byte 16,16
.byte 16,24
.byte 16,0
.byte 0,8
.byte 8,8
.byte 8,8
.byte 8,8
.byte 0,32
.byte 33,33
.byte 33,33
.byte 33,33
.byte 8,8
.byte 8,8
.byte 8,8
.byte 0,0
.byte 33,33
.byte 33,33
.byte 33,32
.byte 32,0
.byte 0,0
.byte 248,8
.byte 8,8
.byte 248,8
.byte 0,0
.byte 127,40
.byte 36,35
.byte 32,32
.byte 8,248
.byte 8,8
.byte 8,248
.byte 0,0
.byte 32,33
.byte 34,34
.byte 34,127
.byte 0,0
.byte 0,0
.byte 132,132
.byte 132,132
.byte 252,132
.byte 32,32
.byte 32,32
.byte 32,63
.byte 32,32
.byte 132,132
.byte 196,132
.byte 4,0
.byte 0,0
.byte 32,32
.byte 63,32
.byte 32,48
.byte 32,0
.byte 32,32
.byte 32,32
.byte 32,162
.byte 36,60
.byte 0,64
.byte 32,16
.byte 12,3
.byte 1,0
.byte 168,32
.byte 32,32
.byte 32,32
.byte 32,0
.byte 0,1
.byte 2,12
.byte 'x,48
.byte 0,0
.byte 0,0
.byte 0,252
.byte 132,132
.byte 132,132
.byte 0,0
.byte 0,63
.byte 16,16
.byte 16,16
.byte 132,132
.byte 132,252
.byte 0,0
.byte 0,0
.byte 16,16
.byte 16,63
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 192,48
.byte 12,0
.byte 0,48
.byte 12,3
.byte 0,0
.byte 0,0
.dbsym e number _number A[560:560]kc
_stoptime_hz::
.byte 0,32
.byte 16,8
.byte 135,138
.byte 'R,34
.byte 34,'R
.byte 142,130
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 254,34
.byte 34,34
.byte 34,254
.byte 34,34
.byte 34,34
.byte 254,0
.byte 0,0
.byte 0,0
.byte 2,2
.byte 1,255
.byte 'J,'J
.byte 'J,126
.byte 'J,'J
.byte 'J,255
.byte 1,3
.byte 1,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,0
.byte 0,128
.byte 64,48
.byte 15,2
.byte 2,2
.byte 2,127
.byte 2,2
.byte 'B,130
.byte 127,0
.byte 0,0
.byte 'f,'f
.dbsym e stoptime_hz _stoptime_hz A[128:128]kc
.area text(rom, con, rel)
.dbfile D:\addanfeng\addanfeng.c
.dbfunc e TIMER1_INIT _TIMER1_INIT fV
.even
_TIMER1_INIT::
.dbline -1
.dbline 407
; //产品名称:奥德新气动型铆接机
; //时间:2006.12.7
; //作者:leidailiang
; //eeprom[0]:铆接时间l //eeprom[1]:铆接时间h
; //eeprom[2]:nooooooop //eeprom[4]:判断是否初次写EEPROM
; //eeprom[5]:EEPROM擦写次数移位eeprom[7]:系统清计低位
; //eeprom[8]:系统清计高位//eeprom[9]:系统清计高位
; //------------------------定义头文件----------------
; #include <iom162v.h>
; #include <macros.h>
; #include <math.h>
; #include <eeprom.h>
;
; //-------------------------定义常量-----------------
;
; #define OPENBZ 0X55
; #define CLOSEBZ 0XAA
; #define CE 0X20
; #define CLK 0X08
; #define DI 0X10
; #define yearhz 0x0e
; #define monthhz 0x10
; #define dayhz 0x12
; #define maohaohz 0x0c
; #define weekhz 0x14
; #define xianganghz 0x22
; //----------------------宏定义----------------------
; #define clr_cs_out PORTB&=0XBF
; #define set_cs_out PORTB|=0X40
;
; #define output_Y0 PORTB&=0Xfd
; #define without_Y0 PORTB|=0X02
;
; #define output_Y1 PORTB&=0Xfb
; #define without_Y1 PORTB|=0X04
;
; #define output_Y2 PORTB&=0Xf7
; #define without_Y2 PORTB|=0X08
;
; #define output_Y4 PORTB&=0Xdf
; #define without_Y4 PORTB|=0X20
;
; #define eor_resc PORTD^=BIT(PD0)
;
; //----------------------定义绝对地址空间------------
; #define CS1_ADDRESS (*(volatile unsigned char *)0xE600)
; #define CS2_ADDRESS (*(volatile unsigned char *)0xD600)
; #define code_ADDRESS (*(volatile unsigned char *)0xF400)
; #define data_ADDRESS (*(volatile unsigned char *)0xF600)
; #define inport0 (*(volatile unsigned char *)0x8b00)
; #define inport1 (*(volatile unsigned char *)0x4b00) //16c650
; void dis_control_mode(unsigned char line,unsigned char column, unsigned char lcd_csx);
; void delay(unsigned int n);
; void init_disp(void);
; void strat_scarn(void);
; void write_code(unsigned char w_code);
; void write_data(unsigned char wdata);
; void write_cs1(unsigned char cs1_data);
; void write_cs2(unsigned char cs2_data);
; void set_xy(unsigned char x_page,unsigned char y);
; void set_xytemp(unsigned char x_page,unsigned char y);
; void SetOnOff(unsigned char onoff);
; void PARAMETER_SETDISP(void);
; void PARAMETER_SET(void);
; void PJZCS(void);
; void init_time0(void);
; void clear_lcd(void);
; void display_number(unsigned char x_line,unsigned char y_line,unsigned char lcd_x );
; void display_number_decimal(void);
; void disp_number(unsigned char x_line,unsigned char y_line,unsigned char lcd_x,unsigned char jj );
; void init_lcd(void);
; void DISPLY_CLOCK (void);
; void oil_pump_open (void);
; void oil_pump_off (void);
; void main_axis_open (void);
; void main_axis_off (void);
; void electricity_valve_open (void);
; void electricity_valve_off (void);
; unsigned char RTEEPROMReady(void);
;
; unsigned char HB1=6,HB2=0,HB3=0,HB4=2,HB5=0,HB6=0;
; unsigned char keycytemp,jishu;
; //unsigned char pjyx_flag[20]={0,0,0,0,0,0,0,0,0,0,OPENBZ,0,0,0,0}; //按键子程序暂存值
; unsigned char grating_key=CLOSEBZ,switch1_key,switch2_key,switch3_key,manual_auto_key,down_key,up_key,switch2_keystata,setup_key,add_key,dcc_key,clear_key,no_key=OPENBZ;
; unsigned char grating_keytemp1=CLOSEBZ,grating_keytemp2=CLOSEBZ,jishubz;
; unsigned char setupdisp_flag=0,setupitem_flag=0;
; unsigned char valve_state_flag=OPENBZ,halfauto_state=0,auto_state=0;
; unsigned char ryear=11,rmonth=11,rday=11,rhour=11,rminute=11,rsecond,rweek;
; unsigned char wyear=12,wmonth=12,wday=12,whour=12,wminute=12,wsecond,wweek;
; unsigned char zhuangangle=0,zhuangangle_plan;
; unsigned int maojietime=0,maojietime_plan,user_password=4,passwordtime=0,passwrodjishu=0;
; unsigned char passstate=0;
; unsigned long int temp,geishusum=0,qishusum=0,geishusumtemp=55;
; unsigned char time0=0,time1=0;time2=0,time3=0,time4=0;
; unsigned char cortrolMODEL=0,temp1,main_flag;
; unsigned char eepromywcs=0,eepromywcstemp=0xff;//EEPROM擦写次数移位
; const unsigned char danfen_bz1[]={ //厂标上部分
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x40,0x40,0x20,0x20,0x10,
; 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
; 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
; 0x10,0x20,0x20,0x40,0x40,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0xF0,0x08,0x04,0x02,0x01,0x00,0x00,0x07,0x03,0x01,0x01,
; 0x01,0xC1,0xFF,0x3F,0x00,0x00,0x01,0xFF,0xFF,0x01,0x00,0x00,0x01,0xFF,0xFF,0x01,
; 0x00,0xF8,0xFC,0x06,0x03,0x01,0x01,0x01,0x06,0xFC,0xF8,0x00,0x01,0xFF,0xFF,0x01,
; 0x01,0x01,0x03,0x06,0x0C,0xF8,0xE1,0x02,0x04,0x08,0xF0,0x00,0x00,0x00,0x00,0x00,
; };
;
; const unsigned char danfen_bz2[]={ //厂标下部分
; 0x00,0x00,0x00,0x00,0x00,0x0F,0x10,0x20,0x40,0x80,0x00,0x00,0x00,0xC0,0xF0,0x98,
; 0x9F,0x83,0x80,0xC0,0xE0,0x00,0x80,0xFF,0xFF,0x81,0x01,0x01,0x81,0xFF,0xFF,0x80,
; 0x00,0x1F,0x3F,0x20,0x40,0x90,0xB0,0xE0,0x60,0xBF,0x9F,0x00,0x80,0xFF,0xFF,0x80,
; 0x80,0x80,0x40,0x60,0x38,0x0F,0x87,0x40,0x20,0x10,0x0F,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x02,0x04,0x04,0x08,
; 0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,
; 0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x08,
; 0x08,0x04,0x04,0x02,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
; };
; const unsigned char wecome_right[]={ //:奥德铆压设
; 0x00,0x00,0xFC,0x54,0x46,0xFD,0x44,0x54,0xFC,0x00,0x00,0x00,0x20,0x10,0xC8,0x36,
; 0xF4,0x94,0xF4,0x9F,0xF4,0x94,0xF4,0x00,0x00,0x00,0x60,0x50,0xEE,0x28,0xF8,0x04,
; 0xFA,0xF0,0x08,0xF8,0x00,0x00,0x00,0x00,0xFC,0x04,0x04,0x04,0xE4,0x04,0x04,0x04,
; 0x00,0x00,0x00,0x20,0x24,0xE8,0x20,0x00,0x40,0x3E,0x04,0x3E,0x40,0x00,0x00,0x00,
; 0x80,0x88,0x4B,0x29,0x1E,0x09,0x18,0x29,0x4B,0x88,0x80,0x00,0x02,0x01,0x7F,0x00,
; 0x31,0x12,0x26,0x4A,0x86,0x6A,0x08,0x10,0x00,0x00,0x00,0x01,0x3F,0x51,0x21,0x1F,
; 0x03,0x7F,0x02,0x07,0x00,0x80,0x40,0x30,0x4F,0x40,0x41,0x41,0x7F,0x41,0x51,0x60,
; 0x40,0x40,0x00,0x00,0x00,0x3F,0x10,0x48,0x23,0x15,0x19,0x25,0x43,0x40,0x00,0x00,
; };
; const unsigned char wecome_left[]={ //:备有限公司
; 0x00,0x80,0x40,0x20,0x9C,0x6B,0x48,0xB8,0x8C,0x00,0x00,0x00,0x00,0x00,0x08,0x08,
; 0x88,0xE8,0x58,0x4F,0x48,0x48,0xE8,0x08,0x08,0x00,0x00,0xFE,0x42,0xBE,0x00,0xFE,
; 0x92,0x92,0x92,0xFE,0x00,0x00,0x00,0x00,0x00,0x80,0x60,0x18,0x00,0x82,0x0C,0x30,
; 0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x24,0xA4,0xA4,0xA4,0xA4,0x24,0x04,0xFC,0x00,
; 0x00,0x04,0x02,0x7D,0x4A,0x4A,0x7E,0x4A,0x7E,0x01,0x03,0x02,0x00,0x00,0x02,0x01,
; 0x00,0x7F,0x09,0x09,0x09,0x49,0x7F,0x00,0x00,0x00,0x00,0xFF,0x08,0x07,0x00,0x3F,
; 0x41,0x22,0x0C,0x12,0x61,0x40,0x00,0x00,0x03,0x00,0x70,0x2C,0x23,0x20,0x2C,0x10,
; 0x20,0x41,0x01,0x00,0x00,0x00,0x00,0x00,0x1F,0x08,0x08,0x0F,0x20,0x40,0xFF,0x00,
; };
;
; const unsigned char hand_strat[]={//手指开始1.bmp --
; 0x00,0xF8,0xF8,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF8,0xFC,0xFE,0xFF,0xFF,0xFF,
; 0x71,0x70,0x70,0x70,0x70,0x70,0x70,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x3F,0x3F,0x1F,0x1F,0x1F,0x1F,0x1F,0x3F,0x3F,0x3F,0x7F,0x7F,0x7F,0x3F,0x1F,
; 0x1B,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0C,0x0C,0x00,0x00,0x00,0x0C,0x0C,
; 0x00,0x00,0x00,0x0C,0x0C,0x00,0x00,0x00,0x0C,0x0C,0x00,0x00,0x00,0x0C,0x0C,0x00,
; 0x00,0x00,0x0C,0x0C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; };
; const unsigned char control_mode[]={ //控制方式
; 0x08,0x08,0x08,0xFF,0x88,0x48,0x00,0x98,0x48,0x28,0x0A,0x2C,0x48,0xD8,0x08,0x00,
; 0x50,0x4F,0x48,0x48,0xFF,0x48,0x48,0x48,0x00,0xFC,0x00,0x00,0xFF,0x00,0x08,0x08,
; 0x08,0x08,0x08,0x08,0xF9,0x4A,0x4C,0x48,0x48,0xC8,0x08,0x08,0x08,0x00,0x08,0x88,
; 0x88,0x88,0x88,0x88,0x08,0xFF,0x08,0x09,0x0E,0x0A,0x08,0x00,0x00,0x00,0x00,0x00,
; 0x02,0x42,0x81,0x7F,0x00,0x00,0x40,0x42,0x42,0x42,0x7E,0x42,0x42,0x42,0x40,0x00,
; 0x00,0x3F,0x01,0x01,0xFF,0x21,0x41,0x3F,0x00,0x0F,0x40,0x80,0x7F,0x00,0x40,0x40,
; 0x20,0x10,0x0C,0x03,0x00,0x00,0x20,0x40,0x40,0x3F,0x00,0x00,0x00,0x00,0x20,0x60,
; 0x30,0x1F,0x10,0x08,0x08,0x00,0x07,0x18,0x20,0x40,0x80,0x70,0x00,0x00,0x66,0x66,
; };
;
; const unsigned char stop[]={ //:停止
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x80,0x40,0x20,0xF8,0x07,0x02,0x04,0x74,0x54,0x55,0x56,0x54,0x74,0x04,0x04,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0x00,0xF0,0x00,0x00,0x00,0xFF,0x40,0x40,0x40,0x40,0x40,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0xFF,0x00,0x03,0x01,0x05,0x45,0x85,0x7D,0x05,0x05,0x05,0x03,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x40,0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x7F,0x40,0x40,0x40,0x40,0x40,0x40,0x00,
; };
; const unsigned char start[]={ //:启动
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x00,0x00,0x00,0xF8,0x48,0x48,0x48,0x49,0x4E,0x4A,0x48,0x48,0x48,0x78,0x00,0x00,
; 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
; 0x20,0x24,0x24,0xE4,0x24,0x24,0x24,0x20,0x10,0x10,0xFF,0x10,0x10,0xF0,0x00,0x00,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -