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

📄 8255.lis

📁 这是一款基于AVR单片机的直流稳压电源的设计项目
💻 LIS
📖 第 1 页 / 共 5 页
字号:
 0004           ; #define RW0 PORTE&=~(1<<5)
 0004           ; #define RS1 PORTE|=(1<<3)
 0004           ; #define RS0 PORTE&=~(1<<3)
 0004           ; #define LCDCS11 PORTE|=(1<<1)
 0004           ; #define LCDCS10 PORTE&=~(1<<1)
 0004           ; #define LCDCS21 PORTE|=(1<<2)
 0004           ; #define LCDCS20 PORTE&=~(1<<2)
 0004           ; //定义key
 0004           ; #define key PIND 
 0004           ; //定义TLC5615
 0004           ; #define SPI_DATA0 PORTF&=~(1<<0)
 0004           ; 
 0004           ; #define SPI_DATA1 PORTF|=(1<<0) 
 0004           ; #define SPI_CLK1 PORTD|=(1<<6)
 0004           ; #define SPI_CLK0 PORTD&=~(1<<6)
 0004           ; #define CS_DA0 PORTD&=~(1<<7)
 0004           ; #define CS_DA1 PORTD|=(1<<7)
 0004           ; unsigned int writeDA;
 0004           ; //定义TLC2543
 0004           ; #define       tlc2543_clk1  PORTD|=(1<<5)
 0004           ; #define       tlc2543_clk0 PORTD&=~(1<<5)
 0004           ; #define tlc2543_din1 PORTF|=(1<<1)
 0004           ; #define tlc2543_din0 PORTF&=~(1<<1)
 0004           ; #define       tlc2543_cs1 PORTF|=(1<<3)
 0004           ; #define       tlc2543_cs0 PORTF&=~(1<<3)
 0004           ; #define tlc2543_dout (PINF&0X04)
 0004           ; //定义继电器
 0004           ; #define sw0 PORTC&=~(1<<5)
 0004           ; #define sw1  PORTC|=(1<<5)
 0004           ; //定义ad9851
 0004           ; #define wclk0 PORTF&=~(1<<5)
 0004           ; #define wclk1  PORTF|=(1<<5)
 0004           ; #define fqud0   PORTF&=~(1<<6)
 0004           ; #define fqud1  PORTF|=(1<<6) 
 0004           ; #define reset98511 PORTF|=(1<<7)
 0004           ; #define reset98510  PORTF&=~(1<<7)
 0004           ; #define ad9851shuju PORTA
 0004           ; //报警
 0004           ; //#define erjiguanON  PORTE&=~(1<<0)
 0004           ; //#define erjiguanOFF  PORTE|=(1<<0)
 0004           ; #define fengmingqiON  PORTD&=~(1<<4)
 0004           ; #define fengmingqiOFF  PORTD|=(1<<4)
 0004           ; 
 0004           ; signed char jianzhi[5]={0,0,0,0,0};
 0004           ; unsigned char kongzhi[5];
 0004           ; signed long int pinlv;
 0004           ; unsigned int startAD(unsigned char CHN) ;
 0004           ; void tongdao(unsigned char i);
 0004           ; unsigned int  date1,date;
 0004           ; float date2;
 0004           ; unsigned char  time=0;
 0004           ; #pragma interrupt_handler guoliujianche:6
 0004           ; 
 0004           ; const unsigned char huan[]={0x0A,0x92,0x62,0x9E,0x02,0x18,0x87,0x74,0x84,0x14,0x0C,0x00,0x02,0x01,0x00,0x04,
 0004           ; 0x05,0x02,0x01,0x00,0x01,0x02,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char ying[]={0x08,0xF9,0x02,0x00,0xFE,0x42,0x41,0xFE,0x02,0x82,0xFE,0x00,0x06,0x01,0x02,0x02,
 0004           ; 0x04,0x04,0x04,0x05,0x04,0x04,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char shi[]={0x10,0x08,0xFE,0x01,0x7A,0xCA,0x4A,0xFF,0x4A,0x4A,0x7A,0x00,0x00,0x00,0x07,0x04,
 0004           ; 0x04,0x02,0x01,0x02,0x04,0x04,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char yong[]={0x00,0xFF,0x49,0x49,0x49,0xFF,0x49,0x49,0x49,0xFF,0x00,0x00,0x06,0x01,0x00,0x00,
 0004           ; 0x00,0x07,0x00,0x04,0x04,0x07,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char  shu[]= {0xA5,0x96,0xCC,0xBF,0x96,0xA5,0x18,0x67,0x84,0x7C,0x04,0x00,0x04,0x05,0x02,0x02,
 0004           ; 0x03,0x04,0x04,0x02,0x01,0x02,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char kong[]={0x44,0x24,0xFF,0x14,0x26,0x52,0x4A,0xC3,0x4A,0x52,0x26,0x00,0x04,0x04,0x07,0x00,
 0004           ; 0x04,0x04,0x04,0x07,0x04,0x04,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char yuan[]={0x08,0xD1,0x3A,0x80,0x7F,0x01,0x7D,0x57,0xD5,0x55,0x7D,0x00,0x01,0x07,0x02,0x01,
 0004           ; 0x04,0x02,0x05,0x04,0x07,0x01,0x06,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char wen[]={0x8A,0x6A,0xFE,0x29,0x41,0xAC,0xAB,0xAA,0xAE,0xAA,0xF8,0x00,0x01,0x00,0x07,0x02,
 0004           ; 0x01,0x07,0x04,0x06,0x04,0x05,0x02,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char  dya[]= {0x00,0xFF,0x01,0x21,0x21,0xFD,0x21,0x61,0xA1,0x21,0x01,0x00,0x06,0x01,0x04,0x04,
 0004           ; 0x04,0x07,0x04,0x04,0x04,0x05,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char  ddian[]=  {0x00,0xFC,0x94,0x94,0x94,0xFF,0x94,0x94,0x94,0xFE,0x04,0x00,0x00,0x01,0x00,0x00,
 0004           ; 0x00,0x03,0x04,0x04,0x04,0x04,0x06,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char chu[]= {0x34,0x2F,0xF4,0xA4,0xE8,0xA4,0xEA,0x09,0xEA,0x04,0xE8,0x00,0x01,0x01,0x07,0x00,
 0004           ; 0x07,0x02,0x07,0x00,0x01,0x04,0x07,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char cu[]={0x00,0xDE,0x10,0x10,0x10,0xFF,0x10,0x10,0x10,0xDE,0x00,0x00,0x00,0x07,0x04,0x04,
 0004           ; 0x04,0x07,0x04,0x04,0x04,0x07,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char heng[]={0x18,0xFF,0x08,0x02,0xFA,0x2A,0x2A,0x2A,0x2A,0xFB,0x02,0x00,0x00,0x07,0x00,0x04,
 0004           ; 0x05,0x05,0x05,0x05,0x05,0x05,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char ru []={0x00,0x00,0x00,0xC1,0x31,0x0E,0x30,0xC0,0x00,0x00,0x00,0x00,0x04,0x02,0x01,0x00,
 0004           ; 0x00,0x00,0x00,0x00,0x01,0x02,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char you[]={0x42,0x22,0x12,0xFA,0x4E,0x4B,0x4A,0x4A,0xFA,0x02,0x02,0x00,0x00,0x00,0x00,0x07,
 0004           ; 0x01,0x01,0x01,0x05,0x07,0x00,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char xiao[]={0x24,0x14,0x4D,0x86,0x6C,0x14,0x08,0x7F,0x84,0x7C,0x04,0x00,0x04,0x02,0x01,0x00,
 0004           ; 0x03,0x04,0x02,0x01,0x01,0x02,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char zhixian[]={0x20,0x20,0x20,0x20,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char dliu[]=    {0x11,0xA6,0x70,0x02,0xD2,0x1A,0xD7,0x12,0xDA,0x32,0x02,0x00,0x01,0x07,0x04,0x02,
 0004           ; 0x01,0x00,0x07,0x00,0x07,0x04,0x07,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char guo[]=  {0x11,0x16,0xF0,0x04,0x14,0x64,0x04,0x04,0xFF,0x04,0x04,0x00,0x04,0x02,0x01,0x02,
 0004           ; 0x04,0x04,0x05,0x05,0x05,0x04,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char si[]={0x88,0x86,0xA2,0xCA,0x92,0x83,0xFA,0x82,0x82,0x8A,0x86,0x00,0x00,0x04,0x04,0x04,
 0004           ; 0x02,0x01,0x00,0x01,0x02,0x04,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char ji[]={0xFF,0x81,0x99,0xE7,0x08,0xC9,0x09,0xF9,0x09,0xC9,0x08,0x00,0x07,0x00,0x00,0x02,
 0004           ; 0x01,0x04,0x04,0x07,0x00,0x00,0x03,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char yu[]={0x11,0x15,0xFD,0x13,0x30,0x01,0xFD,0x07,0xF5,0x05,0xFD,0x00,0x04,0x04,0x07,0x00,
 0004           ; 0x04,0x04,0x02,0x01,0x01,0x02,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char zhi[]= {0x10,0x17,0xF5,0x55,0x57,0x5D,0x57,0x55,0xF5,0x17,0x10,0x00,0x04,0x04,0x07,0x05,
 0004           ; 0x05,0x05,0x05,0x05,0x07,0x04,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char bo[]={0x08,0xD1,0x3A,0x00,0xFC,0x24,0xE4,0x3F,0xA4,0x64,0x0C,0x00,0x01,0x07,0x04,0x03,
 0004           ; 0x04,0x04,0x02,0x01,0x02,0x04,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char xing[]={0x12,0x12,0xFE,0x12,0x12,0xFF,0x92,0x48,0x24,0x13,0x80,0x00,0x04,0x03,0x00,0x00,
 0004           ; 0x00,0x07,0x04,0x02,0x02,0x01,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char zfv[]=   {0x20,0xE0,0x20,0x80,0x60,0x20,0x00,0x00,0x03,0x01,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char zfA[]= {0x00,0xE0,0x9C,0xF0,0x80,0x00,0x02,0x03,0x00,0x00,0x03,0x02
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char zfm[]={0xE0,0x20,0xE0,0x20,0xC0,0x00,0x03,0x00,0x03,0x00,0x03,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char sz0[]={0xF8,0x04,0x04,0x04,0xF8,0x00,0x01,0x02,0x02,0x02,0x01,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char sz1[]={0x00,0x08,0xFC,0x00,0x00,0x00,0x00,0x02,0x03,0x02,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char sz2[]={0x18,0x84,0x44,0x24,0x18,0x00,0x03,0x02,0x02,0x02,0x02,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char sz3[]={0x08,0x04,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char sz4[]={0x40,0xB0,0x88,0xFC,0x80,0x00,0x00,0x00,0x00,0x03,0x02,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char sz5[]={0x3C,0x24,0x24,0x24,0xC4,0x00,0x01,0x02,0x02,0x02,0x01,0x00
 0004           ; };
 0004           ; 
 0004           ;  
 0004           ; const unsigned char sz6[]={0xF8,0x24,0x24,0x2C,0xC0,0x00,0x01,0x02,0x02,0x02,0x01,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char sz7[]={0x0C,0x04,0xE4,0x1C,0x04,0x00,0x00,0x00,0x03,0x00,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; 
 0004           ; const unsigned char sz8[]={0xD8,0x24,0x24,0x24,0xD8,0x00,0x01,0x02,0x02,0x02,0x01,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char sz9[]={0x38,0x44,0x44,0x44,0xF8,0x00,0x00,0x03,0x02,0x02,0x01,0x00
 0004           ; };
 0004           ; 
 0004           ; 
 0004           ; const unsigned char xiaoshu[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char  kongke[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char dqing[]= {0x10,0xF1,0x02,0x00,0x2A,0xEA,0xAA,0xBF,0xAA,0xEA,0x2A,0x00,0x00,0x07,0x02,0x01,
 0004           ; 0x00,0x07,0x02,0x02,0x02,0x07,0x00,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char chong[]=  {0x04,0x05,0xF5,0x55,0x55,0xFF,0x55,0x55,0xF5,0x05,0x04,0x00,0x04,0x05,0x05,0x05,
 0004           ; 0x05,0x07,0x05,0x05,0x05,0x05,0x04,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char qi[]=  {0x00,0x00,0xFE,0xD2,0x52,0x53,0x52,0x52,0x52,0xDE,0x00,0x00,0x04,0x03,0x00,0x07,
 0004           ; 0x04,0x04,0x04,0x04,0x04,0x07,0x00,0x00
 0004           ; };
 0004           ; const unsigned char pin[]={0x90,0x5E,0xF0,0x1F,0xD4,0x11,0xFD,0x05,0xF7,0x05,0xFD,0x00,0x04,0x04,0x02,0x01,
 0004           ; 0x04,0x04,0x02,0x01,0x00,0x01,0x06,0x00
 0004           ; };
 0004           ; 
 0004           ; const unsigned char lv[]={0x42,0x46,0x2A,0x52,0x6A,0xD7,0x6A,0x52,0x2A,0x46,0x02,0x00,0x01,0x01,0x01,0x01,
 0004           ; 0x01,0x07,0x01,0x01,0x01,0x01,0x01,0x00
 0004           ; };
 0004           ; const unsigned char zfM[]={0xFC,0x3C,0xC0,0x3C,0xFC,0x00,0x03,0x00,0x03,0x00,0x03,0x00
 0004           ; };
 0004           ; const unsigned char zfk[]={0x04,0xFC,0x80,0xE0,0x20,0x20,0x02,0x03,0x02,0x00,0x03,0x02
 0004           ; };
 0004           ; 
 0004           ; const unsigned char *num[]={sz0,sz1,sz2,sz3,sz4,sz5,sz6,sz7,sz8,sz9};
 0004           ; 
 0004           ; 
 0004           ; //8255
 0004           ; void delay(unsigned int t)
 0004           ;  {
 0004                   .dbline 289
 0004           ;   unsigned int i,j;
 0004           ;   for(i=0;i<t;i++)
 0004 4427              clr R20
 0006 5527              clr R21
 0008 0BC0              xjmp L5
 000A           L2:
 000A                   .dbline 290
 000A           ;   for(j=0;j<10;j++)
 000A 6627              clr R22
 000C 7727              clr R23
 000E 02C0              xjmp L9
 0010           L6:
 0010                   .dbline 291
 0010           ;    ;
 0010           L7:
 0010                   .dbline 290
 0010 6F5F              subi R22,255  ; offset = 1
 0012 7F4F              sbci R23,255
 0014           L9:
 0014                   .dbline 290
 0014 6A30              cpi R22,10
 0016 E0E0              ldi R30,0
 0018 7E07              cpc R23,R30
 001A D0F3              brlo L6
 001C           X0:
 001C           L3:
 001C                   .dbline 289
 001C 4F5F              subi R20,255  ; offset = 1
 001E 5F4F              sbci R21,255
 0020           L5:
 0020                   .dbline 289
 0020 4017              cp R20,R16
 0022 5107              cpc R21,R17
 0024 90F3              brlo L2
 0026           X1:
 0026                   .dbline -2
 0026           L1:
 0026                   .dbline 0 ; func end
 0026 0C940000          xjmp pop_xgsetF000
 002A                   .dbsym r i 20 i
 002A                   .dbsym r j 22 i
 002A                   .dbsym r t 16 i
 002A                   .dbend
 002A                   .dbfunc e writePA _writePA fV
 002A           ;              d -> R10
                        .even
 002A           _writePA::
 002A AA92              st -y,R10
 002C A02E              mov R10,R16
 002E                   .dbline -1
 002E                   .dbline 327
 002E           ;  }
 002E           ; /*void writePC(unsigned char d,unsigned char x)//PA的第d个端口置X x=0或1
 002E           ; {
 002E           ; WROFF; LEOFF;
 002E           ; shuju=0X09;
 002E           ; delay(1);
 002E           ;   LEON ;
 002E           ;   delay(1);
 002E           ;  LEOFF;
 002E           ;   delay(1);
 002E           ;   if(x==1)
 002E           ;   shuju=lastPA|(1<<d);
 002E           ;   if(x==0)
 002E           ;   shuju=lastPA&~(1<<d);
 002E           ;   lastPA=shuju;
 002E           ;   WRON ;
 002E           ; delay(5);WROFF;
 002E           ; 
 002E           ; }*/
 002E           ; /*void writePB(unsigned char d)
 002E           ; { 
 002E           ; WROFF; 
 002E           ;  LEOFF;
 002E           ; shuju=0X05;
 002E           ;   delay(1);

⌨️ 快捷键说明

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