CCS PCM C Compiler, Version 4.106, 47914               22-4-13 22:26

               Filename: C:\Users\Honza\Documents\pic\I2C_bat_pam\Q_MAX\main.lst

               ROM used: 1306 words (16%)
                         Largest free fragment is 2048
               RAM used: 6 (2%) at main() level
                         22 (6%) worst case
               Stack:    2 locations

*
0000:  MOVLW  01
0001:  MOVWF  0A
0002:  GOTO   19B
0003:  NOP
.................... #include "C:\Users\Honza\Documents\pic\I2C_bat_pam\Q_MAX\main.h" 
.................... #include <16F887.h> 
.................... //////// Standard Header file for the PIC16F887 device //////////////// 
.................... #device PIC16F887 
.................... #list 
....................  
.................... #device adc=8 
....................  
.................... #FUSES NOWDT                       //No Watch Dog Timer 
.................... #FUSES INTRC                       //Internal RC Osc 
.................... #FUSES NOPUT                       //No Power Up Timer 
.................... #FUSES MCLR                        //Master Clear pin enabled 
.................... #FUSES NOPROTECT                   //Code not protected from reading 
.................... #FUSES NOCPD                       //No EE protection 
.................... #FUSES NOBROWNOUT                  //No brownout reset 
.................... #FUSES IESO                        //Internal External Switch Over mode enabled 
.................... #FUSES FCMEN                       //Fail-safe clock monitor enabled 
.................... #FUSES NOLVP                       //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O 
.................... #FUSES NODEBUG                     //No Debug mode for ICD 
.................... #FUSES NOWRT                       //Program memory not write protected 
.................... #FUSES BORV40                      //Brownout reset at 4.0V 
....................  
.................... #use delay(clock=8000000) 
*
00D0:  MOVLW  2C
00D1:  MOVWF  04
00D2:  BCF    03.7
00D3:  MOVF   00,W
00D4:  BTFSC  03.2
00D5:  GOTO   0E3
00D6:  MOVLW  02
00D7:  MOVWF  78
00D8:  CLRF   77
00D9:  DECFSZ 77,F
00DA:  GOTO   0D9
00DB:  DECFSZ 78,F
00DC:  GOTO   0D8
00DD:  MOVLW  97
00DE:  MOVWF  77
00DF:  DECFSZ 77,F
00E0:  GOTO   0DF
00E1:  DECFSZ 00,F
00E2:  GOTO   0D6
00E3:  RETURN
....................  
....................  
....................  
....................  
....................  
.................... #define EEPROM_SDA  PIN_C4 
.................... #define EEPROM_SCL  PIN_C3 
.................... #use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL) 
*
0086:  MOVLW  08
0087:  MOVWF  78
0088:  NOP
0089:  BCF    07.3
008A:  BCF    20.3
008B:  MOVF   20,W
008C:  BSF    03.5
008D:  MOVWF  07
008E:  NOP
008F:  BCF    03.5
0090:  RLF    2C,F
0091:  BCF    07.4
0092:  BTFSS  03.0
0093:  GOTO   09A
0094:  BSF    20.4
0095:  MOVF   20,W
0096:  BSF    03.5
0097:  MOVWF  07
0098:  GOTO   09E
0099:  BCF    03.5
009A:  BCF    20.4
009B:  MOVF   20,W
009C:  BSF    03.5
009D:  MOVWF  07
009E:  NOP
009F:  BCF    03.5
00A0:  BSF    20.3
00A1:  MOVF   20,W
00A2:  BSF    03.5
00A3:  MOVWF  07
00A4:  BCF    03.5
00A5:  BTFSS  07.3
00A6:  GOTO   0A5
00A7:  DECFSZ 78,F
00A8:  GOTO   088
00A9:  NOP
00AA:  BCF    07.3
00AB:  BCF    20.3
00AC:  MOVF   20,W
00AD:  BSF    03.5
00AE:  MOVWF  07
00AF:  NOP
00B0:  BCF    03.5
00B1:  BSF    20.4
00B2:  MOVF   20,W
00B3:  BSF    03.5
00B4:  MOVWF  07
00B5:  NOP
00B6:  NOP
00B7:  BCF    03.5
00B8:  BSF    20.3
00B9:  MOVF   20,W
00BA:  BSF    03.5
00BB:  MOVWF  07
00BC:  BCF    03.5
00BD:  BTFSS  07.3
00BE:  GOTO   0BD
00BF:  CLRF   78
00C0:  NOP
00C1:  BTFSC  07.4
00C2:  BSF    78.0
00C3:  BCF    07.3
00C4:  BCF    20.3
00C5:  MOVF   20,W
00C6:  BSF    03.5
00C7:  MOVWF  07
00C8:  BCF    03.5
00C9:  BCF    07.4
00CA:  BCF    20.4
00CB:  MOVF   20,W
00CC:  BSF    03.5
00CD:  MOVWF  07
00CE:  BCF    03.5
00CF:  RETURN
*
00E4:  MOVLW  08
00E5:  MOVWF  2D
00E6:  MOVF   77,W
00E7:  MOVWF  2E
00E8:  BSF    20.4
00E9:  MOVF   20,W
00EA:  BSF    03.5
00EB:  MOVWF  07
00EC:  NOP
00ED:  BCF    03.5
00EE:  BSF    20.3
00EF:  MOVF   20,W
00F0:  BSF    03.5
00F1:  MOVWF  07
00F2:  BCF    03.5
00F3:  BTFSS  07.3
00F4:  GOTO   0F3
00F5:  BTFSC  07.4
00F6:  BSF    03.0
00F7:  BTFSS  07.4
00F8:  BCF    03.0
00F9:  RLF    78,F
00FA:  NOP
00FB:  BCF    20.3
00FC:  MOVF   20,W
00FD:  BSF    03.5
00FE:  MOVWF  07
00FF:  BCF    03.5
0100:  BCF    07.3
0101:  DECFSZ 2D,F
0102:  GOTO   0E8
0103:  BSF    20.4
0104:  MOVF   20,W
0105:  BSF    03.5
0106:  MOVWF  07
0107:  NOP
0108:  BCF    03.5
0109:  BCF    07.4
010A:  MOVF   2E,W
010B:  BTFSC  03.2
010C:  GOTO   112
010D:  BCF    20.4
010E:  MOVF   20,W
010F:  BSF    03.5
0110:  MOVWF  07
0111:  BCF    03.5
0112:  NOP
0113:  BSF    20.3
0114:  MOVF   20,W
0115:  BSF    03.5
0116:  MOVWF  07
0117:  BCF    03.5
0118:  BTFSS  07.3
0119:  GOTO   118
011A:  NOP
011B:  BCF    07.3
011C:  BCF    20.3
011D:  MOVF   20,W
011E:  BSF    03.5
011F:  MOVWF  07
0120:  NOP
0121:  BCF    03.5
0122:  BCF    07.4
0123:  BCF    20.4
0124:  MOVF   20,W
0125:  BSF    03.5
0126:  MOVWF  07
0127:  BCF    03.5
0128:  RETURN
.................... #use rs232(baud=9600,parity=N,xmit=PIN_C7,rcv=PIN_C6,bits=8) //rcv TXD xmit RXD 
*
001A:  BCF    20.7
001B:  MOVF   20,W
001C:  BSF    03.5
001D:  MOVWF  07
001E:  BCF    03.5
001F:  BCF    07.7
0020:  MOVLW  08
0021:  MOVWF  78
0022:  GOTO   023
0023:  NOP
0024:  BSF    78.7
0025:  GOTO   034
0026:  BCF    78.7
0027:  RRF    30,F
0028:  BTFSC  03.0
0029:  BSF    07.7
002A:  BTFSS  03.0
002B:  BCF    07.7
002C:  BSF    78.6
002D:  GOTO   034
002E:  BCF    78.6
002F:  DECFSZ 78,F
0030:  GOTO   027
0031:  GOTO   032
0032:  NOP
0033:  BSF    07.7
0034:  MOVLW  3F
0035:  MOVWF  04
0036:  DECFSZ 04,F
0037:  GOTO   036
0038:  NOP
0039:  BTFSC  78.7
003A:  GOTO   026
003B:  BTFSC  78.6
003C:  GOTO   02E
003D:  RETURN
....................  
....................  
.................... void main() 
.................... { 
*
019B:  CLRF   04
019C:  BCF    03.7
019D:  MOVLW  1F
019E:  ANDWF  03,F
019F:  MOVLW  71
01A0:  BSF    03.5
01A1:  MOVWF  0F
01A2:  MOVF   0F,W
01A3:  BCF    03.5
01A4:  BCF    20.7
01A5:  MOVF   20,W
01A6:  BSF    03.5
01A7:  MOVWF  07
01A8:  BCF    03.5
01A9:  BSF    07.7
01AA:  BSF    03.5
01AB:  BSF    03.6
01AC:  MOVF   09,W
01AD:  ANDLW  C0
01AE:  MOVWF  09
01AF:  BCF    03.6
01B0:  BCF    1F.4
01B1:  BCF    1F.5
01B2:  MOVLW  00
01B3:  BSF    03.6
01B4:  MOVWF  08
01B5:  BCF    03.5
01B6:  CLRF   07
01B7:  CLRF   08
01B8:  CLRF   09
....................  
....................    setup_adc_ports(NO_ANALOGS|VSS_VDD); 
*
01BC:  BSF    03.5
01BD:  BSF    03.6
01BE:  MOVF   09,W
01BF:  ANDLW  C0
01C0:  MOVWF  09
01C1:  BCF    03.6
01C2:  BCF    1F.4
01C3:  BCF    1F.5
01C4:  MOVLW  00
01C5:  BSF    03.6
01C6:  MOVWF  08
....................    setup_adc(ADC_CLOCK_DIV_2); 
01C7:  BCF    03.5
01C8:  BCF    03.6
01C9:  BCF    1F.6
01CA:  BCF    1F.7
01CB:  BSF    03.5
01CC:  BCF    1F.7
01CD:  BCF    03.5
01CE:  BSF    1F.0
....................    setup_spi(SPI_SS_DISABLED); 
01CF:  BCF    14.5
01D0:  BCF    20.5
01D1:  MOVF   20,W
01D2:  BSF    03.5
01D3:  MOVWF  07
01D4:  BCF    03.5
01D5:  BSF    20.4
01D6:  MOVF   20,W
01D7:  BSF    03.5
01D8:  MOVWF  07
01D9:  BCF    03.5
01DA:  BCF    20.3
01DB:  MOVF   20,W
01DC:  BSF    03.5
01DD:  MOVWF  07
01DE:  MOVLW  01
01DF:  BCF    03.5
01E0:  MOVWF  14
01E1:  MOVLW  00
01E2:  BSF    03.5
01E3:  MOVWF  14
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
01E4:  MOVF   01,W
01E5:  ANDLW  C7
01E6:  IORLW  08
01E7:  MOVWF  01
....................    setup_timer_1(T1_DISABLED); 
01E8:  BCF    03.5
01E9:  CLRF   10
....................    setup_timer_2(T2_DISABLED,0,1); 
01EA:  MOVLW  00
01EB:  MOVWF  78
01EC:  MOVWF  12
01ED:  MOVLW  00
01EE:  BSF    03.5
01EF:  MOVWF  12
....................    setup_ccp1(CCP_OFF); 
01F0:  BCF    03.5
01F1:  BSF    20.2
01F2:  MOVF   20,W
01F3:  BSF    03.5
01F4:  MOVWF  07
01F5:  BCF    03.5
01F6:  CLRF   17
01F7:  BSF    03.5
01F8:  CLRF   1B
01F9:  CLRF   1C
01FA:  MOVLW  01
01FB:  MOVWF  1D
....................    setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard 
01FC:  BCF    03.5
01FD:  BSF    03.6
01FE:  CLRF   07
01FF:  CLRF   08
0200:  CLRF   09
....................  
.................... printf("Simple Thermomether  \r\n",); 
0201:  MOVLW  04
0202:  MOVWF  0D
0203:  MOVLW  00
0204:  MOVWF  0F
0205:  BCF    03.6
0206:  GOTO   03E
.................... unsigned int8 STAV1,STAV2; 
....................  
.................... unsigned int16 SOUCET, SOUCET1; 
.................... unsigned int8 LSB=0,ZK,k=0,VH,VL; 
0207:  CLRF   27
0208:  CLRF   29
.................... //unsigned int8   
....................    
....................  while(TRUE) 
....................  {  
....................     
....................     
....................  
....................  
....................    i2c_start(); //blockdatacontrol 
0209:  BSF    20.4
020A:  MOVF   20,W
020B:  BSF    03.5
020C:  MOVWF  07
020D:  NOP
020E:  BCF    03.5
020F:  BSF    20.3
0210:  MOVF   20,W
0211:  BSF    03.5
0212:  MOVWF  07
0213:  NOP
0214:  BCF    03.5
0215:  BCF    07.4
0216:  BCF    20.4
0217:  MOVF   20,W
0218:  BSF    03.5
0219:  MOVWF  07
021A:  NOP
021B:  BCF    03.5
021C:  BCF    07.3
021D:  BCF    20.3
021E:  MOVF   20,W
021F:  BSF    03.5
0220:  MOVWF  07
....................    I2C_Write(0xAA); 
0221:  MOVLW  AA
0222:  BCF    03.5
0223:  MOVWF  2C
0224:  CALL   086
....................    I2C_write(0x61); 
0225:  MOVLW  61
0226:  MOVWF  2C
0227:  CALL   086
....................    i2c_start(); 
0228:  BSF    20.4
0229:  MOVF   20,W
022A:  BSF    03.5
022B:  MOVWF  07
022C:  NOP
022D:  BCF    03.5
022E:  BSF    20.3
022F:  MOVF   20,W
0230:  BSF    03.5
0231:  MOVWF  07
0232:  NOP
0233:  BCF    03.5
0234:  BTFSS  07.3
0235:  GOTO   234
0236:  BCF    07.4
0237:  BCF    20.4
0238:  MOVF   20,W
0239:  BSF    03.5
023A:  MOVWF  07
023B:  NOP
023C:  BCF    03.5
023D:  BCF    07.3
023E:  BCF    20.3
023F:  MOVF   20,W
0240:  BSF    03.5
0241:  MOVWF  07
....................    I2C_Write(0xAA); 
0242:  MOVLW  AA
0243:  BCF    03.5
0244:  MOVWF  2C
0245:  CALL   086
....................    i2c_write(0x00); 
0246:  CLRF   2C
0247:  CALL   086
....................    i2c_stop();  
0248:  BCF    20.4
0249:  MOVF   20,W
024A:  BSF    03.5
024B:  MOVWF  07
024C:  NOP
024D:  BCF    03.5
024E:  BSF    20.3
024F:  MOVF   20,W
0250:  BSF    03.5
0251:  MOVWF  07
0252:  BCF    03.5
0253:  BTFSS  07.3
0254:  GOTO   253
0255:  NOP
0256:  GOTO   257
0257:  NOP
0258:  BSF    20.4
0259:  MOVF   20,W
025A:  BSF    03.5
025B:  MOVWF  07
025C:  NOP
....................    delay_ms (1); 
025D:  MOVLW  01
025E:  BCF    03.5
025F:  MOVWF  2C
0260:  CALL   0D0
....................  
....................  
....................    i2c_start();//dataflashclass  
0261:  BSF    20.4
0262:  MOVF   20,W
0263:  BSF    03.5
0264:  MOVWF  07
0265:  NOP
0266:  BCF    03.5
0267:  BSF    20.3
0268:  MOVF   20,W
0269:  BSF    03.5
026A:  MOVWF  07
026B:  NOP
026C:  BCF    03.5
026D:  BCF    07.4
026E:  BCF    20.4
026F:  MOVF   20,W
0270:  BSF    03.5
0271:  MOVWF  07
0272:  NOP
0273:  BCF    03.5
0274:  BCF    07.3
0275:  BCF    20.3
0276:  MOVF   20,W
0277:  BSF    03.5
0278:  MOVWF  07
....................    I2C_Write(0xAA); 
0279:  MOVLW  AA
027A:  BCF    03.5
027B:  MOVWF  2C
027C:  CALL   086
....................    I2C_write(0x3e); 
027D:  MOVLW  3E
027E:  MOVWF  2C
027F:  CALL   086
....................     
....................    i2c_start(); 
0280:  BSF    20.4
0281:  MOVF   20,W
0282:  BSF    03.5
0283:  MOVWF  07
0284:  NOP
0285:  BCF    03.5
0286:  BSF    20.3
0287:  MOVF   20,W
0288:  BSF    03.5
0289:  MOVWF  07
028A:  NOP
028B:  BCF    03.5
028C:  BTFSS  07.3
028D:  GOTO   28C
028E:  BCF    07.4
028F:  BCF    20.4
0290:  MOVF   20,W
0291:  BSF    03.5
0292:  MOVWF  07
0293:  NOP
0294:  BCF    03.5
0295:  BCF    07.3
0296:  BCF    20.3
0297:  MOVF   20,W
0298:  BSF    03.5
0299:  MOVWF  07
....................    I2C_Write(0xAA); 
029A:  MOVLW  AA
029B:  BCF    03.5
029C:  MOVWF  2C
029D:  CALL   086
....................    i2c_write(0x52); 
029E:  MOVLW  52
029F:  MOVWF  2C
02A0:  CALL   086
....................    i2c_stop();  
02A1:  BCF    20.4
02A2:  MOVF   20,W
02A3:  BSF    03.5
02A4:  MOVWF  07
02A5:  NOP
02A6:  BCF    03.5
02A7:  BSF    20.3
02A8:  MOVF   20,W
02A9:  BSF    03.5
02AA:  MOVWF  07
02AB:  BCF    03.5
02AC:  BTFSS  07.3
02AD:  GOTO   2AC
02AE:  NOP
02AF:  GOTO   2B0
02B0:  NOP
02B1:  BSF    20.4
02B2:  MOVF   20,W
02B3:  BSF    03.5
02B4:  MOVWF  07
02B5:  NOP
....................    delay_ms (1); 
02B6:  MOVLW  01
02B7:  BCF    03.5
02B8:  MOVWF  2C
02B9:  CALL   0D0
....................   
....................   
....................   i2c_start();//dataflashblock 
02BA:  BSF    20.4
02BB:  MOVF   20,W
02BC:  BSF    03.5
02BD:  MOVWF  07
02BE:  NOP
02BF:  BCF    03.5
02C0:  BSF    20.3
02C1:  MOVF   20,W
02C2:  BSF    03.5
02C3:  MOVWF  07
02C4:  NOP
02C5:  BCF    03.5
02C6:  BCF    07.4
02C7:  BCF    20.4
02C8:  MOVF   20,W
02C9:  BSF    03.5
02CA:  MOVWF  07
02CB:  NOP
02CC:  BCF    03.5
02CD:  BCF    07.3
02CE:  BCF    20.3
02CF:  MOVF   20,W
02D0:  BSF    03.5
02D1:  MOVWF  07
....................    I2C_Write(0xAA); 
02D2:  MOVLW  AA
02D3:  BCF    03.5
02D4:  MOVWF  2C
02D5:  CALL   086
....................    I2C_write(0x3f); 
02D6:  MOVLW  3F
02D7:  MOVWF  2C
02D8:  CALL   086
....................     
....................    i2c_start(); 
02D9:  BSF    20.4
02DA:  MOVF   20,W
02DB:  BSF    03.5
02DC:  MOVWF  07
02DD:  NOP
02DE:  BCF    03.5
02DF:  BSF    20.3
02E0:  MOVF   20,W
02E1:  BSF    03.5
02E2:  MOVWF  07
02E3:  NOP
02E4:  BCF    03.5
02E5:  BTFSS  07.3
02E6:  GOTO   2E5
02E7:  BCF    07.4
02E8:  BCF    20.4
02E9:  MOVF   20,W
02EA:  BSF    03.5
02EB:  MOVWF  07
02EC:  NOP
02ED:  BCF    03.5
02EE:  BCF    07.3
02EF:  BCF    20.3
02F0:  MOVF   20,W
02F1:  BSF    03.5
02F2:  MOVWF  07
....................    I2C_Write(0xAA); 
02F3:  MOVLW  AA
02F4:  BCF    03.5
02F5:  MOVWF  2C
02F6:  CALL   086
....................    I2C_write(0x00); 
02F7:  CLRF   2C
02F8:  CALL   086
....................    i2c_stop();  
02F9:  BCF    20.4
02FA:  MOVF   20,W
02FB:  BSF    03.5
02FC:  MOVWF  07
02FD:  NOP
02FE:  BCF    03.5
02FF:  BSF    20.3
0300:  MOVF   20,W
0301:  BSF    03.5
0302:  MOVWF  07
0303:  BCF    03.5
0304:  BTFSS  07.3
0305:  GOTO   304
0306:  NOP
0307:  GOTO   308
0308:  NOP
0309:  BSF    20.4
030A:  MOVF   20,W
030B:  BSF    03.5
030C:  MOVWF  07
030D:  NOP
....................   
....................  delay_ms (1); 
030E:  MOVLW  01
030F:  BCF    03.5
0310:  MOVWF  2C
0311:  CALL   0D0
....................   
....................   
....................   
....................   
....................  i2c_start();//blockdata 
0312:  BSF    20.4
0313:  MOVF   20,W
0314:  BSF    03.5
0315:  MOVWF  07
0316:  NOP
0317:  BCF    03.5
0318:  BSF    20.3
0319:  MOVF   20,W
031A:  BSF    03.5
031B:  MOVWF  07
031C:  NOP
031D:  BCF    03.5
031E:  BCF    07.4
031F:  BCF    20.4
0320:  MOVF   20,W
0321:  BSF    03.5
0322:  MOVWF  07
0323:  NOP
0324:  BCF    03.5
0325:  BCF    07.3
0326:  BCF    20.3
0327:  MOVF   20,W
0328:  BSF    03.5
0329:  MOVWF  07
....................    I2C_Write(0xAA); 
032A:  MOVLW  AA
032B:  BCF    03.5
032C:  MOVWF  2C
032D:  CALL   086
....................    I2C_write(0x40); 
032E:  MOVLW  40
032F:  MOVWF  2C
0330:  CALL   086
....................    
....................    i2c_start(); 
0331:  BSF    20.4
0332:  MOVF   20,W
0333:  BSF    03.5
0334:  MOVWF  07
0335:  NOP
0336:  BCF    03.5
0337:  BSF    20.3
0338:  MOVF   20,W
0339:  BSF    03.5
033A:  MOVWF  07
033B:  NOP
033C:  BCF    03.5
033D:  BTFSS  07.3
033E:  GOTO   33D
033F:  BCF    07.4
0340:  BCF    20.4
0341:  MOVF   20,W
0342:  BSF    03.5
0343:  MOVWF  07
0344:  NOP
0345:  BCF    03.5
0346:  BCF    07.3
0347:  BCF    20.3
0348:  MOVF   20,W
0349:  BSF    03.5
034A:  MOVWF  07
....................    I2C_Write(0xAB); 
034B:  MOVLW  AB
034C:  BCF    03.5
034D:  MOVWF  2C
034E:  CALL   086
....................    VH=I2C_read(0); 
034F:  CLRF   77
0350:  CALL   0E4
0351:  MOVF   78,W
0352:  MOVWF  2A
....................     
....................    i2c_stop(); 
0353:  BCF    20.4
0354:  MOVF   20,W
0355:  BSF    03.5
0356:  MOVWF  07
0357:  NOP
0358:  BCF    03.5
0359:  BSF    20.3
035A:  MOVF   20,W
035B:  BSF    03.5
035C:  MOVWF  07
035D:  BCF    03.5
035E:  BTFSS  07.3
035F:  GOTO   35E
0360:  NOP
0361:  GOTO   362
0362:  NOP
0363:  BSF    20.4
0364:  MOVF   20,W
0365:  BSF    03.5
0366:  MOVWF  07
0367:  NOP
....................     
....................   i2c_start();//blockdata 
0368:  BCF    03.5
0369:  BSF    20.4
036A:  MOVF   20,W
036B:  BSF    03.5
036C:  MOVWF  07
036D:  NOP
036E:  BCF    03.5
036F:  BSF    20.3
0370:  MOVF   20,W
0371:  BSF    03.5
0372:  MOVWF  07
0373:  NOP
0374:  BCF    03.5
0375:  BCF    07.4
0376:  BCF    20.4
0377:  MOVF   20,W
0378:  BSF    03.5
0379:  MOVWF  07
037A:  NOP
037B:  BCF    03.5
037C:  BCF    07.3
037D:  BCF    20.3
037E:  MOVF   20,W
037F:  BSF    03.5
0380:  MOVWF  07
....................    I2C_Write(0xAA); 
0381:  MOVLW  AA
0382:  BCF    03.5
0383:  MOVWF  2C
0384:  CALL   086
....................    I2C_write(0x41); 
0385:  MOVLW  41
0386:  MOVWF  2C
0387:  CALL   086
....................    
....................    i2c_start(); 
0388:  BSF    20.4
0389:  MOVF   20,W
038A:  BSF    03.5
038B:  MOVWF  07
038C:  NOP
038D:  BCF    03.5
038E:  BSF    20.3
038F:  MOVF   20,W
0390:  BSF    03.5
0391:  MOVWF  07
0392:  NOP
0393:  BCF    03.5
0394:  BTFSS  07.3
0395:  GOTO   394
0396:  BCF    07.4
0397:  BCF    20.4
0398:  MOVF   20,W
0399:  BSF    03.5
039A:  MOVWF  07
039B:  NOP
039C:  BCF    03.5
039D:  BCF    07.3
039E:  BCF    20.3
039F:  MOVF   20,W
03A0:  BSF    03.5
03A1:  MOVWF  07
....................    I2C_Write(0xAB); 
03A2:  MOVLW  AB
03A3:  BCF    03.5
03A4:  MOVWF  2C
03A5:  CALL   086
....................     
....................    VL=I2C_read(0); 
03A6:  CLRF   77
03A7:  CALL   0E4
03A8:  MOVF   78,W
03A9:  MOVWF  2B
....................    i2c_stop();   
03AA:  BCF    20.4
03AB:  MOVF   20,W
03AC:  BSF    03.5
03AD:  MOVWF  07
03AE:  NOP
03AF:  BCF    03.5
03B0:  BSF    20.3
03B1:  MOVF   20,W
03B2:  BSF    03.5
03B3:  MOVWF  07
03B4:  BCF    03.5
03B5:  BTFSS  07.3
03B6:  GOTO   3B5
03B7:  NOP
03B8:  GOTO   3B9
03B9:  NOP
03BA:  BSF    20.4
03BB:  MOVF   20,W
03BC:  BSF    03.5
03BD:  MOVWF  07
03BE:  NOP
....................        
....................     
.................... delay_ms (10); 
03BF:  MOVLW  0A
03C0:  BCF    03.5
03C1:  MOVWF  2C
03C2:  CALL   0D0
....................   
....................   printf("VL %lX \r\n", VL);  
03C3:  MOVLW  56
03C4:  MOVWF  30
03C5:  CALL   01A
03C6:  MOVLW  4C
03C7:  MOVWF  30
03C8:  CALL   01A
03C9:  MOVLW  20
03CA:  MOVWF  30
03CB:  CALL   01A
03CC:  MOVF   2B,W
03CD:  MOVWF  2C
03CE:  MOVLW  37
03CF:  MOVWF  2D
03D0:  CALL   129
03D1:  MOVLW  20
03D2:  MOVWF  30
03D3:  CALL   01A
03D4:  MOVLW  0D
03D5:  MOVWF  30
03D6:  CALL   01A
03D7:  MOVLW  0A
03D8:  MOVWF  30
03D9:  CALL   01A
....................    printf("LH %lX \r\n", VH);  
03DA:  MOVLW  4C
03DB:  MOVWF  30
03DC:  CALL   01A
03DD:  MOVLW  48
03DE:  MOVWF  30
03DF:  CALL   01A
03E0:  MOVLW  20
03E1:  MOVWF  30
03E2:  CALL   01A
03E3:  MOVF   2A,W
03E4:  MOVWF  2C
03E5:  MOVLW  37
03E6:  MOVWF  2D
03E7:  CALL   129
03E8:  MOVLW  20
03E9:  MOVWF  30
03EA:  CALL   01A
03EB:  MOVLW  0D
03EC:  MOVWF  30
03ED:  CALL   01A
03EE:  MOVLW  0A
03EF:  MOVWF  30
03F0:  CALL   01A
....................   
.................... if(VL==0x48) 
03F1:  MOVF   2B,W
03F2:  SUBLW  48
03F3:  BTFSS  03.2
03F4:  GOTO   411
.................... { 
.................... LSB=LSB-1; 
03F5:  MOVLW  01
03F6:  SUBWF  27,F
.................... printf("Vysledne LSB %lX \r\n", LSB);  
03F7:  MOVLW  10
03F8:  BSF    03.6
03F9:  MOVWF  0D
03FA:  MOVLW  00
03FB:  MOVWF  0F
03FC:  BCF    03.0
03FD:  MOVLW  0D
03FE:  BCF    03.6
03FF:  MOVWF  2C
0400:  GOTO   14A
0401:  MOVF   27,W
0402:  MOVWF  2C
0403:  MOVLW  37
0404:  MOVWF  2D
0405:  CALL   129
0406:  MOVLW  20
0407:  MOVWF  30
0408:  CALL   01A
0409:  MOVLW  0D
040A:  MOVWF  30
040B:  CALL   01A
040C:  MOVLW  0A
040D:  MOVWF  30
040E:  CALL   01A
.................... while(TRUE) 
.................... { 
.................... } 
040F:  GOTO   40F
.................... } 
....................  
.................... else 
0410:  GOTO   4BD
.................... { 
....................  i2c_start();//blockdata 
0411:  BSF    20.4
0412:  MOVF   20,W
0413:  BSF    03.5
0414:  MOVWF  07
0415:  NOP
0416:  BCF    03.5
0417:  BSF    20.3
0418:  MOVF   20,W
0419:  BSF    03.5
041A:  MOVWF  07
041B:  NOP
041C:  BCF    03.5
041D:  BCF    07.4
041E:  BCF    20.4
041F:  MOVF   20,W
0420:  BSF    03.5
0421:  MOVWF  07
0422:  NOP
0423:  BCF    03.5
0424:  BCF    07.3
0425:  BCF    20.3
0426:  MOVF   20,W
0427:  BSF    03.5
0428:  MOVWF  07
....................    I2C_Write(0xAA); 
0429:  MOVLW  AA
042A:  BCF    03.5
042B:  MOVWF  2C
042C:  CALL   086
....................    I2C_write(0x40); 
042D:  MOVLW  40
042E:  MOVWF  2C
042F:  CALL   086
....................    
....................    i2c_start(); 
0430:  BSF    20.4
0431:  MOVF   20,W
0432:  BSF    03.5
0433:  MOVWF  07
0434:  NOP
0435:  BCF    03.5
0436:  BSF    20.3
0437:  MOVF   20,W
0438:  BSF    03.5
0439:  MOVWF  07
043A:  NOP
043B:  BCF    03.5
043C:  BTFSS  07.3
043D:  GOTO   43C
043E:  BCF    07.4
043F:  BCF    20.4
0440:  MOVF   20,W
0441:  BSF    03.5
0442:  MOVWF  07
0443:  NOP
0444:  BCF    03.5
0445:  BCF    07.3
0446:  BCF    20.3
0447:  MOVF   20,W
0448:  BSF    03.5
0449:  MOVWF  07
....................    I2C_Write(0xAA); 
044A:  MOVLW  AA
044B:  BCF    03.5
044C:  MOVWF  2C
044D:  CALL   086
....................    I2C_write(0x0D); 
044E:  MOVLW  0D
044F:  MOVWF  2C
0450:  CALL   086
....................    i2c_stop(); 
0451:  BCF    20.4
0452:  MOVF   20,W
0453:  BSF    03.5
0454:  MOVWF  07
0455:  NOP
0456:  BCF    03.5
0457:  BSF    20.3
0458:  MOVF   20,W
0459:  BSF    03.5
045A:  MOVWF  07
045B:  BCF    03.5
045C:  BTFSS  07.3
045D:  GOTO   45C
045E:  NOP
045F:  GOTO   460
0460:  NOP
0461:  BSF    20.4
0462:  MOVF   20,W
0463:  BSF    03.5
0464:  MOVWF  07
0465:  NOP
....................   
.................... i2c_start();//blockdata 
0466:  BCF    03.5
0467:  BSF    20.4
0468:  MOVF   20,W
0469:  BSF    03.5
046A:  MOVWF  07
046B:  NOP
046C:  BCF    03.5
046D:  BSF    20.3
046E:  MOVF   20,W
046F:  BSF    03.5
0470:  MOVWF  07
0471:  NOP
0472:  BCF    03.5
0473:  BCF    07.4
0474:  BCF    20.4
0475:  MOVF   20,W
0476:  BSF    03.5
0477:  MOVWF  07
0478:  NOP
0479:  BCF    03.5
047A:  BCF    07.3
047B:  BCF    20.3
047C:  MOVF   20,W
047D:  BSF    03.5
047E:  MOVWF  07
....................    I2C_Write(0xAA); 
047F:  MOVLW  AA
0480:  BCF    03.5
0481:  MOVWF  2C
0482:  CALL   086
....................    I2C_write(0x41); 
0483:  MOVLW  41
0484:  MOVWF  2C
0485:  CALL   086
....................    
....................    i2c_start(); 
0486:  BSF    20.4
0487:  MOVF   20,W
0488:  BSF    03.5
0489:  MOVWF  07
048A:  NOP
048B:  BCF    03.5
048C:  BSF    20.3
048D:  MOVF   20,W
048E:  BSF    03.5
048F:  MOVWF  07
0490:  NOP
0491:  BCF    03.5
0492:  BTFSS  07.3
0493:  GOTO   492
0494:  BCF    07.4
0495:  BCF    20.4
0496:  MOVF   20,W
0497:  BSF    03.5
0498:  MOVWF  07
0499:  NOP
049A:  BCF    03.5
049B:  BCF    07.3
049C:  BCF    20.3
049D:  MOVF   20,W
049E:  BSF    03.5
049F:  MOVWF  07
....................    I2C_Write(0xAA); 
04A0:  MOVLW  AA
04A1:  BCF    03.5
04A2:  MOVWF  2C
04A3:  CALL   086
....................    I2C_write(0x48); 
04A4:  MOVLW  48
04A5:  MOVWF  2C
04A6:  CALL   086
....................    i2c_stop();  
04A7:  BCF    20.4
04A8:  MOVF   20,W
04A9:  BSF    03.5
04AA:  MOVWF  07
04AB:  NOP
04AC:  BCF    03.5
04AD:  BSF    20.3
04AE:  MOVF   20,W
04AF:  BSF    03.5
04B0:  MOVWF  07
04B1:  BCF    03.5
04B2:  BTFSS  07.3
04B3:  GOTO   4B2
04B4:  NOP
04B5:  GOTO   4B6
04B6:  NOP
04B7:  BSF    20.4
04B8:  MOVF   20,W
04B9:  BSF    03.5
04BA:  MOVWF  07
04BB:  NOP
04BC:  BCF    03.5
....................  
....................  
....................  
....................  
....................     
....................     
.................... }  
....................  
.................... i2c_start();//blockdata 
04BD:  BSF    20.4
04BE:  MOVF   20,W
04BF:  BSF    03.5
04C0:  MOVWF  07
04C1:  NOP
04C2:  BCF    03.5
04C3:  BSF    20.3
04C4:  MOVF   20,W
04C5:  BSF    03.5
04C6:  MOVWF  07
04C7:  NOP
04C8:  BCF    03.5
04C9:  BCF    07.4
04CA:  BCF    20.4
04CB:  MOVF   20,W
04CC:  BSF    03.5
04CD:  MOVWF  07
04CE:  NOP
04CF:  BCF    03.5
04D0:  BCF    07.3
04D1:  BCF    20.3
04D2:  MOVF   20,W
04D3:  BSF    03.5
04D4:  MOVWF  07
....................    I2C_Write(0xAA); 
04D5:  MOVLW  AA
04D6:  BCF    03.5
04D7:  MOVWF  2C
04D8:  CALL   086
....................    I2C_write(0x60); 
04D9:  MOVLW  60
04DA:  MOVWF  2C
04DB:  CALL   086
....................    
....................    i2c_start(); 
04DC:  BSF    20.4
04DD:  MOVF   20,W
04DE:  BSF    03.5
04DF:  MOVWF  07
04E0:  NOP
04E1:  BCF    03.5
04E2:  BSF    20.3
04E3:  MOVF   20,W
04E4:  BSF    03.5
04E5:  MOVWF  07
04E6:  NOP
04E7:  BCF    03.5
04E8:  BTFSS  07.3
04E9:  GOTO   4E8
04EA:  BCF    07.4
04EB:  BCF    20.4
04EC:  MOVF   20,W
04ED:  BSF    03.5
04EE:  MOVWF  07
04EF:  NOP
04F0:  BCF    03.5
04F1:  BCF    07.3
04F2:  BCF    20.3
04F3:  MOVF   20,W
04F4:  BSF    03.5
04F5:  MOVWF  07
....................    I2C_Write(0xAA); 
04F6:  MOVLW  AA
04F7:  BCF    03.5
04F8:  MOVWF  2C
04F9:  CALL   086
....................    I2C_write(LSB); 
04FA:  MOVF   27,W
04FB:  MOVWF  2C
04FC:  CALL   086
....................    i2c_stop(); 
04FD:  BCF    20.4
04FE:  MOVF   20,W
04FF:  BSF    03.5
0500:  MOVWF  07
0501:  NOP
0502:  BCF    03.5
0503:  BSF    20.3
0504:  MOVF   20,W
0505:  BSF    03.5
0506:  MOVWF  07
0507:  BCF    03.5
0508:  BTFSS  07.3
0509:  GOTO   508
050A:  NOP
050B:  GOTO   50C
050C:  NOP
050D:  BSF    20.4
050E:  MOVF   20,W
050F:  BSF    03.5
0510:  MOVWF  07
0511:  NOP
....................  
.................... LSB=LSB+1; 
0512:  MOVLW  01
0513:  BCF    03.5
0514:  ADDWF  27,F
....................  
.................... delay_ms (100);    
0515:  MOVLW  64
0516:  MOVWF  2C
0517:  CALL   0D0
....................    
....................  
....................  
....................    
....................  
....................  
....................  
....................  
.................... } 
0518:  GOTO   209
....................  
....................  }  
....................  
0519:  SLEEP

Configuration Fuses:
   Word  1: 2CF5   INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG
   Word  2: 3FFF   NOWRT BORV40