/Designs/Measuring_instruments/GeoMet01A/SW/PIC16F887/main.lst
1,17 → 1,17
CCS PCM C Compiler, Version 4.106, 47914 03-IX-13 00:32
CCS PCM C Compiler, Version 4.106, 47914 10-IX-13 13:59
 
Filename: D:\MLAB\Designs\Measuring_instruments\GeoMet01A\SW\PIC16F887\main.lst
Filename: Z:\home\kaklik\svnMLAB\Designs\Measuring_instruments\GeoMet01A\SW\PIC16F887\main.lst
 
ROM used: 3183 words (39%)
ROM used: 3809 words (46%)
Largest free fragment is 2048
RAM used: 27 (7%) at main() level
52 (14%) worst case
RAM used: 35 (10%) at main() level
72 (20%) worst case
Stack: 5 locations
 
*
0000: MOVLW 0A
0000: MOVLW 0C
0001: MOVWF 0A
0002: GOTO 2B7
0002: GOTO 4E5
0003: NOP
.................... #include "main.h"
.................... #include <16F887.h>
37,7 → 37,7
....................
.................... #use delay(clock=8000000)
*
00FB: MOVLW 43
00FB: MOVLW 4B
00FC: MOVWF 04
00FD: BCF 03.7
00FE: MOVF 00,W
69,7 → 69,7
007F: MOVWF 07
0080: NOP
0081: BCF 03.5
0082: RLF 3B,F
0082: RLF 4E,F
0083: BCF 07.4
0084: BTFSS 03.0
0085: GOTO 08C
135,9 → 135,9
00C1: RETURN
*
0285: MOVLW 08
0286: MOVWF 3C
0286: MOVWF 4F
0287: MOVF 77,W
0288: MOVWF 3D
0288: MOVWF 50
0289: BSF 20.4
028A: MOVF 20,W
028B: BSF 03.5
163,7 → 163,7
029F: MOVWF 07
02A0: BCF 03.5
02A1: BCF 07.3
02A2: DECFSZ 3C,F
02A2: DECFSZ 4F,F
02A3: GOTO 289
02A4: BSF 20.4
02A5: MOVF 20,W
172,7 → 172,7
02A8: NOP
02A9: BCF 03.5
02AA: BCF 07.4
02AB: MOVF 3D,W
02AB: MOVF 50,W
02AC: BTFSC 03.2
02AD: GOTO 2B3
02AE: BCF 20.4
441,7 → 441,7
0182: BCF 03.5
0183: CALL 13B
0184: MOVF 78,W
0185: MOVWF 4A
0185: MOVWF 52
....................
.................... lcd_output_enable(0);
0186: BCF 09.0
460,7 → 460,7
018F: BCF 03.5
0190: CALL 13B
0191: MOVF 78,W
0192: MOVWF 49
0192: MOVWF 51
....................
.................... lcd_output_enable(0);
0193: BCF 09.0
486,12 → 486,12
....................
.................... return( (high<<4) | low);
019A: BCF 03.5
019B: SWAPF 4A,W
019B: SWAPF 52,W
019C: MOVWF 77
019D: MOVLW F0
019E: ANDWF 77,F
019F: MOVF 77,W
01A0: IORWF 49,W
01A0: IORWF 51,W
01A1: MOVWF 78
.................... }
....................
499,7 → 499,7
.................... {
.................... #if (defined(LCD_DATA4) && defined(LCD_DATA5) && defined(LCD_DATA6) && defined(LCD_DATA7))
*
013B: CLRF 4B
013B: CLRF 53
.................... BYTE n = 0x00;
....................
.................... /* Read the data port */
510,7 → 510,7
013F: BCF 03.5
0140: BTFSC 08.4
0141: MOVLW 01
0142: IORWF 4B,F
0142: IORWF 53,F
.................... n |= input(LCD_DATA5) << 1;
0143: BSF 03.5
0144: BSF 08.5
522,7 → 522,7
014A: BCF 03.0
014B: RLF 77,F
014C: MOVF 77,W
014D: IORWF 4B,F
014D: IORWF 53,F
.................... n |= input(LCD_DATA6) << 2;
014E: BSF 03.5
014F: BSF 08.6
536,7 → 536,7
0157: MOVLW FC
0158: ANDWF 77,F
0159: MOVF 77,W
015A: IORWF 4B,F
015A: IORWF 53,F
.................... n |= input(LCD_DATA7) << 3;
015B: BSF 03.5
015C: BSF 08.7
551,10 → 551,10
0165: MOVLW F8
0166: ANDWF 77,F
0167: MOVF 77,W
0168: IORWF 4B,F
0168: IORWF 53,F
....................
.................... return(n);
0169: MOVF 4B,W
0169: MOVF 53,W
016A: MOVWF 78
.................... #else
.................... return(lcd.data);
568,7 → 568,7
.................... /* Write to the data port */
.................... output_bit(LCD_DATA4, bit_test(n, 0));
*
010F: BTFSC 4A.0
010F: BTFSC 52.0
0110: GOTO 113
0111: BCF 08.4
0112: GOTO 114
577,7 → 577,7
0115: BCF 08.4
.................... output_bit(LCD_DATA5, bit_test(n, 1));
0116: BCF 03.5
0117: BTFSC 4A.1
0117: BTFSC 52.1
0118: GOTO 11B
0119: BCF 08.5
011A: GOTO 11C
586,7 → 586,7
011D: BCF 08.5
.................... output_bit(LCD_DATA6, bit_test(n, 2));
011E: BCF 03.5
011F: BTFSC 4A.2
011F: BTFSC 52.2
0120: GOTO 123
0121: BCF 08.6
0122: GOTO 124
595,7 → 595,7
0125: BCF 08.6
.................... output_bit(LCD_DATA7, bit_test(n, 3));
0126: BCF 03.5
0127: BTFSC 4A.3
0127: BTFSC 52.3
0128: GOTO 12B
0129: BCF 08.7
012A: GOTO 12C
648,13 → 648,13
.................... while ( bit_test(lcd_read_byte(),7) ) ;
*
01A2: MOVF 78,W
01A3: MOVWF 49
01A4: BTFSS 49.7
01A3: MOVWF 51
01A4: BTFSS 51.7
01A5: GOTO 1A8
01A6: BSF 03.5
01A7: GOTO 174
.................... lcd_output_rs(address);
01A8: MOVF 47,F
01A8: MOVF 4F,F
01A9: BTFSS 03.2
01AA: GOTO 1AD
01AB: BCF 09.1
678,18 → 678,18
01B9: BCF 09.0
.................... lcd_send_nibble(n >> 4);
01BA: BCF 03.5
01BB: SWAPF 48,W
01BC: MOVWF 49
01BB: SWAPF 50,W
01BC: MOVWF 51
01BD: MOVLW 0F
01BE: ANDWF 49,F
01BF: MOVF 49,W
01C0: MOVWF 4A
01BE: ANDWF 51,F
01BF: MOVF 51,W
01C0: MOVWF 52
01C1: CALL 10F
.................... lcd_send_nibble(n & 0xf);
01C2: MOVF 48,W
01C2: MOVF 50,W
01C3: ANDLW 0F
01C4: MOVWF 49
01C5: MOVWF 4A
01C4: MOVWF 51
01C5: MOVWF 52
01C6: CALL 10F
.................... }
01C7: RETURN
745,12 → 745,12
.................... delay_ms(15);
01DC: MOVLW 0F
01DD: BCF 03.5
01DE: MOVWF 43
01DE: MOVWF 4B
01DF: CALL 0FB
.................... for(i=1;i<=3;++i)
01E0: MOVLW 01
01E1: MOVWF 35
01E2: MOVF 35,W
01E1: MOVWF 3D
01E2: MOVF 3D,W
01E3: SUBLW 03
01E4: BTFSS 03.0
01E5: GOTO 1EE
757,37 → 757,37
.................... {
.................... lcd_send_nibble(3);
01E6: MOVLW 03
01E7: MOVWF 4A
01E7: MOVWF 52
01E8: CALL 10F
.................... delay_ms(5);
01E9: MOVLW 05
01EA: MOVWF 43
01EA: MOVWF 4B
01EB: CALL 0FB
.................... }
01EC: INCF 35,F
01EC: INCF 3D,F
01ED: GOTO 1E2
....................
.................... lcd_send_nibble(2);
01EE: MOVLW 02
01EF: MOVWF 4A
01EF: MOVWF 52
01F0: CALL 10F
.................... for(i=0;i<=3;++i)
01F1: CLRF 35
01F2: MOVF 35,W
01F1: CLRF 3D
01F2: MOVF 3D,W
01F3: SUBLW 03
01F4: BTFSS 03.0
01F5: GOTO 1FF
.................... lcd_send_byte(0,LCD_INIT_STRING[i]);
01F6: MOVF 35,W
01F6: MOVF 3D,W
01F7: CALL 004
01F8: MOVWF 36
01F9: CLRF 47
01FA: MOVF 36,W
01FB: MOVWF 48
01F8: MOVWF 3E
01F9: CLRF 4F
01FA: MOVF 3E,W
01FB: MOVWF 50
01FC: CALL 16C
....................
.................... #if defined(LCD_EXTENDED_NEWLINE)
01FD: INCF 35,F
01FD: INCF 3D,F
01FE: GOTO 1F2
.................... g_LcdX = 0;
.................... g_LcdY = 0;
800,28 → 800,28
.................... BYTE address;
....................
.................... if(y!=1)
0200: DECFSZ 44,W
0200: DECFSZ 4C,W
0201: GOTO 203
0202: GOTO 206
.................... address=LCD_LINE_TWO;
0203: MOVLW 40
0204: MOVWF 45
0204: MOVWF 4D
.................... else
0205: GOTO 207
.................... address=0;
0206: CLRF 45
0206: CLRF 4D
....................
.................... address+=x-1;
0207: MOVLW 01
0208: SUBWF 43,W
0209: ADDWF 45,F
0208: SUBWF 4B,W
0209: ADDWF 4D,F
.................... lcd_send_byte(0,0x80|address);
020A: MOVF 45,W
020A: MOVF 4D,W
020B: IORLW 80
020C: MOVWF 46
020D: CLRF 47
020E: MOVF 46,W
020F: MOVWF 48
020C: MOVWF 4E
020D: CLRF 4F
020E: MOVF 4E,W
020F: MOVWF 50
0210: CALL 16C
....................
.................... #if defined(LCD_EXTENDED_NEWLINE)
835,7 → 835,7
.................... {
.................... switch (c)
.................... {
0212: MOVF 42,W
0212: MOVF 4A,W
0213: XORLW 07
0214: BTFSC 03.2
0215: GOTO 220
851,19 → 851,19
021F: GOTO 238
.................... case '\a' : lcd_gotoxy(1,1); break;
0220: MOVLW 01
0221: MOVWF 43
0222: MOVWF 44
0221: MOVWF 4B
0222: MOVWF 4C
0223: CALL 200
0224: GOTO 23E
....................
.................... case '\f' : lcd_send_byte(0,1);
0225: CLRF 47
0225: CLRF 4F
0226: MOVLW 01
0227: MOVWF 48
0227: MOVWF 50
0228: CALL 16C
.................... delay_ms(2);
0229: MOVLW 02
022A: MOVWF 43
022A: MOVWF 4B
022B: CALL 0FB
.................... #if defined(LCD_EXTENDED_NEWLINE)
.................... g_LcdX = 0;
884,17 → 884,17
.................... #else
.................... case '\n' : lcd_gotoxy(1,2); break;
022D: MOVLW 01
022E: MOVWF 43
022E: MOVWF 4B
022F: MOVLW 02
0230: MOVWF 44
0230: MOVWF 4C
0231: CALL 200
0232: GOTO 23E
.................... #endif
....................
.................... case '\b' : lcd_send_byte(0,0x10); break;
0233: CLRF 47
0233: CLRF 4F
0234: MOVLW 10
0235: MOVWF 48
0235: MOVWF 50
0236: CALL 16C
0237: GOTO 23E
....................
909,9 → 909,9
.................... #else
.................... default : lcd_send_byte(1,c); break;
0238: MOVLW 01
0239: MOVWF 47
023A: MOVF 42,W
023B: MOVWF 48
0239: MOVWF 4F
023A: MOVF 4A,W
023B: MOVWF 50
023C: CALL 16C
023D: GOTO 23E
.................... #endif
1024,11 → 1024,11
.................... I2C_Write(SHT25_ADDR);
0581: MOVLW 80
0582: BCF 03.5
0583: MOVWF 3B
0583: MOVWF 4E
0584: CALL 078
.................... I2C_write(0xE3);
0585: MOVLW E3
0586: MOVWF 3B
0586: MOVWF 4E
0587: CALL 078
.................... i2c_stop();
0588: BCF 20.4
1056,7 → 1056,7
.................... delay_ms(100);
059D: MOVLW 64
059E: BCF 03.5
059F: MOVWF 43
059F: MOVWF 4B
05A0: CALL 0FB
....................
.................... i2c_start();
1087,7 → 1087,7
.................... I2C_Write(SHT25_ADDR+1);
05B9: MOVLW 81
05BA: BCF 03.5
05BB: MOVWF 3B
05BB: MOVWF 4E
05BC: CALL 078
.................... MSB=i2c_read(1);
05BD: MOVLW 01
1094,18 → 1094,18
05BE: MOVWF 77
05BF: CALL 285
05C0: MOVF 78,W
05C1: MOVWF 35
05C1: MOVWF 3D
.................... LSB=i2c_read(1);
05C2: MOVLW 01
05C3: MOVWF 77
05C4: CALL 285
05C5: MOVF 78,W
05C6: MOVWF 36
05C6: MOVWF 3E
.................... Check=i2c_read(0);
05C7: CLRF 77
05C8: CALL 285
05C9: MOVF 78,W
05CA: MOVWF 37
05CA: MOVWF 3F
.................... i2c_stop();
05CB: BCF 20.4
05CC: MOVF 20,W
1131,95 → 1131,95
....................
.................... LSB = LSB >> 2; // trow out status bits
05E0: BCF 03.5
05E1: RRF 36,F
05E2: RRF 36,F
05E1: RRF 3E,F
05E2: RRF 3E,F
05E3: MOVLW 3F
05E4: ANDWF 36,F
05E4: ANDWF 3E,F
....................
.................... data = (((unsigned int16) MSB << 8) + (LSB << 4));
05E5: CLRF 3B
05E6: MOVF 35,W
05E7: MOVWF 3A
05E8: MOVWF 3B
05E9: CLRF 3A
05EA: SWAPF 36,W
05E5: CLRF 43
05E6: MOVF 3D,W
05E7: MOVWF 42
05E8: MOVWF 43
05E9: CLRF 42
05EA: SWAPF 3E,W
05EB: MOVWF 77
05EC: MOVLW F0
05ED: ANDWF 77,F
05EE: MOVF 77,W
05EF: ADDWF 3A,W
05F0: MOVWF 38
05F1: MOVF 3B,W
05F2: MOVWF 39
05EF: ADDWF 42,W
05F0: MOVWF 40
05F1: MOVF 43,W
05F2: MOVWF 41
05F3: BTFSC 03.0
05F4: INCF 39,F
05F4: INCF 41,F
.................... return(-46.85 + 175.72*((float)data/0xFFFF));
05F5: MOVF 39,W
05F6: MOVWF 3B
05F7: MOVF 38,W
05F8: MOVWF 3A
05F5: MOVF 41,W
05F6: MOVWF 4E
05F7: MOVF 40,W
05F8: MOVWF 4D
05F9: CALL 2CA
05FA: MOVF 77,W
05FB: MOVWF 3A
05FB: MOVWF 42
05FC: MOVF 78,W
05FD: MOVWF 3B
05FD: MOVWF 43
05FE: MOVF 79,W
05FF: MOVWF 3C
05FF: MOVWF 44
0600: MOVF 7A,W
0601: MOVWF 3D
0602: MOVWF 41
0601: MOVWF 45
0602: MOVWF 54
0603: MOVF 79,W
0604: MOVWF 40
0604: MOVWF 53
0605: MOVF 78,W
0606: MOVWF 3F
0606: MOVWF 52
0607: MOVF 77,W
0608: MOVWF 3E
0609: CLRF 45
0608: MOVWF 51
0609: CLRF 58
060A: MOVLW FF
060B: MOVWF 44
060B: MOVWF 57
060C: MOVLW 7F
060D: MOVWF 43
060D: MOVWF 56
060E: MOVLW 8E
060F: MOVWF 42
060F: MOVWF 55
0610: CALL 2E7
0611: MOVLW 52
0612: MOVWF 45
0612: MOVWF 4D
0613: MOVLW B8
0614: MOVWF 44
0614: MOVWF 4C
0615: MOVLW 2F
0616: MOVWF 43
0616: MOVWF 4B
0617: MOVLW 86
0618: MOVWF 42
0618: MOVWF 4A
0619: MOVF 7A,W
061A: MOVWF 49
061A: MOVWF 51
061B: MOVF 79,W
061C: MOVWF 48
061C: MOVWF 50
061D: MOVF 78,W
061E: MOVWF 47
061E: MOVWF 4F
061F: MOVF 77,W
0620: MOVWF 46
0620: MOVWF 4E
0621: CALL 3B1
0622: BCF 03.1
0623: MOVLW 66
0624: MOVWF 3D
0625: MOVWF 3C
0624: MOVWF 56
0625: MOVWF 55
0626: MOVLW BB
0627: MOVWF 3B
0627: MOVWF 54
0628: MOVLW 84
0629: MOVWF 3A
0629: MOVWF 53
062A: MOVF 7A,W
062B: MOVWF 41
062B: MOVWF 5A
062C: MOVF 79,W
062D: MOVWF 40
062D: MOVWF 59
062E: MOVF 78,W
062F: MOVWF 3F
062F: MOVWF 58
0630: MOVF 77,W
0631: MOVWF 3E
0631: MOVWF 57
0632: CALL 426
.................... }
0633: BSF 0A.3
0634: BCF 0A.4
0635: GOTO 38B (RETURN)
0635: GOTO 5B9 (RETURN)
....................
.................... float SHT25_get_hum()
.................... {
1254,16 → 1254,16
.................... I2C_Write(SHT25_ADDR);
064E: MOVLW 80
064F: BCF 03.5
0650: MOVWF 3B
0650: MOVWF 4E
0651: CALL 078
.................... I2C_write(0xE5);
0652: MOVLW E5
0653: MOVWF 3B
0653: MOVWF 4E
0654: CALL 078
....................
.................... delay_ms(100);
0655: MOVLW 64
0656: MOVWF 43
0656: MOVWF 4B
0657: CALL 0FB
....................
.................... i2c_start();
1296,7 → 1296,7
.................... I2C_Write(SHT25_ADDR+1);
0672: MOVLW 81
0673: BCF 03.5
0674: MOVWF 3B
0674: MOVWF 4E
0675: CALL 078
.................... MSB=i2c_read(1);
0676: MOVLW 01
1303,18 → 1303,18
0677: MOVWF 77
0678: CALL 285
0679: MOVF 78,W
067A: MOVWF 35
067A: MOVWF 3D
.................... LSB=i2c_read(1);
067B: MOVLW 01
067C: MOVWF 77
067D: CALL 285
067E: MOVF 78,W
067F: MOVWF 36
067F: MOVWF 3E
.................... Check=i2c_read(0);
0680: CLRF 77
0681: CALL 285
0682: MOVF 78,W
0683: MOVWF 37
0683: MOVWF 3F
.................... i2c_stop();
0684: BCF 20.4
0685: MOVF 20,W
1340,92 → 1340,92
....................
.................... LSB = LSB >> 2; // trow out status bits
0699: BCF 03.5
069A: RRF 36,F
069B: RRF 36,F
069A: RRF 3E,F
069B: RRF 3E,F
069C: MOVLW 3F
069D: ANDWF 36,F
069D: ANDWF 3E,F
....................
.................... data = (((unsigned int16) MSB << 8) + (LSB << 4) );
069E: CLRF 3B
069F: MOVF 35,W
06A0: MOVWF 3A
06A1: MOVWF 3B
06A2: CLRF 3A
06A3: SWAPF 36,W
069E: CLRF 43
069F: MOVF 3D,W
06A0: MOVWF 42
06A1: MOVWF 43
06A2: CLRF 42
06A3: SWAPF 3E,W
06A4: MOVWF 77
06A5: MOVLW F0
06A6: ANDWF 77,F
06A7: MOVF 77,W
06A8: ADDWF 3A,W
06A9: MOVWF 38
06AA: MOVF 3B,W
06AB: MOVWF 39
06A8: ADDWF 42,W
06A9: MOVWF 40
06AA: MOVF 43,W
06AB: MOVWF 41
06AC: BTFSC 03.0
06AD: INCF 39,F
06AD: INCF 41,F
.................... return( -6.0 + 125.0*((float)data/0xFFFF));
06AE: MOVF 39,W
06AF: MOVWF 3B
06B0: MOVF 38,W
06B1: MOVWF 3A
06AE: MOVF 41,W
06AF: MOVWF 4E
06B0: MOVF 40,W
06B1: MOVWF 4D
06B2: CALL 2CA
06B3: MOVF 77,W
06B4: MOVWF 3A
06B4: MOVWF 42
06B5: MOVF 78,W
06B6: MOVWF 3B
06B6: MOVWF 43
06B7: MOVF 79,W
06B8: MOVWF 3C
06B8: MOVWF 44
06B9: MOVF 7A,W
06BA: MOVWF 3D
06BB: MOVWF 41
06BA: MOVWF 45
06BB: MOVWF 54
06BC: MOVF 79,W
06BD: MOVWF 40
06BD: MOVWF 53
06BE: MOVF 78,W
06BF: MOVWF 3F
06BF: MOVWF 52
06C0: MOVF 77,W
06C1: MOVWF 3E
06C2: CLRF 45
06C1: MOVWF 51
06C2: CLRF 58
06C3: MOVLW FF
06C4: MOVWF 44
06C4: MOVWF 57
06C5: MOVLW 7F
06C6: MOVWF 43
06C6: MOVWF 56
06C7: MOVLW 8E
06C8: MOVWF 42
06C8: MOVWF 55
06C9: CALL 2E7
06CA: CLRF 45
06CB: CLRF 44
06CA: CLRF 4D
06CB: CLRF 4C
06CC: MOVLW 7A
06CD: MOVWF 43
06CD: MOVWF 4B
06CE: MOVLW 85
06CF: MOVWF 42
06CF: MOVWF 4A
06D0: MOVF 7A,W
06D1: MOVWF 49
06D1: MOVWF 51
06D2: MOVF 79,W
06D3: MOVWF 48
06D3: MOVWF 50
06D4: MOVF 78,W
06D5: MOVWF 47
06D5: MOVWF 4F
06D6: MOVF 77,W
06D7: MOVWF 46
06D7: MOVWF 4E
06D8: CALL 3B1
06D9: BCF 03.1
06DA: CLRF 3D
06DB: CLRF 3C
06DA: CLRF 56
06DB: CLRF 55
06DC: MOVLW C0
06DD: MOVWF 3B
06DD: MOVWF 54
06DE: MOVLW 81
06DF: MOVWF 3A
06DF: MOVWF 53
06E0: MOVF 7A,W
06E1: MOVWF 41
06E1: MOVWF 5A
06E2: MOVF 79,W
06E3: MOVWF 40
06E3: MOVWF 59
06E4: MOVF 78,W
06E5: MOVWF 3F
06E5: MOVWF 58
06E6: MOVF 77,W
06E7: MOVWF 3E
06E7: MOVWF 57
06E8: CALL 426
.................... }
06E9: BSF 0A.3
06EA: BCF 0A.4
06EB: GOTO 396 (RETURN)
06EB: GOTO 5C4 (RETURN)
....................
....................
....................
1471,10 → 1471,10
.................... I2C_Write(LTS01A_address);
0704: MOVLW 90
0705: BCF 03.5
0706: MOVWF 3B
0706: MOVWF 4E
0707: CALL 078
.................... I2C_write(0x00);
0708: CLRF 3B
0708: CLRF 4E
0709: CALL 078
.................... i2c_stop();
070A: BCF 20.4
1527,7 → 1527,7
.................... I2C_Write(LTS01A_address+1);
0738: MOVLW 91
0739: BCF 03.5
073A: MOVWF 3B
073A: MOVWF 4E
073B: CALL 078
.................... MSB=i2c_read(1);
073C: MOVLW 01
1534,12 → 1534,12
073D: MOVWF 77
073E: CALL 285
073F: MOVF 78,W
0740: MOVWF 35
0740: MOVWF 3D
.................... LSB=i2c_read(0);
0741: CLRF 77
0742: CALL 285
0743: MOVF 78,W
0744: MOVWF 36
0744: MOVWF 3E
.................... i2c_stop();
0745: BCF 20.4
0746: MOVF 20,W
1565,40 → 1565,40
....................
.................... data = MAKE16(MSB,LSB);
075A: BCF 03.5
075B: MOVF 35,W
075C: MOVWF 38
075D: MOVF 36,W
075E: MOVWF 37
075B: MOVF 3D,W
075C: MOVWF 40
075D: MOVF 3E,W
075E: MOVWF 3F
....................
.................... return (data * 0.00390625 );
075F: MOVF 38,W
0760: MOVWF 3A
0761: MOVF 37,W
0762: MOVWF 39
0763: MOVF 3A,W
0764: MOVWF 3C
0765: MOVF 39,W
0766: MOVWF 3B
075F: MOVF 40,W
0760: MOVWF 42
0761: MOVF 3F,W
0762: MOVWF 41
0763: MOVF 42,W
0764: MOVWF 44
0765: MOVF 41,W
0766: MOVWF 43
*
078B: MOVF 7A,W
078C: MOVWF 45
078C: MOVWF 4D
078D: MOVF 79,W
078E: MOVWF 44
078E: MOVWF 4C
078F: MOVF 78,W
0790: MOVWF 43
0790: MOVWF 4B
0791: MOVF 77,W
0792: MOVWF 42
0793: CLRF 49
0794: CLRF 48
0795: CLRF 47
0792: MOVWF 4A
0793: CLRF 51
0794: CLRF 50
0795: CLRF 4F
0796: MOVLW 77
0797: MOVWF 46
0797: MOVWF 4E
0798: CALL 3B1
....................
.................... }
0799: BSF 0A.3
079A: BCF 0A.4
079B: GOTO 3A1 (RETURN)
079B: GOTO 5CF (RETURN)
....................
....................
....................
1660,15 → 1660,15
.................... i2c_write(HMC5883L_WRT_ADDR);
00DA: MOVLW 3C
00DB: BCF 03.5
00DC: MOVWF 3B
00DC: MOVWF 4E
00DD: CALL 078
.................... i2c_write(reg);
00DE: MOVF 35,W
00DF: MOVWF 3B
00DE: MOVF 3D,W
00DF: MOVWF 4E
00E0: CALL 078
.................... i2c_write(data);
00E1: MOVF 36,W
00E2: MOVWF 3B
00E1: MOVF 3E,W
00E2: MOVWF 4E
00E3: CALL 078
.................... i2c_stop();
00E4: BCF 20.4
1724,12 → 1724,12
.................... // from the HMC5883L x,y,z registers.
.................... hmc5883l_result compass = {0,0,0};
*
0ADB: CLRF 21
0ADC: CLRF 22
0ADD: CLRF 23
0ADE: CLRF 24
0ADF: CLRF 25
0AE0: CLRF 26
0D09: CLRF 21
0D0A: CLRF 22
0D0B: CLRF 23
0D0C: CLRF 24
0D0D: CLRF 25
0D0E: CLRF 26
....................
.................... //------------------------------
.................... void hmc5883l_read_data(void)
1772,13 → 1772,13
.................... i2c_write(HMC5883L_WRT_ADDR);
0818: MOVLW 3C
0819: BCF 03.5
081A: MOVWF 3B
081A: MOVWF 4E
081B: BCF 0A.3
081C: CALL 078
081D: BSF 0A.3
.................... i2c_write(HMC5883L_X_MSB_REG); // Point to X-msb register
081E: MOVLW 03
081F: MOVWF 3B
081F: MOVWF 4E
0820: BCF 0A.3
0821: CALL 078
0822: BSF 0A.3
1812,7 → 1812,7
.................... i2c_write(HMC5883L_READ_ADDR);
083D: MOVLW 3D
083E: BCF 03.5
083F: MOVWF 3B
083F: MOVWF 4E
0840: BCF 0A.3
0841: CALL 078
0842: BSF 0A.3
1824,7 → 1824,7
0846: CALL 285
0847: BSF 0A.3
0848: MOVF 78,W
0849: MOVWF 36
0849: MOVWF 3E
.................... x_lsb = i2c_read();
084A: MOVLW 01
084B: MOVWF 77
1832,7 → 1832,7
084D: CALL 285
084E: BSF 0A.3
084F: MOVF 78,W
0850: MOVWF 35
0850: MOVWF 3D
....................
.................... z_msb = i2c_read();
0851: MOVLW 01
1841,7 → 1841,7
0854: CALL 285
0855: BSF 0A.3
0856: MOVF 78,W
0857: MOVWF 3A
0857: MOVWF 42
.................... z_lsb = i2c_read();
0858: MOVLW 01
0859: MOVWF 77
1849,7 → 1849,7
085B: CALL 285
085C: BSF 0A.3
085D: MOVF 78,W
085E: MOVWF 39
085E: MOVWF 41
....................
.................... y_msb = i2c_read();
085F: MOVLW 01
1858,7 → 1858,7
0862: CALL 285
0863: BSF 0A.3
0864: MOVF 78,W
0865: MOVWF 38
0865: MOVWF 40
.................... y_lsb = i2c_read(0); // do a NACK on last read
0866: CLRF 77
0867: BCF 0A.3
1865,7 → 1865,7
0868: CALL 285
0869: BSF 0A.3
086A: MOVF 78,W
086B: MOVWF 37
086B: MOVWF 3F
....................
.................... i2c_stop();
086C: BCF 20.4
1893,24 → 1893,24
.................... // Combine high and low bytes into 16-bit values.
.................... compass.x = make16(x_msb, x_lsb);
0881: BCF 03.5
0882: MOVF 36,W
0882: MOVF 3E,W
0883: MOVWF 22
0884: MOVF 35,W
0884: MOVF 3D,W
0885: MOVWF 21
.................... compass.y = make16(y_msb, y_lsb);
0886: MOVF 38,W
0886: MOVF 40,W
0887: MOVWF 24
0888: MOVF 37,W
0888: MOVF 3F,W
0889: MOVWF 23
.................... compass.z = make16(z_msb, z_lsb);
088A: MOVF 3A,W
088A: MOVF 42,W
088B: MOVWF 26
088C: MOVF 39,W
088C: MOVF 41,W
088D: MOVWF 25
.................... }
088E: BSF 0A.3
088F: BCF 0A.4
0890: GOTO 3AB (RETURN)
0890: GOTO 5D9 (RETURN)
....................
....................
....................
4089,494 → 4089,1238
.................... #endif
....................
....................
.................... #define MPL3115_ADDR_R 0xC1 //addresa pro cteni
.................... #define MPL3115_ADDR_W 0xC0
....................
.................... #include "../MPL3115.h"
.................... //microchip pic library for Freescale MPL3115 I2C barometer sensor
....................
.................... /*void mpl3115_setA (void) //setup sensor for altitude measurement
.................... void mpl3115_setP (void) //setup sensor for preasure measurement
.................... float mpl3115_T (void) //temperature in Celsius degrees
.................... float mpl3115_A (void) //altitude in metres
.................... float mpl3115_P (void) //preassure in pascals
.................... */
....................
.................... #include "MPL3115.c"
.................... void mpl3115_setA (void) //setup for altitude measurement
.................... {
....................
....................
.................... i2c_start(); //STANDBY mode
.................... I2C_Write(MPL3115_ADDR_W);
.................... I2C_write(0x26);
.................... I2C_write(0xB8);
.................... i2c_stop();
....................
.................... i2c_start(); //PT_DATA_CFG set
.................... I2C_Write(MPL3115_ADDR_W);
.................... I2C_write(0x13);
.................... I2C_write(0x07); //hodnota
.................... i2c_stop();
....................
.................... i2c_start(); //ACTIVE mode
.................... I2C_Write(MPL3115_ADDR_W);
.................... I2C_write(0x26);
.................... I2C_write(0xB9);
.................... i2c_stop();
.................... }
....................
.................... void mpl3115_setP (void) //nastavení pro tlak
.................... {
....................
....................
.................... i2c_start(); //STANDBY mode
*
09AD: BSF 20.4
09AE: MOVF 20,W
09AF: BSF 03.5
09B0: MOVWF 07
09B1: NOP
09B2: BCF 03.5
09B3: BSF 20.3
09B4: MOVF 20,W
09B5: BSF 03.5
09B6: MOVWF 07
09B7: NOP
09B8: BCF 03.5
09B9: BCF 07.4
09BA: BCF 20.4
09BB: MOVF 20,W
09BC: BSF 03.5
09BD: MOVWF 07
09BE: NOP
09BF: BCF 03.5
09C0: BCF 07.3
09C1: BCF 20.3
09C2: MOVF 20,W
09C3: BSF 03.5
09C4: MOVWF 07
.................... I2C_Write(MPL3115_ADDR_W);
09C5: MOVLW C0
09C6: BCF 03.5
09C7: MOVWF 4E
09C8: BCF 0A.3
09C9: CALL 078
09CA: BSF 0A.3
.................... I2C_write(0x26);
09CB: MOVLW 26
09CC: MOVWF 4E
09CD: BCF 0A.3
09CE: CALL 078
09CF: BSF 0A.3
.................... I2C_write(0xB8);
09D0: MOVLW B8
09D1: MOVWF 4E
09D2: BCF 0A.3
09D3: CALL 078
09D4: BSF 0A.3
.................... i2c_stop();
09D5: BCF 20.4
09D6: MOVF 20,W
09D7: BSF 03.5
09D8: MOVWF 07
09D9: NOP
09DA: BCF 03.5
09DB: BSF 20.3
09DC: MOVF 20,W
09DD: BSF 03.5
09DE: MOVWF 07
09DF: BCF 03.5
09E0: BTFSS 07.3
09E1: GOTO 1E0
09E2: NOP
09E3: GOTO 1E4
09E4: NOP
09E5: BSF 20.4
09E6: MOVF 20,W
09E7: BSF 03.5
09E8: MOVWF 07
09E9: NOP
....................
.................... i2c_start(); //PT_DATA_CFG set
09EA: BCF 03.5
09EB: BSF 20.4
09EC: MOVF 20,W
09ED: BSF 03.5
09EE: MOVWF 07
09EF: NOP
09F0: BCF 03.5
09F1: BSF 20.3
09F2: MOVF 20,W
09F3: BSF 03.5
09F4: MOVWF 07
09F5: NOP
09F6: BCF 03.5
09F7: BCF 07.4
09F8: BCF 20.4
09F9: MOVF 20,W
09FA: BSF 03.5
09FB: MOVWF 07
09FC: NOP
09FD: BCF 03.5
09FE: BCF 07.3
09FF: BCF 20.3
0A00: MOVF 20,W
0A01: BSF 03.5
0A02: MOVWF 07
.................... I2C_Write(MPL3115_ADDR_W);
0A03: MOVLW C0
0A04: BCF 03.5
0A05: MOVWF 4E
0A06: BCF 0A.3
0A07: CALL 078
0A08: BSF 0A.3
.................... I2C_write(0x13);
0A09: MOVLW 13
0A0A: MOVWF 4E
0A0B: BCF 0A.3
0A0C: CALL 078
0A0D: BSF 0A.3
.................... I2C_write(0x07); //hodnota
0A0E: MOVLW 07
0A0F: MOVWF 4E
0A10: BCF 0A.3
0A11: CALL 078
0A12: BSF 0A.3
.................... i2c_stop();
0A13: BCF 20.4
0A14: MOVF 20,W
0A15: BSF 03.5
0A16: MOVWF 07
0A17: NOP
0A18: BCF 03.5
0A19: BSF 20.3
0A1A: MOVF 20,W
0A1B: BSF 03.5
0A1C: MOVWF 07
0A1D: BCF 03.5
0A1E: BTFSS 07.3
0A1F: GOTO 21E
0A20: NOP
0A21: GOTO 222
0A22: NOP
0A23: BSF 20.4
0A24: MOVF 20,W
0A25: BSF 03.5
0A26: MOVWF 07
0A27: NOP
....................
.................... i2c_start(); //ACTIVE mode
0A28: BCF 03.5
0A29: BSF 20.4
0A2A: MOVF 20,W
0A2B: BSF 03.5
0A2C: MOVWF 07
0A2D: NOP
0A2E: BCF 03.5
0A2F: BSF 20.3
0A30: MOVF 20,W
0A31: BSF 03.5
0A32: MOVWF 07
0A33: NOP
0A34: BCF 03.5
0A35: BCF 07.4
0A36: BCF 20.4
0A37: MOVF 20,W
0A38: BSF 03.5
0A39: MOVWF 07
0A3A: NOP
0A3B: BCF 03.5
0A3C: BCF 07.3
0A3D: BCF 20.3
0A3E: MOVF 20,W
0A3F: BSF 03.5
0A40: MOVWF 07
.................... I2C_Write(MPL3115_ADDR_W);
0A41: MOVLW C0
0A42: BCF 03.5
0A43: MOVWF 4E
0A44: BCF 0A.3
0A45: CALL 078
0A46: BSF 0A.3
.................... I2C_write(0x26);
0A47: MOVLW 26
0A48: MOVWF 4E
0A49: BCF 0A.3
0A4A: CALL 078
0A4B: BSF 0A.3
.................... I2C_write(0x39);
0A4C: MOVLW 39
0A4D: MOVWF 4E
0A4E: BCF 0A.3
0A4F: CALL 078
0A50: BSF 0A.3
.................... i2c_stop();
0A51: BCF 20.4
0A52: MOVF 20,W
0A53: BSF 03.5
0A54: MOVWF 07
0A55: NOP
0A56: BCF 03.5
0A57: BSF 20.3
0A58: MOVF 20,W
0A59: BSF 03.5
0A5A: MOVWF 07
0A5B: BCF 03.5
0A5C: BTFSS 07.3
0A5D: GOTO 25C
0A5E: NOP
0A5F: GOTO 260
0A60: NOP
0A61: BSF 20.4
0A62: MOVF 20,W
0A63: BSF 03.5
0A64: MOVWF 07
0A65: NOP
.................... }
0A66: BCF 03.5
0A67: BSF 0A.3
0A68: BCF 0A.4
0A69: GOTO 5EC (RETURN)
....................
....................
.................... byte mpl3115_read (byte reg)
.................... {
.................... byte i;
....................
.................... i2c_start();
*
079C: BSF 20.4
079D: MOVF 20,W
079E: BSF 03.5
079F: MOVWF 07
07A0: NOP
07A1: BCF 03.5
07A2: BSF 20.3
07A3: MOVF 20,W
07A4: BSF 03.5
07A5: MOVWF 07
07A6: NOP
07A7: BCF 03.5
07A8: BCF 07.4
07A9: BCF 20.4
07AA: MOVF 20,W
07AB: BSF 03.5
07AC: MOVWF 07
07AD: NOP
07AE: BCF 03.5
07AF: BCF 07.3
07B0: BCF 20.3
07B1: MOVF 20,W
07B2: BSF 03.5
07B3: MOVWF 07
.................... I2C_Write(MPL3115_ADDR_W);
07B4: MOVLW C0
07B5: BCF 03.5
07B6: MOVWF 4E
07B7: CALL 078
.................... I2C_write(reg);
07B8: MOVF 4C,W
07B9: MOVWF 4E
07BA: CALL 078
.................... i2c_start();
07BB: BSF 20.4
07BC: MOVF 20,W
07BD: BSF 03.5
07BE: MOVWF 07
07BF: NOP
07C0: BCF 03.5
07C1: BSF 20.3
07C2: MOVF 20,W
07C3: BSF 03.5
07C4: MOVWF 07
07C5: NOP
07C6: BCF 03.5
07C7: BTFSS 07.3
07C8: GOTO 7C7
07C9: BCF 07.4
07CA: BCF 20.4
07CB: MOVF 20,W
07CC: BSF 03.5
07CD: MOVWF 07
07CE: NOP
07CF: BCF 03.5
07D0: BCF 07.3
07D1: BCF 20.3
07D2: MOVF 20,W
07D3: BSF 03.5
07D4: MOVWF 07
.................... I2C_Write(MPL3115_ADDR_R);
07D5: MOVLW C1
07D6: BCF 03.5
07D7: MOVWF 4E
07D8: CALL 078
.................... i=i2c_read(0);
07D9: CLRF 77
07DA: CALL 285
07DB: MOVF 78,W
07DC: MOVWF 4D
.................... i2c_stop();
07DD: BCF 20.4
07DE: MOVF 20,W
07DF: BSF 03.5
07E0: MOVWF 07
07E1: NOP
07E2: BCF 03.5
07E3: BSF 20.3
07E4: MOVF 20,W
07E5: BSF 03.5
07E6: MOVWF 07
07E7: BCF 03.5
07E8: BTFSS 07.3
07E9: GOTO 7E8
07EA: NOP
07EB: GOTO 7EC
07EC: NOP
07ED: BSF 20.4
07EE: MOVF 20,W
07EF: BSF 03.5
07F0: MOVWF 07
07F1: NOP
....................
.................... return i;
07F2: BCF 03.5
07F3: MOVF 4D,W
07F4: MOVWF 78
.................... }
07F5: RETURN
....................
....................
.................... float mpl3115_T (void) //teplota ve stupnich
.................... {
.................... int m;
.................... float l, t;
....................
.................... m = mpl3115_read (0x04);
*
0891: MOVLW 04
0892: MOVWF 4C
0893: BCF 0A.3
0894: CALL 79C
0895: BSF 0A.3
0896: MOVF 78,W
0897: MOVWF 3D
.................... l = (float)(mpl3115_read(0x05)>>4)/16.0;
0898: MOVLW 05
0899: MOVWF 4C
089A: BCF 0A.3
089B: CALL 79C
089C: BSF 0A.3
089D: SWAPF 78,W
089E: MOVWF 77
089F: MOVLW 0F
08A0: ANDWF 77,F
08A1: MOVF 77,W
08A2: CLRF 4E
08A3: MOVWF 4D
08A4: BCF 0A.3
08A5: CALL 2CA
08A6: BSF 0A.3
08A7: MOVF 77,W
08A8: MOVWF 46
08A9: MOVF 78,W
08AA: MOVWF 47
08AB: MOVF 79,W
08AC: MOVWF 48
08AD: MOVF 7A,W
08AE: MOVWF 49
08AF: MOVWF 54
08B0: MOVF 48,W
08B1: MOVWF 53
08B2: MOVF 47,W
08B3: MOVWF 52
08B4: MOVF 46,W
08B5: MOVWF 51
08B6: CLRF 58
08B7: CLRF 57
08B8: CLRF 56
08B9: MOVLW 83
08BA: MOVWF 55
08BB: BCF 0A.3
08BC: CALL 2E7
08BD: BSF 0A.3
08BE: MOVF 7A,W
08BF: MOVWF 41
08C0: MOVF 79,W
08C1: MOVWF 40
08C2: MOVF 78,W
08C3: MOVWF 3F
08C4: MOVF 77,W
08C5: MOVWF 3E
.................... t = (float)(M + L);
08C6: CLRF 4E
08C7: MOVF 3D,W
08C8: MOVWF 4D
08C9: BCF 0A.3
08CA: CALL 2CA
08CB: BSF 0A.3
08CC: BCF 03.1
08CD: MOVF 7A,W
08CE: MOVWF 56
08CF: MOVF 79,W
08D0: MOVWF 55
08D1: MOVF 78,W
08D2: MOVWF 54
08D3: MOVF 77,W
08D4: MOVWF 53
08D5: MOVF 41,W
08D6: MOVWF 5A
08D7: MOVF 40,W
08D8: MOVWF 59
08D9: MOVF 3F,W
08DA: MOVWF 58
08DB: MOVF 3E,W
08DC: MOVWF 57
08DD: BCF 0A.3
08DE: CALL 426
08DF: BSF 0A.3
08E0: MOVF 7A,W
08E1: MOVWF 45
08E2: MOVF 79,W
08E3: MOVWF 44
08E4: MOVF 78,W
08E5: MOVWF 43
08E6: MOVF 77,W
08E7: MOVWF 42
.................... return t;
08E8: MOVF 42,W
08E9: MOVWF 77
08EA: MOVF 43,W
08EB: MOVWF 78
08EC: MOVF 44,W
08ED: MOVWF 79
08EE: MOVF 45,W
08EF: MOVWF 7A
.................... }
08F0: BSF 0A.3
08F1: BCF 0A.4
08F2: GOTO 5DA (RETURN)
....................
.................... float mpl3115_A (void) //vyska v m
.................... {
....................
.................... int16 m, c;
.................... float l, a;
....................
.................... m = mpl3115_read (0x01);
.................... c = mpl3115_read (0x02);
.................... l = (float)(mpl3115_read(0x03)>>4)/16.0;
.................... a = (float)((m << 8)|c) + l;
.................... return a;
.................... }
....................
....................
.................... float mpl3115_P (void) //tlak v Pa
.................... {
.................... unsigned int32 m;
.................... unsigned int16 c;
.................... unsigned int l;
.................... float p, l1;
....................
.................... m = mpl3115_read (0x01);
08F3: MOVLW 01
08F4: MOVWF 4C
08F5: BCF 0A.3
08F6: CALL 79C
08F7: BSF 0A.3
08F8: CLRF 40
08F9: CLRF 3F
08FA: CLRF 3E
08FB: MOVF 78,W
08FC: MOVWF 3D
.................... c = mpl3115_read (0x02);
08FD: MOVLW 02
08FE: MOVWF 4C
08FF: BCF 0A.3
0900: CALL 79C
0901: BSF 0A.3
0902: CLRF 42
0903: MOVF 78,W
0904: MOVWF 41
.................... l = mpl3115_read(0x03);
0905: MOVLW 03
0906: MOVWF 4C
0907: BCF 0A.3
0908: CALL 79C
0909: BSF 0A.3
090A: MOVF 78,W
090B: MOVWF 43
....................
.................... l1= (float)(l>>4)/4.0;
090C: SWAPF 43,W
090D: MOVWF 77
090E: MOVLW 0F
090F: ANDWF 77,F
0910: MOVF 77,W
0911: CLRF 4E
0912: MOVWF 4D
0913: BCF 0A.3
0914: CALL 2CA
0915: BSF 0A.3
0916: MOVF 77,W
0917: MOVWF 4D
0918: MOVF 78,W
0919: MOVWF 4E
091A: MOVF 79,W
091B: MOVWF 4F
091C: MOVF 7A,W
091D: MOVWF 50
091E: MOVWF 54
091F: MOVF 79,W
0920: MOVWF 53
0921: MOVF 78,W
0922: MOVWF 52
0923: MOVF 77,W
0924: MOVWF 51
0925: CLRF 58
0926: CLRF 57
0927: CLRF 56
0928: MOVLW 81
0929: MOVWF 55
092A: BCF 0A.3
092B: CALL 2E7
092C: BSF 0A.3
092D: MOVF 7A,W
092E: MOVWF 4B
092F: MOVF 79,W
0930: MOVWF 4A
0931: MOVF 78,W
0932: MOVWF 49
0933: MOVF 77,W
0934: MOVWF 48
.................... p = (float)((m << 10)|(c<<2)|(l>>6)) + l1;
0935: CLRF 4D
0936: RLF 3D,W
0937: MOVWF 4E
0938: RLF 3E,W
0939: MOVWF 4F
093A: RLF 3F,W
093B: MOVWF 50
093C: RLF 4E,F
093D: RLF 4F,F
093E: RLF 50,F
093F: MOVLW FC
0940: ANDWF 4E,F
0941: RLF 41,W
0942: MOVWF 79
0943: RLF 42,W
0944: MOVWF 7A
0945: RLF 79,F
0946: RLF 7A,F
0947: MOVLW FC
0948: ANDWF 79,F
0949: MOVF 79,W
094A: IORWF 4D,F
094B: MOVF 7A,W
094C: IORWF 4E,F
094D: SWAPF 43,W
094E: MOVWF 77
094F: RRF 77,F
0950: RRF 77,F
0951: MOVLW 03
0952: ANDWF 77,F
0953: MOVF 77,W
0954: IORWF 4D,W
0955: MOVWF 77
0956: MOVF 4E,W
0957: MOVWF 78
0958: MOVF 4F,W
0959: MOVWF 79
095A: MOVF 50,W
095B: MOVWF 7A
095C: MOVF 7A,W
095D: MOVWF 56
095E: MOVF 79,W
095F: MOVWF 55
0960: MOVF 78,W
0961: MOVWF 54
0962: MOVF 77,W
0963: MOVWF 53
*
097E: MOVF 77,W
097F: MOVWF 4D
0980: MOVF 78,W
0981: MOVWF 4E
0982: MOVF 79,W
0983: MOVWF 4F
0984: MOVF 7A,W
0985: MOVWF 50
0986: BCF 03.1
0987: MOVF 7A,W
0988: MOVWF 56
0989: MOVF 79,W
098A: MOVWF 55
098B: MOVF 78,W
098C: MOVWF 54
098D: MOVF 77,W
098E: MOVWF 53
098F: MOVF 4B,W
0990: MOVWF 5A
0991: MOVF 4A,W
0992: MOVWF 59
0993: MOVF 49,W
0994: MOVWF 58
0995: MOVF 48,W
0996: MOVWF 57
0997: BCF 0A.3
0998: CALL 426
0999: BSF 0A.3
099A: MOVF 7A,W
099B: MOVWF 47
099C: MOVF 79,W
099D: MOVWF 46
099E: MOVF 78,W
099F: MOVWF 45
09A0: MOVF 77,W
09A1: MOVWF 44
....................
.................... return p;
09A2: MOVF 44,W
09A3: MOVWF 77
09A4: MOVF 45,W
09A5: MOVWF 78
09A6: MOVF 46,W
09A7: MOVWF 79
09A8: MOVF 47,W
09A9: MOVWF 7A
.................... }
09AA: BSF 0A.3
09AB: BCF 0A.4
09AC: GOTO 5E3 (RETURN)
....................
....................
....................
....................
....................
....................
.................... void main()
.................... {
*
0AB7: CLRF 04
0AB8: BCF 03.7
0AB9: MOVLW 1F
0ABA: ANDWF 03,F
0ABB: MOVLW 71
0ABC: BSF 03.5
0ABD: MOVWF 0F
0ABE: MOVF 0F,W
0ABF: BSF 03.6
0AC0: BCF 07.3
0AC1: MOVLW 0C
0AC2: BCF 03.6
0AC3: MOVWF 19
0AC4: MOVLW A2
0AC5: MOVWF 18
0AC6: MOVLW 90
0AC7: BCF 03.5
0AC8: MOVWF 18
0AC9: BSF 03.5
0ACA: BSF 03.6
0ACB: MOVF 09,W
0ACC: ANDLW C0
0ACD: MOVWF 09
0ACE: BCF 03.6
0ACF: BCF 1F.4
0AD0: BCF 1F.5
0AD1: MOVLW 00
0AD2: BSF 03.6
0AD3: MOVWF 08
0AD4: BCF 03.5
0AD5: CLRF 07
0AD6: CLRF 08
0AD7: CLRF 09
0CE5: CLRF 04
0CE6: BCF 03.7
0CE7: MOVLW 1F
0CE8: ANDWF 03,F
0CE9: MOVLW 71
0CEA: BSF 03.5
0CEB: MOVWF 0F
0CEC: MOVF 0F,W
0CED: BSF 03.6
0CEE: BCF 07.3
0CEF: MOVLW 0C
0CF0: BCF 03.6
0CF1: MOVWF 19
0CF2: MOVLW A2
0CF3: MOVWF 18
0CF4: MOVLW 90
0CF5: BCF 03.5
0CF6: MOVWF 18
0CF7: BSF 03.5
0CF8: BSF 03.6
0CF9: MOVF 09,W
0CFA: ANDLW C0
0CFB: MOVWF 09
0CFC: BCF 03.6
0CFD: BCF 1F.4
0CFE: BCF 1F.5
0CFF: MOVLW 00
0D00: BSF 03.6
0D01: MOVWF 08
0D02: BCF 03.5
0D03: CLRF 07
0D04: CLRF 08
0D05: CLRF 09
*
0AE1: CLRF 34
0AE2: CLRF 33
.................... float temp1, temp2, humidity;
0D0F: CLRF 3C
0D10: CLRF 3B
.................... float temp1, temp2, temp3, humidity, preasure;
.................... int16 i=0;
....................
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD);
0AE3: BSF 03.5
0AE4: BSF 03.6
0AE5: MOVF 09,W
0AE6: ANDLW C0
0AE7: MOVWF 09
0AE8: BCF 03.6
0AE9: BCF 1F.4
0AEA: BCF 1F.5
0AEB: MOVLW 00
0AEC: BSF 03.6
0AED: MOVWF 08
0D11: BSF 03.5
0D12: BSF 03.6
0D13: MOVF 09,W
0D14: ANDLW C0
0D15: MOVWF 09
0D16: BCF 03.6
0D17: BCF 1F.4
0D18: BCF 1F.5
0D19: MOVLW 00
0D1A: BSF 03.6
0D1B: MOVWF 08
.................... setup_adc(ADC_CLOCK_DIV_2);
0AEE: BCF 03.5
0AEF: BCF 03.6
0AF0: BCF 1F.6
0AF1: BCF 1F.7
0AF2: BSF 03.5
0AF3: BSF 1F.7
0AF4: BCF 03.5
0AF5: BSF 1F.0
0D1C: BCF 03.5
0D1D: BCF 03.6
0D1E: BCF 1F.6
0D1F: BCF 1F.7
0D20: BSF 03.5
0D21: BSF 1F.7
0D22: BCF 03.5
0D23: BSF 1F.0
.................... setup_spi(SPI_SS_DISABLED);
0AF6: BCF 14.5
0AF7: BCF 20.5
0AF8: MOVF 20,W
0AF9: BSF 03.5
0AFA: MOVWF 07
0AFB: BCF 03.5
0AFC: BSF 20.4
0AFD: MOVF 20,W
0AFE: BSF 03.5
0AFF: MOVWF 07
0B00: BCF 03.5
0B01: BCF 20.3
0B02: MOVF 20,W
0B03: BSF 03.5
0B04: MOVWF 07
0B05: MOVLW 01
0B06: BCF 03.5
0B07: MOVWF 14
0B08: MOVLW 00
0B09: BSF 03.5
0B0A: MOVWF 14
0D24: BCF 14.5
0D25: BCF 20.5
0D26: MOVF 20,W
0D27: BSF 03.5
0D28: MOVWF 07
0D29: BCF 03.5
0D2A: BSF 20.4
0D2B: MOVF 20,W
0D2C: BSF 03.5
0D2D: MOVWF 07
0D2E: BCF 03.5
0D2F: BCF 20.3
0D30: MOVF 20,W
0D31: BSF 03.5
0D32: MOVWF 07
0D33: MOVLW 01
0D34: BCF 03.5
0D35: MOVWF 14
0D36: MOVLW 00
0D37: BSF 03.5
0D38: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
0B0B: MOVF 01,W
0B0C: ANDLW C7
0B0D: IORLW 08
0B0E: MOVWF 01
0D39: MOVF 01,W
0D3A: ANDLW C7
0D3B: IORLW 08
0D3C: MOVWF 01
.................... setup_timer_1(T1_DISABLED);
0B0F: BCF 03.5
0B10: CLRF 10
0D3D: BCF 03.5
0D3E: CLRF 10
.................... setup_timer_2(T2_DISABLED,0,1);
0B11: MOVLW 00
0B12: MOVWF 78
0B13: MOVWF 12
0B14: MOVLW 00
0B15: BSF 03.5
0B16: MOVWF 12
0D3F: MOVLW 00
0D40: MOVWF 78
0D41: MOVWF 12
0D42: MOVLW 00
0D43: BSF 03.5
0D44: MOVWF 12
.................... setup_ccp1(CCP_OFF);
0B17: BCF 03.5
0B18: BSF 20.2
0B19: MOVF 20,W
0B1A: BSF 03.5
0B1B: MOVWF 07
0B1C: BCF 03.5
0B1D: CLRF 17
0B1E: BSF 03.5
0B1F: CLRF 1B
0B20: CLRF 1C
0B21: MOVLW 01
0B22: MOVWF 1D
0D45: BCF 03.5
0D46: BSF 20.2
0D47: MOVF 20,W
0D48: BSF 03.5
0D49: MOVWF 07
0D4A: BCF 03.5
0D4B: CLRF 17
0D4C: BSF 03.5
0D4D: CLRF 1B
0D4E: CLRF 1C
0D4F: MOVLW 01
0D50: MOVWF 1D
.................... setup_comparator(NC_NC_NC_NC); // This device COMP currently not supported by the PICWizard
0B23: BCF 03.5
0B24: BSF 03.6
0B25: CLRF 07
0B26: CLRF 08
0B27: CLRF 09
0D51: BCF 03.5
0D52: BSF 03.6
0D53: CLRF 07
0D54: CLRF 08
0D55: CLRF 09
.................... setup_oscillator(OSC_8MHZ);
0B28: MOVLW 71
0B29: BSF 03.5
0B2A: BCF 03.6
0B2B: MOVWF 0F
0B2C: MOVF 0F,W
0D56: MOVLW 71
0D57: BSF 03.5
0D58: BCF 03.6
0D59: MOVWF 0F
0D5A: MOVF 0F,W
....................
....................
.................... printf("GeoMet01A\r\n");
0B2D: MOVLW 0C
0B2E: BCF 03.5
0B2F: BSF 03.6
0B30: MOVWF 0D
0B31: MOVLW 00
0B32: MOVWF 0F
0B33: BCF 0A.3
0B34: BCF 03.6
0B35: CALL 030
0B36: BSF 0A.3
0D5B: MOVLW 0C
0D5C: BCF 03.5
0D5D: BSF 03.6
0D5E: MOVWF 0D
0D5F: MOVLW 00
0D60: MOVWF 0F
0D61: BCF 0A.3
0D62: BCF 03.6
0D63: CALL 030
0D64: BSF 0A.3
.................... printf("(c) Kaklik 2013\r\n");
0B37: MOVLW 12
0B38: BSF 03.6
0B39: MOVWF 0D
0B3A: MOVLW 00
0B3B: MOVWF 0F
0B3C: BCF 0A.3
0B3D: BCF 03.6
0B3E: CALL 030
0B3F: BSF 0A.3
0D65: MOVLW 12
0D66: BSF 03.6
0D67: MOVWF 0D
0D68: MOVLW 00
0D69: MOVWF 0F
0D6A: BCF 0A.3
0D6B: BCF 03.6
0D6C: CALL 030
0D6D: BSF 0A.3
.................... printf("www.mlab.cz\r\n");
0B40: MOVLW 1B
0B41: BSF 03.6
0B42: MOVWF 0D
0B43: MOVLW 00
0B44: MOVWF 0F
0B45: BCF 0A.3
0B46: BCF 03.6
0B47: CALL 030
0B48: BSF 0A.3
0D6E: MOVLW 1B
0D6F: BSF 03.6
0D70: MOVWF 0D
0D71: MOVLW 00
0D72: MOVWF 0F
0D73: BCF 0A.3
0D74: BCF 03.6
0D75: CALL 030
0D76: BSF 0A.3
....................
.................... // Init the HMC5883L. Set Mode register for
.................... // continuous measurements.
.................... hmc5883l_write_reg(HMC5883L_CFG_A_REG, 0x18); // no average, maximal update range
0B49: CLRF 35
0B4A: MOVLW 18
0B4B: MOVWF 36
0B4C: BCF 0A.3
0B4D: CALL 0C2
0B4E: BSF 0A.3
0D77: CLRF 3D
0D78: MOVLW 18
0D79: MOVWF 3E
0D7A: BCF 0A.3
0D7B: CALL 0C2
0D7C: BSF 0A.3
.................... hmc5883l_write_reg(HMC5883L_CFG_B_REG, 0x00); // minimal range
0B4F: MOVLW 01
0B50: MOVWF 35
0B51: CLRF 36
0B52: BCF 0A.3
0B53: CALL 0C2
0B54: BSF 0A.3
0D7D: MOVLW 01
0D7E: MOVWF 3D
0D7F: CLRF 3E
0D80: BCF 0A.3
0D81: CALL 0C2
0D82: BSF 0A.3
.................... hmc5883l_write_reg(HMC5883L_MODE_REG, 0x00);
0B55: MOVLW 02
0B56: MOVWF 35
0B57: CLRF 36
0B58: BCF 0A.3
0B59: CALL 0C2
0B5A: BSF 0A.3
0D83: MOVLW 02
0D84: MOVWF 3D
0D85: CLRF 3E
0D86: BCF 0A.3
0D87: CALL 0C2
0D88: BSF 0A.3
....................
.................... lcd_init();
0B5B: BCF 0A.3
0B5C: CALL 1C8
0B5D: BSF 0A.3
0D89: BCF 0A.3
0D8A: CALL 1C8
0D8B: BSF 0A.3
.................... lcd_putc("(c) Kaklik 2013");
0B5E: MOVLW 22
0B5F: BSF 03.6
0B60: MOVWF 0D
0B61: MOVLW 00
0B62: MOVWF 0F
0B63: BCF 0A.3
0B64: BCF 03.6
0B65: CALL 23F
0B66: BSF 0A.3
0D8C: MOVLW 22
0D8D: BSF 03.6
0D8E: MOVWF 0D
0D8F: MOVLW 00
0D90: MOVWF 0F
0D91: BCF 0A.3
0D92: BCF 03.6
0D93: CALL 23F
0D94: BSF 0A.3
.................... lcd_gotoxy(3,2);
0B67: MOVLW 03
0B68: MOVWF 43
0B69: MOVLW 02
0B6A: MOVWF 44
0B6B: BCF 0A.3
0B6C: CALL 200
0B6D: BSF 0A.3
0D95: MOVLW 03
0D96: MOVWF 4B
0D97: MOVLW 02
0D98: MOVWF 4C
0D99: BCF 0A.3
0D9A: CALL 200
0D9B: BSF 0A.3
.................... lcd_putc("www.mlab.cz");
0B6E: MOVLW 2A
0B6F: BSF 03.6
0B70: MOVWF 0D
0B71: MOVLW 00
0B72: MOVWF 0F
0B73: BCF 0A.3
0B74: BCF 03.6
0B75: CALL 23F
0B76: BSF 0A.3
0D9C: MOVLW 2A
0D9D: BSF 03.6
0D9E: MOVWF 0D
0D9F: MOVLW 00
0DA0: MOVWF 0F
0DA1: BCF 0A.3
0DA2: BCF 03.6
0DA3: CALL 23F
0DA4: BSF 0A.3
.................... Delay_ms(2000);
0B77: MOVLW 08
0B78: MOVWF 35
0B79: MOVLW FA
0B7A: MOVWF 43
0B7B: BCF 0A.3
0B7C: CALL 0FB
0B7D: BSF 0A.3
0B7E: DECFSZ 35,F
0B7F: GOTO 379
0DA5: MOVLW 08
0DA6: MOVWF 3D
0DA7: MOVLW FA
0DA8: MOVWF 4B
0DA9: BCF 0A.3
0DAA: CALL 0FB
0DAB: BSF 0A.3
0DAC: DECFSZ 3D,F
0DAD: GOTO 5A7
.................... lcd_init();
0B80: BCF 0A.3
0B81: CALL 1C8
0B82: BSF 0A.3
0DAE: BCF 0A.3
0DAF: CALL 1C8
0DB0: BSF 0A.3
....................
.................... while (TRUE)
.................... {
.................... lcd_gotoxy(1,1);
0B83: MOVLW 01
0B84: MOVWF 43
0B85: MOVWF 44
0B86: BCF 0A.3
0B87: CALL 200
0B88: BSF 0A.3
0DB1: MOVLW 01
0DB2: MOVWF 4B
0DB3: MOVWF 4C
0DB4: BCF 0A.3
0DB5: CALL 200
0DB6: BSF 0A.3
.................... temp1 = SHT25_get_temp();
0B89: BCF 0A.3
0B8A: GOTO 567
0B8B: BSF 0A.3
0B8C: MOVF 7A,W
0B8D: MOVWF 2A
0B8E: MOVF 79,W
0B8F: MOVWF 29
0B90: MOVF 78,W
0B91: MOVWF 28
0B92: MOVF 77,W
0B93: MOVWF 27
0DB7: BCF 0A.3
0DB8: GOTO 567
0DB9: BSF 0A.3
0DBA: MOVF 7A,W
0DBB: MOVWF 2A
0DBC: MOVF 79,W
0DBD: MOVWF 29
0DBE: MOVF 78,W
0DBF: MOVWF 28
0DC0: MOVF 77,W
0DC1: MOVWF 27
.................... humidity = SHT25_get_hum();
0B94: BCF 0A.3
0B95: GOTO 636
0B96: BSF 0A.3
0B97: MOVF 7A,W
0B98: MOVWF 32
0B99: MOVF 79,W
0B9A: MOVWF 31
0B9B: MOVF 78,W
0B9C: MOVWF 30
0B9D: MOVF 77,W
0B9E: MOVWF 2F
0DC2: BCF 0A.3
0DC3: GOTO 636
0DC4: BSF 0A.3
0DC5: MOVF 7A,W
0DC6: MOVWF 36
0DC7: MOVF 79,W
0DC8: MOVWF 35
0DC9: MOVF 78,W
0DCA: MOVWF 34
0DCB: MOVF 77,W
0DCC: MOVWF 33
.................... temp2= LTS01_get_temp();
0B9F: BCF 0A.3
0BA0: GOTO 6EC
0BA1: BSF 0A.3
0BA2: MOVF 7A,W
0BA3: MOVWF 2E
0BA4: MOVF 79,W
0BA5: MOVWF 2D
0BA6: MOVF 78,W
0BA7: MOVWF 2C
0BA8: MOVF 77,W
0BA9: MOVWF 2B
0DCD: BCF 0A.3
0DCE: GOTO 6EC
0DCF: BSF 0A.3
0DD0: MOVF 7A,W
0DD1: MOVWF 2E
0DD2: MOVF 79,W
0DD3: MOVWF 2D
0DD4: MOVF 78,W
0DD5: MOVWF 2C
0DD6: MOVF 77,W
0DD7: MOVWF 2B
.................... hmc5883l_read_data();
0BAA: GOTO 000
0DD8: GOTO 000
....................
.................... printf(lcd_putc,"%f C %f \%%",temp1, humidity);
0BAB: MOVLW 89
0BAC: MOVWF 04
0BAD: MOVF 2A,W
0BAE: MOVWF 38
0BAF: MOVF 29,W
0BB0: MOVWF 37
0BB1: MOVF 28,W
0BB2: MOVWF 36
0BB3: MOVF 27,W
0BB4: MOVWF 35
0BB5: MOVLW 02
0BB6: MOVWF 39
0BB7: CALL 091
0BB8: MOVLW 20
0BB9: MOVWF 42
0BBA: BCF 0A.3
0BBB: CALL 212
0BBC: BSF 0A.3
0BBD: MOVLW 43
0BBE: MOVWF 42
0BBF: BCF 0A.3
0BC0: CALL 212
0BC1: BSF 0A.3
0BC2: MOVLW 20
0BC3: MOVWF 42
0BC4: BCF 0A.3
0BC5: CALL 212
0BC6: BSF 0A.3
0BC7: MOVLW 89
0BC8: MOVWF 04
0BC9: MOVF 32,W
0BCA: MOVWF 38
0BCB: MOVF 31,W
0BCC: MOVWF 37
0BCD: MOVF 30,W
0BCE: MOVWF 36
0BCF: MOVF 2F,W
0BD0: MOVWF 35
0BD1: MOVLW 02
0BD2: MOVWF 39
0BD3: CALL 091
0BD4: MOVLW 20
0BD5: MOVWF 42
0BD6: BCF 0A.3
0BD7: CALL 212
0BD8: BSF 0A.3
0BD9: MOVLW 25
0BDA: MOVWF 42
0BDB: BCF 0A.3
0BDC: CALL 212
0BDD: BSF 0A.3
.................... temp3=mpl3115_T();
0DD9: GOTO 091
0DDA: MOVF 7A,W
0DDB: MOVWF 32
0DDC: MOVF 79,W
0DDD: MOVWF 31
0DDE: MOVF 78,W
0DDF: MOVWF 30
0DE0: MOVF 77,W
0DE1: MOVWF 2F
.................... preasure=mpl3115_P();
0DE2: GOTO 0F3
0DE3: MOVF 7A,W
0DE4: MOVWF 3A
0DE5: MOVF 79,W
0DE6: MOVWF 39
0DE7: MOVF 78,W
0DE8: MOVWF 38
0DE9: MOVF 77,W
0DEA: MOVWF 37
.................... mpl3115_setP(); //nastaveni pro tlak a teplotu
0DEB: GOTO 1AD
....................
.................... printf(lcd_putc,"%2.2f%cC %2.2f\%%",temp1, 0xb2, humidity);
0DEC: MOVLW 89
0DED: MOVWF 04
0DEE: MOVF 2A,W
0DEF: MOVWF 40
0DF0: MOVF 29,W
0DF1: MOVWF 3F
0DF2: MOVF 28,W
0DF3: MOVWF 3E
0DF4: MOVF 27,W
0DF5: MOVWF 3D
0DF6: MOVLW 02
0DF7: MOVWF 41
0DF8: CALL 2CB
0DF9: MOVLW B2
0DFA: MOVWF 4A
0DFB: BCF 0A.3
0DFC: CALL 212
0DFD: BSF 0A.3
0DFE: MOVLW 43
0DFF: MOVWF 4A
0E00: BCF 0A.3
0E01: CALL 212
0E02: BSF 0A.3
0E03: MOVLW 20
0E04: MOVWF 4A
0E05: BCF 0A.3
0E06: CALL 212
0E07: BSF 0A.3
0E08: MOVLW 89
0E09: MOVWF 04
0E0A: MOVF 36,W
0E0B: MOVWF 40
0E0C: MOVF 35,W
0E0D: MOVWF 3F
0E0E: MOVF 34,W
0E0F: MOVWF 3E
0E10: MOVF 33,W
0E11: MOVWF 3D
0E12: MOVLW 02
0E13: MOVWF 41
0E14: CALL 2CB
0E15: MOVLW 25
0E16: MOVWF 4A
0E17: BCF 0A.3
0E18: CALL 212
0E19: BSF 0A.3
.................... lcd_gotoxy(1,2);
0BDE: MOVLW 01
0BDF: MOVWF 43
0BE0: MOVLW 02
0BE1: MOVWF 44
0BE2: BCF 0A.3
0BE3: CALL 200
0BE4: BSF 0A.3
.................... printf(lcd_putc," %f C",temp2);
0BE5: MOVLW 20
0BE6: MOVWF 42
0BE7: BCF 0A.3
0BE8: CALL 212
0BE9: BSF 0A.3
0BEA: MOVLW 89
0BEB: MOVWF 04
0BEC: MOVF 2E,W
0BED: MOVWF 38
0BEE: MOVF 2D,W
0BEF: MOVWF 37
0BF0: MOVF 2C,W
0BF1: MOVWF 36
0BF2: MOVF 2B,W
0BF3: MOVWF 35
0BF4: MOVLW 02
0BF5: MOVWF 39
0BF6: CALL 091
0BF7: MOVLW 20
0BF8: MOVWF 42
0BF9: BCF 0A.3
0BFA: CALL 212
0BFB: BSF 0A.3
0BFC: MOVLW 43
0BFD: MOVWF 42
0BFE: BCF 0A.3
0BFF: CALL 212
0C00: BSF 0A.3
.................... printf("%ld %f %f %f ",i, temp1, humidity, temp2);
0C01: MOVLW 10
0C02: MOVWF 04
0C03: MOVF 34,W
0C04: MOVWF 36
0C05: MOVF 33,W
0C06: MOVWF 35
0C07: CALL 16B
0C08: MOVLW 20
0C09: BTFSS 0C.4
0C0A: GOTO 409
0C0B: MOVWF 19
0C0C: MOVLW 89
0C0D: MOVWF 04
0C0E: MOVF 2A,W
0C0F: MOVWF 38
0C10: MOVF 29,W
0C11: MOVWF 37
0C12: MOVF 28,W
0C13: MOVWF 36
0C14: MOVF 27,W
0C15: MOVWF 35
0C16: MOVLW 02
0C17: MOVWF 39
0C18: CALL 1E1
0C19: MOVLW 20
0C1A: BTFSS 0C.4
0C1B: GOTO 41A
0C1C: MOVWF 19
0C1D: MOVLW 89
0C1E: MOVWF 04
0C1F: MOVF 32,W
0C20: MOVWF 38
0C21: MOVF 31,W
0C22: MOVWF 37
0C23: MOVF 30,W
0C24: MOVWF 36
0C25: MOVF 2F,W
0C26: MOVWF 35
0C27: MOVLW 02
0C28: MOVWF 39
0C29: CALL 1E1
0C2A: MOVLW 20
0C2B: BTFSS 0C.4
0C2C: GOTO 42B
0C2D: MOVWF 19
0C2E: MOVLW 89
0C2F: MOVWF 04
0C30: MOVF 2E,W
0C31: MOVWF 38
0C32: MOVF 2D,W
0C33: MOVWF 37
0C34: MOVF 2C,W
0C35: MOVWF 36
0C36: MOVF 2B,W
0C37: MOVWF 35
0C38: MOVLW 02
0C39: MOVWF 39
0C3A: CALL 1E1
0C3B: MOVLW 20
0C3C: BTFSS 0C.4
0C3D: GOTO 43C
0C3E: MOVWF 19
.................... printf("%Ld %Ld %Ld \n\r", compass.x, compass.y, compass.z);
0C3F: MOVLW 10
0C40: MOVWF 04
0C41: MOVF 22,W
0C42: MOVWF 36
0C43: MOVF 21,W
0C44: MOVWF 35
0C45: CALL 16B
0C46: MOVLW 20
0C47: BTFSS 0C.4
0C48: GOTO 447
0C49: MOVWF 19
0C4A: MOVLW 10
0C4B: MOVWF 04
0C4C: MOVF 24,W
0C4D: MOVWF 36
0C4E: MOVF 23,W
0C4F: MOVWF 35
0C50: CALL 16B
0C51: MOVLW 20
0C52: BTFSS 0C.4
0C53: GOTO 452
0C54: MOVWF 19
0C55: MOVLW 10
0C56: MOVWF 04
0C57: MOVF 26,W
0C58: MOVWF 36
0C59: MOVF 25,W
0C5A: MOVWF 35
0C5B: CALL 16B
0C5C: MOVLW 20
0C5D: BTFSS 0C.4
0C5E: GOTO 45D
0C5F: MOVWF 19
0C60: MOVLW 0A
0C61: BTFSS 0C.4
0C62: GOTO 461
0C63: MOVWF 19
0C64: MOVLW 0D
0C65: BTFSS 0C.4
0C66: GOTO 465
0C67: MOVWF 19
0E1A: MOVLW 01
0E1B: MOVWF 4B
0E1C: MOVLW 02
0E1D: MOVWF 4C
0E1E: BCF 0A.3
0E1F: CALL 200
0E20: BSF 0A.3
.................... printf(lcd_putc,"%2.2f%cC %6.0fPa ",temp2, 0xb2, preasure);
0E21: MOVLW 89
0E22: MOVWF 04
0E23: MOVF 2E,W
0E24: MOVWF 40
0E25: MOVF 2D,W
0E26: MOVWF 3F
0E27: MOVF 2C,W
0E28: MOVWF 3E
0E29: MOVF 2B,W
0E2A: MOVWF 3D
0E2B: MOVLW 02
0E2C: MOVWF 41
0E2D: CALL 2CB
0E2E: MOVLW B2
0E2F: MOVWF 4A
0E30: BCF 0A.3
0E31: CALL 212
0E32: BSF 0A.3
0E33: MOVLW 43
0E34: MOVWF 4A
0E35: BCF 0A.3
0E36: CALL 212
0E37: BSF 0A.3
0E38: MOVLW 20
0E39: MOVWF 4A
0E3A: BCF 0A.3
0E3B: CALL 212
0E3C: BSF 0A.3
0E3D: MOVLW 05
0E3E: MOVWF 04
0E3F: MOVF 3A,W
0E40: MOVWF 40
0E41: MOVF 39,W
0E42: MOVWF 3F
0E43: MOVF 38,W
0E44: MOVWF 3E
0E45: MOVF 37,W
0E46: MOVWF 3D
0E47: CLRF 41
0E48: CALL 2CB
0E49: MOVLW 50
0E4A: MOVWF 4A
0E4B: BCF 0A.3
0E4C: CALL 212
0E4D: BSF 0A.3
0E4E: MOVLW 61
0E4F: MOVWF 4A
0E50: BCF 0A.3
0E51: CALL 212
0E52: BSF 0A.3
0E53: MOVLW 20
0E54: MOVWF 4A
0E55: BCF 0A.3
0E56: CALL 212
0E57: BSF 0A.3
....................
.................... printf("%ld %f %f %f %6.2f %3.2f %Ld %Ld %Ld \n\r",i, temp1, humidity, temp2, preasure, temp3, compass.x, compass.y, compass.z);
0E58: MOVLW 10
0E59: MOVWF 04
0E5A: MOVF 3C,W
0E5B: MOVWF 3E
0E5C: MOVF 3B,W
0E5D: MOVWF 3D
0E5E: CALL 39F
0E5F: MOVLW 20
0E60: BTFSS 0C.4
0E61: GOTO 660
0E62: MOVWF 19
0E63: MOVLW 89
0E64: MOVWF 04
0E65: MOVF 2A,W
0E66: MOVWF 40
0E67: MOVF 29,W
0E68: MOVWF 3F
0E69: MOVF 28,W
0E6A: MOVWF 3E
0E6B: MOVF 27,W
0E6C: MOVWF 3D
0E6D: MOVLW 02
0E6E: MOVWF 41
0E6F: CALL 415
0E70: MOVLW 20
0E71: BTFSS 0C.4
0E72: GOTO 671
0E73: MOVWF 19
0E74: MOVLW 89
0E75: MOVWF 04
0E76: MOVF 36,W
0E77: MOVWF 40
0E78: MOVF 35,W
0E79: MOVWF 3F
0E7A: MOVF 34,W
0E7B: MOVWF 3E
0E7C: MOVF 33,W
0E7D: MOVWF 3D
0E7E: MOVLW 02
0E7F: MOVWF 41
0E80: CALL 415
0E81: MOVLW 20
0E82: BTFSS 0C.4
0E83: GOTO 682
0E84: MOVWF 19
0E85: MOVLW 89
0E86: MOVWF 04
0E87: MOVF 2E,W
0E88: MOVWF 40
0E89: MOVF 2D,W
0E8A: MOVWF 3F
0E8B: MOVF 2C,W
0E8C: MOVWF 3E
0E8D: MOVF 2B,W
0E8E: MOVWF 3D
0E8F: MOVLW 02
0E90: MOVWF 41
0E91: CALL 415
0E92: MOVLW 20
0E93: BTFSS 0C.4
0E94: GOTO 693
0E95: MOVWF 19
0E96: MOVLW 05
0E97: MOVWF 04
0E98: MOVF 3A,W
0E99: MOVWF 40
0E9A: MOVF 39,W
0E9B: MOVWF 3F
0E9C: MOVF 38,W
0E9D: MOVWF 3E
0E9E: MOVF 37,W
0E9F: MOVWF 3D
0EA0: MOVLW 02
0EA1: MOVWF 41
0EA2: CALL 415
0EA3: MOVLW 20
0EA4: BTFSS 0C.4
0EA5: GOTO 6A4
0EA6: MOVWF 19
0EA7: MOVLW 02
0EA8: MOVWF 04
0EA9: MOVF 32,W
0EAA: MOVWF 40
0EAB: MOVF 31,W
0EAC: MOVWF 3F
0EAD: MOVF 30,W
0EAE: MOVWF 3E
0EAF: MOVF 2F,W
0EB0: MOVWF 3D
0EB1: MOVLW 02
0EB2: MOVWF 41
0EB3: CALL 415
0EB4: MOVLW 20
0EB5: BTFSS 0C.4
0EB6: GOTO 6B5
0EB7: MOVWF 19
0EB8: MOVLW 10
0EB9: MOVWF 04
0EBA: MOVF 22,W
0EBB: MOVWF 3E
0EBC: MOVF 21,W
0EBD: MOVWF 3D
0EBE: CALL 39F
0EBF: MOVLW 20
0EC0: BTFSS 0C.4
0EC1: GOTO 6C0
0EC2: MOVWF 19
0EC3: MOVLW 10
0EC4: MOVWF 04
0EC5: MOVF 24,W
0EC6: MOVWF 3E
0EC7: MOVF 23,W
0EC8: MOVWF 3D
0EC9: CALL 39F
0ECA: MOVLW 20
0ECB: BTFSS 0C.4
0ECC: GOTO 6CB
0ECD: MOVWF 19
0ECE: MOVLW 10
0ECF: MOVWF 04
0ED0: MOVF 26,W
0ED1: MOVWF 3E
0ED2: MOVF 25,W
0ED3: MOVWF 3D
0ED4: CALL 39F
0ED5: MOVLW 20
0ED6: BTFSS 0C.4
0ED7: GOTO 6D6
0ED8: MOVWF 19
0ED9: MOVLW 0A
0EDA: BTFSS 0C.4
0EDB: GOTO 6DA
0EDC: MOVWF 19
0EDD: MOVLW 0D
0EDE: BTFSS 0C.4
0EDF: GOTO 6DE
0EE0: MOVWF 19
.................... i++;
0C68: INCF 33,F
0C69: BTFSC 03.2
0C6A: INCF 34,F
0EE1: INCF 3B,F
0EE2: BTFSC 03.2
0EE3: INCF 3C,F
....................
.................... Delay_ms(100);
0C6B: MOVLW 64
0C6C: MOVWF 43
0C6D: BCF 0A.3
0C6E: CALL 0FB
0C6F: BSF 0A.3
0EE4: MOVLW 64
0EE5: MOVWF 4B
0EE6: BCF 0A.3
0EE7: CALL 0FB
0EE8: BSF 0A.3
.................... }
0C70: GOTO 383
0EE9: GOTO 5B1
....................
.................... }
0C71: SLEEP
0EEA: SLEEP
 
Configuration Fuses:
Word 1: 2CF5 INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG