📄 readkey.p1
字号:
[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\Reconv\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;
[; ;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\Reconv\readkey.c
[v _readkey_initial `(v 1 ef ]
{
[; ;readkey.c: 12: void readkey_initial(void)
[; ;readkey.c: 13: {
[e :U _readkey_initial ]
[f ]
[; ;readkey.c: 14: PCFG3=0;
"14
[e = _PCFG3 -> -> 0 `i `b ]
[; ;readkey.c: 15: PCFG2=0;
"15
[e = _PCFG2 -> -> 0 `i `b ]
[; ;readkey.c: 16: PCFG1=1;
"16
[e = _PCFG1 -> -> 1 `i `b ]
[; ;readkey.c: 17: PCFG0=1;
"17
[e = _PCFG0 -> -> 1 `i `b ]
[; ;readkey.c: 18: TRISA4=1;
"18
[e = _TRISA4 -> -> 1 `i `b ]
[; ;readkey.c: 19: TRISE0=1;
"19
[e = _TRISE0 -> -> 1 `i `b ]
[; ;readkey.c: 20: TRISE1=1;
"20
[e = _TRISE1 -> -> 1 `i `b ]
[; ;readkey.c: 21: TRISE2=1;
"21
[e = _TRISE2 -> -> 1 `i `b ]
"22
[; ;readkey.c: 22: }
[e :UE 1 ]
}
"29
[v _readkey0 `(uc 1 ef ]
{
[; ;readkey.c: 28: unsigned char readkey0(void)
[; ;readkey.c: 29: {
[e :U _readkey0 ]
[f ]
"30
[v _keyPluse `ul 1 a ]
[; ;readkey.c: 30: unsigned long keyPluse;
[; ;readkey.c: 31: if(RA4==1)
"31
[e $ ! == -> _RA4 `i -> 1 `i 3 ]
[; ;readkey.c: 32: {
"32
{
[; ;readkey.c: 33: return 0x00;
"33
[e ) -> -> 0 `i `uc ]
[e $UE 2 ]
"34
}
[; ;readkey.c: 34: }
[e $U 4 ]
"35
[e :U 3 ]
[; ;readkey.c: 35: else
[; ;readkey.c: 36: {
"36
{
[; ;readkey.c: 37: delay(100);
"10 E:\workall\LAMP2\PICC18\Reconv\delay1ms.h
[v _delay `(v 0 ef1`ui ]
"37 E:\workall\LAMP2\PICC18\Reconv\readkey.c
[e ( _delay (1
-> -> 100 `i `ui ]
[; ;readkey.c: 39: keyPluse=0;
"39
[e = _keyPluse -> -> -> 0 `i `l `ul ]
[; ;readkey.c: 40: while(RA4==0)
"40
[e $U 5 ]
[e :U 6 ]
[; ;readkey.c: 41: {
"41
{
[; ;readkey.c: 42: keyPluse++;
"42
[e ++ _keyPluse -> -> -> 1 `i `l `ul ]
[; ;readkey.c: 43: if(keyPluse>=16000000/4000)
"43
[e $ ! >= _keyPluse -> / -> 16000000 `l -> -> 4000 `i `l `ul 8 ]
[; ;readkey.c: 44: {
"44
{
[; ;readkey.c: 45: return 0x00;
"45
[e ) -> -> 0 `i `uc ]
[e $UE 2 ]
"46
}
[e :U 8 ]
"47
}
[e :U 5 ]
"40
[e $ == -> _RA4 `i -> 0 `i 6 ]
[e :U 7 ]
[; ;readkey.c: 46: }
[; ;readkey.c: 47: };
[; ;readkey.c: 48: return 0xFF;
"48
[e ) -> -> 255 `i `uc ]
[e $UE 2 ]
"49
}
[e :U 4 ]
"50
[; ;readkey.c: 49: }
[; ;readkey.c: 50: }
[e :UE 2 ]
}
"57
[v _readkey1 `(uc 1 ef ]
{
[; ;readkey.c: 56: unsigned char readkey1(void)
[; ;readkey.c: 57: {
[e :U _readkey1 ]
[f ]
"58
[v _keyPluse `ul 1 a ]
[; ;readkey.c: 58: unsigned long keyPluse;
[; ;readkey.c: 59: if(RE0==1)
"59
[e $ ! == -> _RE0 `i -> 1 `i 10 ]
[; ;readkey.c: 60: {
"60
{
[; ;readkey.c: 61: return 0x00;
"61
[e ) -> -> 0 `i `uc ]
[e $UE 9 ]
"62
}
[; ;readkey.c: 62: }
[e $U 11 ]
"63
[e :U 10 ]
[; ;readkey.c: 63: else
[; ;readkey.c: 64: {
"64
{
[; ;readkey.c: 65: delay(100);
"65
[e ( _delay (1
-> -> 100 `i `ui ]
[; ;readkey.c: 67: keyPluse=0;
"67
[e = _keyPluse -> -> -> 0 `i `l `ul ]
[; ;readkey.c: 68: while(RE0==0)
"68
[e $U 12 ]
[e :U 13 ]
[; ;readkey.c: 69: {
"69
{
[; ;readkey.c: 70: keyPluse++;
"70
[e ++ _keyPluse -> -> -> 1 `i `l `ul ]
[; ;readkey.c: 71: if(keyPluse>=16000000/4000)
"71
[e $ ! >= _keyPluse -> / -> 16000000 `l -> -> 4000 `i `l `ul 15 ]
[; ;readkey.c: 72: {
"72
{
[; ;readkey.c: 73: return 0x00;
"73
[e ) -> -> 0 `i `uc ]
[e $UE 9 ]
"74
}
[e :U 15 ]
"75
}
[e :U 12 ]
"68
[e $ == -> _RE0 `i -> 0 `i 13 ]
[e :U 14 ]
[; ;readkey.c: 74: }
[; ;readkey.c: 75: };
[; ;readkey.c: 76: return 0xFF;
"76
[e ) -> -> 255 `i `uc ]
[e $UE 9 ]
"77
}
[e :U 11 ]
"78
[; ;readkey.c: 77: }
[; ;readkey.c: 78: }
[e :UE 9 ]
}
"85
[v _readkey2 `(uc 1 ef ]
{
[; ;readkey.c: 84: unsigned char readkey2(void)
[; ;readkey.c: 85: {
[e :U _readkey2 ]
[f ]
"86
[v _keyPluse `ul 1 a ]
[; ;readkey.c: 86: unsigned long keyPluse;
[; ;readkey.c: 87: if(RE1==1)
"87
[e $ ! == -> _RE1 `i -> 1 `i 17 ]
[; ;readkey.c: 88: {
"88
{
[; ;readkey.c: 89: return 0x00;
"89
[e ) -> -> 0 `i `uc ]
[e $UE 16 ]
"90
}
[; ;readkey.c: 90: }
[e $U 18 ]
"91
[e :U 17 ]
[; ;readkey.c: 91: else
[; ;readkey.c: 92: {
"92
{
[; ;readkey.c: 93: delay(100);
"93
[e ( _delay (1
-> -> 100 `i `ui ]
[; ;readkey.c: 95: keyPluse=0;
"95
[e = _keyPluse -> -> -> 0 `i `l `ul ]
[; ;readkey.c: 96: while(RE1==0)
"96
[e $U 19 ]
[e :U 20 ]
[; ;readkey.c: 97: {
"97
{
[; ;readkey.c: 98: keyPluse++;
"98
[e ++ _keyPluse -> -> -> 1 `i `l `ul ]
[; ;readkey.c: 99: if(keyPluse>=16000000/4000)
"99
[e $ ! >= _keyPluse -> / -> 16000000 `l -> -> 4000 `i `l `ul 22 ]
[; ;readkey.c: 100: {
"100
{
[; ;readkey.c: 101: return 0x00;
"101
[e ) -> -> 0 `i `uc ]
[e $UE 16 ]
"102
}
[e :U 22 ]
"103
}
[e :U 19 ]
"96
[e $ == -> _RE1 `i -> 0 `i 20 ]
[e :U 21 ]
[; ;readkey.c: 102: }
[; ;readkey.c: 103: };
[; ;readkey.c: 104: return 0xFF;
"104
[e ) -> -> 255 `i `uc ]
[e $UE 16 ]
"105
}
[e :U 18 ]
"106
[; ;readkey.c: 105: }
[; ;readkey.c: 106: }
[e :UE 16 ]
}
"113
[v _readkey3 `(uc 1 ef ]
{
[; ;readkey.c: 112: unsigned char readkey3(void)
[; ;readkey.c: 113: {
[e :U _readkey3 ]
[f ]
"114
[v _keyPluse `ul 1 a ]
[; ;readkey.c: 114: unsigned long keyPluse;
[; ;readkey.c: 115: if(RE2==1)
"115
[e $ ! == -> _RE2 `i -> 1 `i 24 ]
[; ;readkey.c: 116: {
"116
{
[; ;readkey.c: 117: return 0x00;
"117
[e ) -> -> 0 `i `uc ]
[e $UE 23 ]
"118
}
[; ;readkey.c: 118: }
[e $U 25 ]
"119
[e :U 24 ]
[; ;readkey.c: 119: else
[; ;readkey.c: 120: {
"120
{
[; ;readkey.c: 121: delay(100);
"121
[e ( _delay (1
-> -> 100 `i `ui ]
[; ;readkey.c: 123: keyPluse=0;
"123
[e = _keyPluse -> -> -> 0 `i `l `ul ]
[; ;readkey.c: 124: while(RE2==0)
"124
[e $U 26 ]
[e :U 27 ]
[; ;readkey.c: 125: {
"125
{
[; ;readkey.c: 126: keyPluse++;
"126
[e ++ _keyPluse -> -> -> 1 `i `l `ul ]
[; ;readkey.c: 127: if(keyPluse>=16000000/4000)
"127
[e $ ! >= _keyPluse -> / -> 16000000 `l -> -> 4000 `i `l `ul 29 ]
[; ;readkey.c: 128: {
"128
{
[; ;readkey.c: 129: return 0x00;
"129
[e ) -> -> 0 `i `uc ]
[e $UE 23 ]
"130
}
[e :U 29 ]
"131
}
[e :U 26 ]
"124
[e $ == -> _RE2 `i -> 0 `i 27 ]
[e :U 28 ]
[; ;readkey.c: 130: }
[; ;readkey.c: 131: };
[; ;readkey.c: 132: return 0xFF;
"132
[e ) -> -> 255 `i `uc ]
[e $UE 23 ]
"133
}
[e :U 25 ]
"134
[; ;readkey.c: 133: }
[; ;readkey.c: 134: }
[e :UE 23 ]
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -