main.p1
来自「采用PICC18编写的单片机源代码」· P1 代码 · 共 2,667 行 · 第 1/5 页
P1
2,667 行
[v _LA6 `VNb 1 e@31822 ]
[; ;pic18fxx2.h: 512: volatile near bit LA6 @ ((unsigned)&LATA*8)+6;
"514
[v _LATA0 `VNb 1 e@31816 ]
[; ;pic18fxx2.h: 514: volatile near bit LATA0 @ ((unsigned)&LATA*8)+0;
"515
[v _LATA1 `VNb 1 e@31817 ]
[; ;pic18fxx2.h: 515: volatile near bit LATA1 @ ((unsigned)&LATA*8)+1;
"516
[v _LATA2 `VNb 1 e@31818 ]
[; ;pic18fxx2.h: 516: volatile near bit LATA2 @ ((unsigned)&LATA*8)+2;
"517
[v _LATA3 `VNb 1 e@31819 ]
[; ;pic18fxx2.h: 517: volatile near bit LATA3 @ ((unsigned)&LATA*8)+3;
"518
[v _LATA4 `VNb 1 e@31820 ]
[; ;pic18fxx2.h: 518: volatile near bit LATA4 @ ((unsigned)&LATA*8)+4;
"519
[v _LATA5 `VNb 1 e@31821 ]
[; ;pic18fxx2.h: 519: volatile near bit LATA5 @ ((unsigned)&LATA*8)+5;
"520
[v _LATA6 `VNb 1 e@31822 ]
[; ;pic18fxx2.h: 520: volatile near bit LATA6 @ ((unsigned)&LATA*8)+6;
"524
[v _RE0 `VNb 1 e@31776 ]
[; ;pic18fxx2.h: 524: volatile near bit RE0 @ ((unsigned)&PORTE*8)+0;
"525
[v _RE1 `VNb 1 e@31777 ]
[; ;pic18fxx2.h: 525: volatile near bit RE1 @ ((unsigned)&PORTE*8)+1;
"526
[v _RE2 `VNb 1 e@31778 ]
[; ;pic18fxx2.h: 526: volatile near bit RE2 @ ((unsigned)&PORTE*8)+2;
"529
[v _RD0 `VNb 1 e@31768 ]
[; ;pic18fxx2.h: 529: volatile near bit RD0 @ ((unsigned)&PORTD*8)+0;
"530
[v _RD1 `VNb 1 e@31769 ]
[; ;pic18fxx2.h: 530: volatile near bit RD1 @ ((unsigned)&PORTD*8)+1;
"531
[v _RD2 `VNb 1 e@31770 ]
[; ;pic18fxx2.h: 531: volatile near bit RD2 @ ((unsigned)&PORTD*8)+2;
"532
[v _RD3 `VNb 1 e@31771 ]
[; ;pic18fxx2.h: 532: volatile near bit RD3 @ ((unsigned)&PORTD*8)+3;
"533
[v _RD4 `VNb 1 e@31772 ]
[; ;pic18fxx2.h: 533: volatile near bit RD4 @ ((unsigned)&PORTD*8)+4;
"534
[v _RD5 `VNb 1 e@31773 ]
[; ;pic18fxx2.h: 534: volatile near bit RD5 @ ((unsigned)&PORTD*8)+5;
"535
[v _RD6 `VNb 1 e@31774 ]
[; ;pic18fxx2.h: 535: volatile near bit RD6 @ ((unsigned)&PORTD*8)+6;
"536
[v _RD7 `VNb 1 e@31775 ]
[; ;pic18fxx2.h: 536: volatile near bit RD7 @ ((unsigned)&PORTD*8)+7;
"540
[v _RC0 `VNb 1 e@31760 ]
[; ;pic18fxx2.h: 540: volatile near bit RC0 @ ((unsigned)&PORTC*8)+0;
"541
[v _RC1 `VNb 1 e@31761 ]
[; ;pic18fxx2.h: 541: volatile near bit RC1 @ ((unsigned)&PORTC*8)+1;
"542
[v _RC2 `VNb 1 e@31762 ]
[; ;pic18fxx2.h: 542: volatile near bit RC2 @ ((unsigned)&PORTC*8)+2;
"543
[v _RC3 `VNb 1 e@31763 ]
[; ;pic18fxx2.h: 543: volatile near bit RC3 @ ((unsigned)&PORTC*8)+3;
"544
[v _RC4 `VNb 1 e@31764 ]
[; ;pic18fxx2.h: 544: volatile near bit RC4 @ ((unsigned)&PORTC*8)+4;
"545
[v _RC5 `VNb 1 e@31765 ]
[; ;pic18fxx2.h: 545: volatile near bit RC5 @ ((unsigned)&PORTC*8)+5;
"546
[v _RC6 `VNb 1 e@31766 ]
[; ;pic18fxx2.h: 546: volatile near bit RC6 @ ((unsigned)&PORTC*8)+6;
"547
[v _RC7 `VNb 1 e@31767 ]
[; ;pic18fxx2.h: 547: volatile near bit RC7 @ ((unsigned)&PORTC*8)+7;
"550
[v _RB0 `VNb 1 e@31752 ]
[; ;pic18fxx2.h: 550: volatile near bit RB0 @ ((unsigned)&PORTB*8)+0;
"551
[v _RB1 `VNb 1 e@31753 ]
[; ;pic18fxx2.h: 551: volatile near bit RB1 @ ((unsigned)&PORTB*8)+1;
"552
[v _RB2 `VNb 1 e@31754 ]
[; ;pic18fxx2.h: 552: volatile near bit RB2 @ ((unsigned)&PORTB*8)+2;
"553
[v _RB3 `VNb 1 e@31755 ]
[; ;pic18fxx2.h: 553: volatile near bit RB3 @ ((unsigned)&PORTB*8)+3;
"554
[v _RB4 `VNb 1 e@31756 ]
[; ;pic18fxx2.h: 554: volatile near bit RB4 @ ((unsigned)&PORTB*8)+4;
"555
[v _RB5 `VNb 1 e@31757 ]
[; ;pic18fxx2.h: 555: volatile near bit RB5 @ ((unsigned)&PORTB*8)+5;
"556
[v _RB6 `VNb 1 e@31758 ]
[; ;pic18fxx2.h: 556: volatile near bit RB6 @ ((unsigned)&PORTB*8)+6;
"557
[v _RB7 `VNb 1 e@31759 ]
[; ;pic18fxx2.h: 557: volatile near bit RB7 @ ((unsigned)&PORTB*8)+7;
"560
[v _RA0 `VNb 1 e@31744 ]
[; ;pic18fxx2.h: 560: volatile near bit RA0 @ ((unsigned)&PORTA*8)+0;
"561
[v _RA1 `VNb 1 e@31745 ]
[; ;pic18fxx2.h: 561: volatile near bit RA1 @ ((unsigned)&PORTA*8)+1;
"562
[v _RA2 `VNb 1 e@31746 ]
[; ;pic18fxx2.h: 562: volatile near bit RA2 @ ((unsigned)&PORTA*8)+2;
"563
[v _RA3 `VNb 1 e@31747 ]
[; ;pic18fxx2.h: 563: volatile near bit RA3 @ ((unsigned)&PORTA*8)+3;
"564
[v _RA4 `VNb 1 e@31748 ]
[; ;pic18fxx2.h: 564: volatile near bit RA4 @ ((unsigned)&PORTA*8)+4;
"565
[v _RA5 `VNb 1 e@31749 ]
[; ;pic18fxx2.h: 565: volatile near bit RA5 @ ((unsigned)&PORTA*8)+5;
"566
[v _RA6 `VNb 1 e@31750 ]
[; ;pic18fxx2.h: 566: volatile near bit RA6 @ ((unsigned)&PORTA*8)+6;
[; ;pic18.h: 293: extern unsigned char eeprom_read(unsigned int address);
[; ;pic18.h: 294: extern void eeprom_write(unsigned int address,unsigned char data);
[; ;pic18.h: 298: extern unsigned char flash_read(unsigned long addr);
[; ;pic18.h: 302: extern void flash_write(const unsigned char *,unsigned int,far unsigned char *);
[; ;pic18.h: 305: extern void flash_erase(unsigned long addr);
[; ;pic18.h: 323: extern unsigned int config_read(unsigned char reg_no);
[; ;pic18.h: 324: extern void config_write(unsigned char reg_no, unsigned int dataword);
[; ;pic18.h: 327: extern unsigned int device_id_read(void);
[; ;pic18.h: 330: extern unsigned char idloc_read(unsigned char reg_no);
[; ;pic18.h: 331: extern void idloc_write(unsigned char reg_no,unsigned char data);
[; ;pic18.h: 334: extern void initiate_write(void);
[; ;pic18.h: 353: extern unsigned char checksum8(unsigned long startAddr, unsigned long length);
[; ;pic18.h: 354: extern unsigned int checksum16(unsigned long startAddr, unsigned long length);
[; ;pic18.h: 355: extern unsigned long checksum32(unsigned long startAddr, unsigned long length);
"13 E:\workall\LAMP2\PICC18\EmerTime\main.h
[v _dispBuf `uc -> 5 `i e ]
[; ;main.h: 13: unsigned char dispBuf[5];
"14
[v _taskNo `uc 1 e ]
[; ;main.h: 14: unsigned char taskNo;
"15
[v _FaceReg `uc 1 e ]
[; ;main.h: 15: unsigned char FaceReg;
"16
[v _FaceChnNo `uc 1 e ]
[; ;main.h: 16: unsigned char FaceChnNo;
"17
[v _FaceEmerNo `uc 1 e ]
[; ;main.h: 17: unsigned char FaceEmerNo;
"18
[v _Intpart `uc -> 3 `i e ]
[v _Decm `uc -> 2 `i e ]
[; ;main.h: 18: unsigned char Intpart[3],Decm[2];
"19
[v _flag_1Sec `b 1 s ]
[; ;main.h: 19: static bit flag_1Sec;
[; ;display.h: 6: void display_initial(void);
[; ;display.h: 7: void display(void);
"10 E:\workall\LAMP2\PICC18\EmerTime\display.h
[v _TableNum `uc -> 16 `i e ]
[i _TableNum
:U ..
-> -> 192 `i `uc
-> -> 249 `i `uc
-> -> 164 `i `uc
-> -> 176 `i `uc
"11
-> -> 153 `i `uc
-> -> 146 `i `uc
-> -> 130 `i `uc
-> -> 216 `i `uc
"12
-> -> 128 `i `uc
-> -> 144 `i `uc
-> -> 136 `i `uc
-> -> 131 `i `uc
"13
-> -> 198 `i `uc
-> -> 161 `i `uc
-> -> 134 `i `uc
-> -> 142 `i `uc
..
][; ;display.h: 10: unsigned char TableNum[16]={0xc0,0xf9,0xa4,0xb0,
[; ;display.h: 11: 0x99,0x92,0x82,0XD8,
[; ;display.h: 12: 0x80,0x90,0x88,0x83,
[; ;display.h: 13: 0xc6,0xa1,0x86,0x8e};
"15
[v _TableNumPt `uc -> 10 `i e ]
[i _TableNumPt
:U ..
-> -> 64 `i `uc
-> -> 121 `i `uc
-> -> 36 `i `uc
-> -> 48 `i `uc
"16
-> -> 25 `i `uc
-> -> 18 `i `uc
-> -> 2 `i `uc
-> -> 120 `i `uc
"17
-> -> 0 `i `uc
-> -> 24 `i `uc
..
][; ;display.h: 15: unsigned char TableNumPt[10]={0x40,0x79,0x24,0x30,
[; ;display.h: 16: 0x19,0x12,0x02,0x78,
[; ;display.h: 17: 0x00,0x18};
"19
[v _TableLetter `uc -> 10 `i e ]
[i _TableLetter
:U ..
-> -> 136 `i `uc
-> -> 131 `i `uc
-> -> 198 `i `uc
-> -> 161 `i `uc
"20
-> -> 134 `i `uc
-> -> 142 `i `uc
-> -> 171 `i `uc
-> -> 175 `i `uc
"21
-> -> 206 `i `uc
-> -> 193 `i `uc
..
][; ;display.h: 19: unsigned char TableLetter[10]={0x88,0x83,0xc6,0xa1,
[; ;display.h: 20: 0x86,0x8e,0xab,0xaf,
[; ;display.h: 21: 0xce,0xc1};
"22
[v _dispCtr `uc 1 s ]
[; ;display.h: 22: static unsigned char dispCtr;
[; ;key.h: 6: void readkey_initial(void);
[; ;key.h: 7: unsigned char readkey0(void);
[; ;key.h: 8: unsigned char readkey1(void);
[; ;key.h: 9: unsigned char readkey2(void);
[; ;key.h: 10: unsigned char readkey3(void);
[; ;delay1ms.h: 10: void delay(unsigned int TimeMs);
"13 E:\workall\LAMP2\PICC18\EmerTime\ADConvt.h
[v _TableADCON0 `Cuc -> 4 `i e ]
[i _TableADCON0
:U ..
-> -> 129 `i `uc
-> -> 133 `i `uc
-> -> 145 `i `uc
-> -> 149 `i `uc
..
][; ;ADConvt.h: 13: const unsigned char TableADCON0[4]={0x81,0x85,0x91,0x95};
"22
[s S1 `ui -> 4 `i `ui -> 4 `i `ui -> 4 `i `uc -> 4 `i `uc 1 ]
[n S1 strucAD ADBuf ADResult ADMin isStartADSap ADNum ]
[v _ADChnRe `S1 1 e ]
[; ;ADConvt.h: 15: struct strucAD
[; ;ADConvt.h: 16: {
[; ;ADConvt.h: 17: unsigned int ADBuf[4];
[; ;ADConvt.h: 18: unsigned int ADResult[4];
[; ;ADConvt.h: 19: unsigned int ADMin[4];
[; ;ADConvt.h: 20: unsigned char isStartADSap[4];
[; ;ADConvt.h: 21: unsigned char ADNum;
[; ;ADConvt.h: 22: } ADChnRe;
[; ;ADConvt.h: 24: void AD_initial(void);
[; ;ADConvt.h: 25: unsigned int ADConvt(unsigned char ADChn);
[; ;ADConvt.h: 26: void MainAdConv(void);
[; ;Ctrl14013.h: 10: void Ctrl14013_Initial(void);
[; ;Ctrl14013.h: 11: void Ctrl14013_Reset(unsigned char ChnNo_14013);
[; ;Ctrl14013.h: 12: bit Ctrl14013_ReadQ(unsigned char ChnNo_14013);
[; ;TIMER2.h: 10: void Timer2_Initial(void);
[; ;TIMER2.h: 11: unsigned char isTo1Sec(void);
[; ;TIMER2.h: 12: void Timer2ON(void);
[; ;TIMER2.h: 13: void Timer2OFF(void);
"13 E:\workall\LAMP2\PICC18\EmerTime\EmerTime.h
[s S2 `uc 1 `ui 1 `uc 1 ]
[n S2 Time second minute FlagEndEmerTime ]
[; ;EmerTime.h: 8: struct Time
[; ;EmerTime.h: 9: {
[; ;EmerTime.h: 10: unsigned char second;
[; ;EmerTime.h: 11: unsigned int minute;
[; ;EmerTime.h: 12: unsigned char FlagEndEmerTime;
[; ;EmerTime.h: 13: };
"14
[v _EmerTime `S2 -> 4 `i e ]
[; ;EmerTime.h: 14: struct Time EmerTime[4];
[; ;EmerTime.h: 15: void EmerTime_Initial(void);
[; ;EmerTime.h: 16: void resetEmerTime(unsigned char ChnNo);
[; ;EmerTime.h: 17: void EmerTimeInc1s(unsigned char ChnNo);
[; ;EmerTime.h: 18: void setFlagEndEmerTime(unsigned char ChnNo);
[; ;EmerTime.h: 19: void clrFlagEndEmerTime(unsigned char ChnNo);
[; ;EmerTime.h: 20: unsigned char getFlagEndEmerTime(unsigned char ChnNo);
[; ;EmerTime.h: 21: unsigned int getEmerTime(unsigned char ChnNo);
"17 E:\workall\LAMP2\PICC18\EmerTime\calVol.h
[v F889 `ui -> 2 `i t ]
[v _TableAddrE2EachEmerVolt `F889 -> 4 `i e ]
[i _TableAddrE2EachEmerVolt
:U ..
:U ..
-> + + + + -> 4 `i -> 4 `i -> 8 `i -> 1 `i -> 1 `i `ui
-> + + + + + -> 4 `i -> 4 `i -> 8 `i -> 1 `i -> 1 `i -> 1 `i `ui
..
:U ..
"18
-> + + + + + -> 4 `i -> 4 `i -> 8 `i -> 1 `i -> 1 `i -> 2 `i `ui
-> + + + + + -> 4 `i -> 4 `i -> 8 `i -> 1 `i -> 1 `i -> 3 `i `ui
..
:U ..
"19
-> + + + + + -> 4 `i -> 4 `i -> 8 `i -> 1 `i -> 1 `i -> 4 `i `ui
-> + + + + + -> 4 `i -> 4 `i -> 8 `i -> 1 `i -> 1 `i -> 5 `i `ui
..
:U ..
"20
-> + + + + + -> 4 `i -> 4 `i -> 8 `i -> 1 `i -> 1 `i -> 6 `i `ui
-> + + + + + -> 4 `i -> 4 `i -> 8 `i -> 1 `i -> 1 `i -> 7 `i `ui
..
..
][; ;calVol.h: 17: unsigned int TableAddrE2EachEmerVolt[4][2]={{0x04+4+8+1+1,0x04+4+8+1+1+1},
[; ;calVol.h: 18: {0x04+4+8+1+1+2,0x04+4+8+1+1+3},
[; ;calVol.h: 19: {0x04+4+8+1+1+4,0x04+4+8+1+1+5},
[; ;calVol.h: 20: {0x04+4+8+1+1+6,0x04+4+8+1+1+7}};
"21
[v _baseVolt `ui 1 e ]
[; ;calVol.h: 21: unsigned int baseVolt;
"22
[v _Amp `uc 1 e ]
[; ;calVol.h: 22: unsigned char Amp;
"23
[v F893 `ui -> -> 1 `i `ux t ]
[v _EmerVolt `F893 -> 4 `i e ]
[; ;calVol.h: 23: unsigned int EmerVolt[4][1];
[; ;calVol.h: 24: void SaveEmerVolt(unsigned char chnNo,unsigned int SapDigitial);
[; ;calVol.h: 25: void CalVolt_initial(void);
[; ;calVol.h: 26: void ChangeAmp(void);
[; ;calVol.h: 27: void ChangeBaseVolt(unsigned char digit);
"42 E:\workall\LAMP2\PICC18\EmerTime\serialPort.h
[v _selfAddr `uc 1 e ]
[; ;serialPort.h: 42: unsigned char selfAddr;
"43
[v _recBuf `uc -> 3 `i e ]
[; ;serialPort.h: 43: unsigned char recBuf[3];
"44
[v F906 `uc -> 5 `i t ]
[v _sendBuf `F906 -> 4 `i e ]
[; ;serialPort.h: 44: unsigned char sendBuf[4][5];
"45
[v _NumRecData `uc 1 e ]
[; ;serialPort.h: 45: unsigned char NumRecData;
"46
[v _flagRecEnd `uc 1 e ]
[; ;serialPort.h: 46: unsigned char flagRecEnd;
[; ;serialPort.h: 47: void serialPort_Initial(void);
[; ;serialPort.h: 48: void DoInstru(void);
[; ;serialPort.h: 49: void SetSelfAddr(unsigned char setMode);
[; ;serialPort.h: 50: void ChkRecEnd(void);
"16 E:\workall\LAMP2\PICC18\EmerTime\main.c
[; ;main.c: 16: asm("\tpsect eeprom_data,class=EEDATA"); asm("\tdb\t" "0xEF" "," "0x01" "," "0x18" "," "0x04" "," "0x00" "," "0x00" "," "0x00" "," "0x00");
[; psect eeprom_data,class=EEDATA ;#
[; db 0xEF,0x01,0x18,0x04,0x00,0x00,0x00,0x00 ;#
"17
[; ;main.c: 17: asm("\tpsect eeprom_data,class=EEDATA"); asm("\tdb\t" "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00");
[; psect eeprom_data,class=EEDATA ;#
[; db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ;#
"19
[; ;main.c: 19: asm("\tpsect eeprom_data,class=EEDATA"); asm("\tdb\t" "0x01" "," "0x01" "," "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00");
[; psect eeprom_data,class=EEDATA ;#
[; db 0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00 ;#
"20
[; ;main.c: 20: asm("\tpsect eeprom_data,class=EEDATA"); asm("\tdb\t" "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00" "," "0x00");
[; psect eeprom_data,class=EEDATA ;#
[; db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ;#
"29
[v _Interpt_Initial `(v 1 ef ]
{
[; ;main.c: 28: void Interpt_Initial(void)
[; ;main.c: 29: {
[e :U _Interpt_Initial ]
[f ]
[; ;main.c: 30: GIEH=0;
"30
[e = _GIEH -> -> 0 `i `b ]
[; ;main.c: 31: GIEL=0;
"31
[e = _GIEL -> -> 0 `i `b ]
[; ;main.c: 32: TMR2IF=0;
"32
[e = _TMR2IF -> -> 0 `i `b ]
[; ;main.c: 33: RCIF=0;
"33
[e = _RCIF -> -> 0 `i `b ]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?