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

📄 clock.lst

📁 基于pic18f452的时钟代码
💻 LST
📖 第 1 页 / 共 5 页
字号:
000eb2   53d1     MOVF      0xd1,0x1,0x1   	movf curr_byte + 1, 1, 1                                                        C:\MCC18\src\traditional\startup\c018i.c
000eb4   e007     BZ        0xec4          	bz 7 // done_copying                                                            C:\MCC18\src\traditional\startup\c018i.c
                                                                                                                            C:\MCC18\src\traditional\startup\c018i.c
                                           copy_one_byte:                                                                   C:\MCC18\src\traditional\startup\c018i.c
000eb6   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\MCC18\src\traditional\startup\c018i.c
000eb8   50f5     MOVF      0xf5,0x0,0x0   	movf TABLAT, 0, 0                                                               C:\MCC18\src\traditional\startup\c018i.c
000eba   6eee     MOVWF     0xee,0x0       	movwf POSTINC0, 0                                                               C:\MCC18\src\traditional\startup\c018i.c
                                                                                                                            C:\MCC18\src\traditional\startup\c018i.c
                                           	// decrement byte counter                                                       C:\MCC18\src\traditional\startup\c018i.c
000ebc   07d0     DECF      0xd0,0x1,0x1   	decf curr_byte, 1, 1                                                            C:\MCC18\src\traditional\startup\c018i.c
000ebe   e2f8     BC        0xeb0          	bc -8 // copy_loop                                                              C:\MCC18\src\traditional\startup\c018i.c
000ec0   07d1     DECF      0xd1,0x1,0x1           decf curr_byte + 1, 1, 1                                                 C:\MCC18\src\traditional\startup\c018i.c
000ec2   d7f9     BRA       0xeb6          	bra -7 // copy_one_byte                                                         C:\MCC18\src\traditional\startup\c018i.c
                                                                                                                            C:\MCC18\src\traditional\startup\c018i.c
                                           done_copying:                                                                    C:\MCC18\src\traditional\startup\c018i.c
                                                                                                                            C:\MCC18\src\traditional\startup\c018i.c
                                                 _endasm                                                                    C:\MCC18\src\traditional\startup\c018i.c
                                                 /* restore the table pointer for the next entry */                         C:\MCC18\src\traditional\startup\c018i.c
000ec4   c0d4     MOVFF     0xd4,0xff6           TBLPTR = data_ptr;                                                         C:\MCC18\src\traditional\startup\c018i.c
000ec6   fff6                                                                                                               
000ec8   c0d5     MOVFF     0xd5,0xff7                                                                                      
000eca   fff7                                                                                                               
000ecc   c0d6     MOVFF     0xd6,0xff8                                                                                      
000ece   fff8                                                                                                               
                                                 /* next entry... */                                                        C:\MCC18\src\traditional\startup\c018i.c
000ed0   0100     MOVLB     0x0                  curr_entry--;                                                              C:\MCC18\src\traditional\startup\c018i.c
000ed2   07d2     DECF      0xd2,0x1,0x1                                                                                    
000ed4   0e00     MOVLW     0x0                                                                                             
000ed6   5bd3     SUBWFB    0xd3,0x1,0x1                                                                                    
000ed8   d7bf     BRA       0xe58                goto test;                                                                 C:\MCC18\src\traditional\startup\c018i.c
                                           done:                                                                            C:\MCC18\src\traditional\startup\c018i.c
                                           ;                                                                                C:\MCC18\src\traditional\startup\c018i.c
000eda   0012     RETURN    0x0            }                                                                                C:\MCC18\src\traditional\startup\c018i.c
                                           #include<p18f452.h>                                                              D:\clock\clk.c
                                           #include<pwm.h>                                                                  D:\clock\clk.c
                                           #include<adc.h>                                                                  D:\clock\clk.c
                                           #include<delays.h>                                                               D:\clock\clk.c
                                           #include<timers.h>                                                               D:\clock\clk.c
                                           #include"p18LCD.h"                                                               D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           void choosekey();                                                                D:\clock\clk.c
                                           void timeprocess();                                                              D:\clock\clk.c
                                           void timedisplay();                                                              D:\clock\clk.c
                                           void setdisplay();                                                               D:\clock\clk.c
                                           void temprocess(unsigned int AD_temp);                                           D:\clock\clk.c
                                           void PORDinitialize();                                                           D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           unsigned char displaycode(unsigned char);                                        D:\clock\clk.c
                                           void ring();                                                                     D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           #pragma udata access My_Access_RAM                                               D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           near unsigned int AD_temp;                                                       D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           union                                                                            D:\clock\clk.c
                                           {                                                                                D:\clock\clk.c
                                           	unsigned int AD_10bit;    // contant is 10-bit A/D Result                       D:\clock\clk.c
                                               unsigned char AD[2];	  // AD[0] is A/D Low byte, AD[1] is A/D High Byte      D:\clock\clk.c
                                           } near AD_Result;                                                                D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           #pragma udata                                                                    D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           static char hourl=0,hourh=0,minl=9,minh=0,secl=0,sech=5,day=5;                   D:\clock\clk.c
                                           int result=0;                                                                    D:\clock\clk.c
                                           unsigned char DS_Zero_FLG;                                                       D:\clock\clk.c
                                           static int i=0,j=0;                                                              D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           const int r[]={100,0,100,0,100,0,100,0,200,0,200,0,200,0,200,0,400,0,400,0,400,0,400,0,600,0,600,0,600,0,600,0};     	 D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                            #pragma code high_vector=0x08                                                   D:\clock\clk.c
                                            void low_interrupt (void)                                                       D:\clock\clk.c
                                           {                                                                                D:\clock\clk.c
000008   ef13     GOTO      0x626           _asm GOTO timeprocess _endasm                                                   D:\clock\clk.c
00000a   f003                                                                                                               
00000c   0012     RETURN    0x0             }                                                                               D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           #pragma code                                                                     D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           #pragma interruptlow timeprocess save=PROD                                       D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
                                           void choosekey(){                                                                D:\clock\clk.c
                                                                                                                            D:\clock\clk.c
000038   a2f2     BTFSS     0xf2,0x1,0x0          if(INTCONbits.INT0IF==1)       //有外部中断                               D:\clock\clk.c

⌨️ 快捷键说明

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