CCS PCM C Compiler, Version 4.106, 47914               11-4-13 19:05

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

               ROM used: 975 words (12%)
                         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   171
0003:  NOP
.................... #include "C:\Users\Honza\Documents\pic\I2C_bat_pam\Cteni\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) 
*
00B8:  MOVLW  2C
00B9:  MOVWF  04
00BA:  BCF    03.7
00BB:  MOVF   00,W
00BC:  BTFSC  03.2
00BD:  GOTO   0CB
00BE:  MOVLW  02
00BF:  MOVWF  78
00C0:  CLRF   77
00C1:  DECFSZ 77,F
00C2:  GOTO   0C1
00C3:  DECFSZ 78,F
00C4:  GOTO   0C0
00C5:  MOVLW  97
00C6:  MOVWF  77
00C7:  DECFSZ 77,F
00C8:  GOTO   0C7
00C9:  DECFSZ 00,F
00CA:  GOTO   0BE
00CB:  RETURN
....................  
....................  
....................  
....................  
.................... #define EEPROM_SDA  PIN_B0 
.................... #define EEPROM_SCL  PIN_B1 
.................... #use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL) 
*
0084:  MOVLW  08
0085:  MOVWF  78
0086:  NOP
0087:  BCF    06.1
0088:  BSF    03.5
0089:  BCF    06.1
008A:  NOP
008B:  BCF    03.5
008C:  RLF    2C,F
008D:  BCF    06.0
008E:  BTFSS  03.0
008F:  GOTO   093
0090:  BSF    03.5
0091:  BSF    06.0
0092:  BCF    03.5
0093:  BTFSC  03.0
0094:  GOTO   098
0095:  BSF    03.5
0096:  BCF    06.0
0097:  BCF    03.5
0098:  BSF    03.5
0099:  BSF    06.1
009A:  BCF    03.5
009B:  BTFSS  06.1
009C:  GOTO   09B
009D:  DECFSZ 78,F
009E:  GOTO   086
009F:  NOP
00A0:  BCF    06.1
00A1:  BSF    03.5
00A2:  BCF    06.1
00A3:  NOP
00A4:  BSF    06.0
00A5:  NOP
00A6:  NOP
00A7:  BSF    06.1
00A8:  BCF    03.5
00A9:  BTFSS  06.1
00AA:  GOTO   0A9
00AB:  CLRF   78
00AC:  NOP
00AD:  BTFSC  06.0
00AE:  BSF    78.0
00AF:  BCF    06.1
00B0:  BSF    03.5
00B1:  BCF    06.1
00B2:  BCF    03.5
00B3:  BCF    06.0
00B4:  BSF    03.5
00B5:  BCF    06.0
00B6:  BCF    03.5
00B7:  RETURN
*
00CC:  MOVLW  08
00CD:  MOVWF  2D
00CE:  MOVF   77,W
00CF:  MOVWF  2E
00D0:  BSF    03.5
00D1:  BSF    06.0
00D2:  NOP
00D3:  BSF    06.1
00D4:  BCF    03.5
00D5:  BTFSS  06.1
00D6:  GOTO   0D5
00D7:  BTFSC  06.0
00D8:  BSF    03.0
00D9:  BTFSS  06.0
00DA:  BCF    03.0
00DB:  RLF    78,F
00DC:  NOP
00DD:  BSF    03.5
00DE:  BCF    06.1
00DF:  BCF    03.5
00E0:  BCF    06.1
00E1:  DECFSZ 2D,F
00E2:  GOTO   0D0
00E3:  BSF    03.5
00E4:  BSF    06.0
00E5:  NOP
00E6:  BCF    03.5
00E7:  BCF    06.0
00E8:  MOVF   2E,W
00E9:  BTFSC  03.2
00EA:  GOTO   0EE
00EB:  BSF    03.5
00EC:  BCF    06.0
00ED:  BCF    03.5
00EE:  NOP
00EF:  BSF    03.5
00F0:  BSF    06.1
00F1:  BCF    03.5
00F2:  BTFSS  06.1
00F3:  GOTO   0F2
00F4:  NOP
00F5:  BCF    06.1
00F6:  BSF    03.5
00F7:  BCF    06.1
00F8:  NOP
00F9:  BCF    03.5
00FA:  BCF    06.0
00FB:  BSF    03.5
00FC:  BCF    06.0
00FD:  BCF    03.5
00FE:  RETURN
.................... #use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD 
*
001A:  BSF    03.5
001B:  BCF    06.3
001C:  BCF    03.5
001D:  BCF    06.3
001E:  MOVLW  08
001F:  MOVWF  78
0020:  GOTO   021
0021:  NOP
0022:  BSF    78.7
0023:  GOTO   032
0024:  BCF    78.7
0025:  RRF    30,F
0026:  BTFSC  03.0
0027:  BSF    06.3
0028:  BTFSS  03.0
0029:  BCF    06.3
002A:  BSF    78.6
002B:  GOTO   032
002C:  BCF    78.6
002D:  DECFSZ 78,F
002E:  GOTO   025
002F:  GOTO   030
0030:  NOP
0031:  BSF    06.3
0032:  MOVLW  3F
0033:  MOVWF  04
0034:  DECFSZ 04,F
0035:  GOTO   034
0036:  NOP
0037:  BTFSC  78.7
0038:  GOTO   024
0039:  BTFSC  78.6
003A:  GOTO   02C
003B:  RETURN
....................  
....................  
.................... void main() 
.................... { 
*
0171:  CLRF   04
0172:  BCF    03.7
0173:  MOVLW  1F
0174:  ANDWF  03,F
0175:  MOVLW  71
0176:  BSF    03.5
0177:  MOVWF  0F
0178:  MOVF   0F,W
0179:  BCF    06.3
017A:  BCF    03.5
017B:  BSF    06.3
017C:  BSF    03.5
017D:  BSF    03.6
017E:  MOVF   09,W
017F:  ANDLW  C0
0180:  MOVWF  09
0181:  BCF    03.6
0182:  BCF    1F.4
0183:  BCF    1F.5
0184:  MOVLW  00
0185:  BSF    03.6
0186:  MOVWF  08
0187:  BCF    03.5
0188:  CLRF   07
0189:  CLRF   08
018A:  CLRF   09
....................  
....................    setup_adc_ports(NO_ANALOGS|VSS_VDD); 
*
018E:  BSF    03.5
018F:  BSF    03.6
0190:  MOVF   09,W
0191:  ANDLW  C0
0192:  MOVWF  09
0193:  BCF    03.6
0194:  BCF    1F.4
0195:  BCF    1F.5
0196:  MOVLW  00
0197:  BSF    03.6
0198:  MOVWF  08
....................    setup_adc(ADC_CLOCK_DIV_2); 
0199:  BCF    03.5
019A:  BCF    03.6
019B:  BCF    1F.6
019C:  BCF    1F.7
019D:  BSF    03.5
019E:  BCF    1F.7
019F:  BCF    03.5
01A0:  BSF    1F.0
....................    setup_spi(SPI_SS_DISABLED); 
01A1:  BCF    14.5
01A2:  BCF    20.5
01A3:  MOVF   20,W
01A4:  BSF    03.5
01A5:  MOVWF  07
01A6:  BCF    03.5
01A7:  BSF    20.4
01A8:  MOVF   20,W
01A9:  BSF    03.5
01AA:  MOVWF  07
01AB:  BCF    03.5
01AC:  BCF    20.3
01AD:  MOVF   20,W
01AE:  BSF    03.5
01AF:  MOVWF  07
01B0:  MOVLW  01
01B1:  BCF    03.5
01B2:  MOVWF  14
01B3:  MOVLW  00
01B4:  BSF    03.5
01B5:  MOVWF  14
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
01B6:  MOVF   01,W
01B7:  ANDLW  C7
01B8:  IORLW  08
01B9:  MOVWF  01
....................    setup_timer_1(T1_DISABLED); 
01BA:  BCF    03.5
01BB:  CLRF   10
....................    setup_timer_2(T2_DISABLED,0,1); 
01BC:  MOVLW  00
01BD:  MOVWF  78
01BE:  MOVWF  12
01BF:  MOVLW  00
01C0:  BSF    03.5
01C1:  MOVWF  12
....................    setup_ccp1(CCP_OFF); 
01C2:  BCF    03.5
01C3:  BSF    20.2
01C4:  MOVF   20,W
01C5:  BSF    03.5
01C6:  MOVWF  07
01C7:  BCF    03.5
01C8:  CLRF   17
01C9:  BSF    03.5
01CA:  CLRF   1B
01CB:  CLRF   1C
01CC:  MOVLW  01
01CD:  MOVWF  1D
....................    setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard 
01CE:  BCF    03.5
01CF:  BSF    03.6
01D0:  CLRF   07
01D1:  CLRF   08
01D2:  CLRF   09
....................  
.................... printf("Simple Thermomether  \r\n",); 
01D3:  MOVLW  04
01D4:  MOVWF  0D
01D5:  MOVLW  00
01D6:  MOVWF  0F
01D7:  BCF    03.6
01D8:  GOTO   03C
.................... unsigned int8 STAV1,STAV2; 
....................  
.................... unsigned int16 SOUCET, SOUCET1; 
.................... unsigned int8 LSB=0,ZK,k=0,VH,VL; 
01D9:  CLRF   27
01DA:  CLRF   29
.................... //unsigned int8   
....................    
....................  while(TRUE) 
....................  {  
....................     
....................     
....................  
....................  
....................    i2c_start(); //blockdatacontrol 
01DB:  BSF    03.5
01DC:  BSF    06.0
01DD:  NOP
01DE:  BSF    06.1
01DF:  NOP
01E0:  BCF    03.5
01E1:  BCF    06.0
01E2:  BSF    03.5
01E3:  BCF    06.0
01E4:  NOP
01E5:  BCF    03.5
01E6:  BCF    06.1
01E7:  BSF    03.5
01E8:  BCF    06.1
....................    I2C_Write(0xAA); 
01E9:  MOVLW  AA
01EA:  BCF    03.5
01EB:  MOVWF  2C
01EC:  CALL   084
....................    I2C_write(0x61); 
01ED:  MOVLW  61
01EE:  MOVWF  2C
01EF:  CALL   084
....................    i2c_start(); 
01F0:  BSF    03.5
01F1:  BSF    06.0
01F2:  NOP
01F3:  BSF    06.1
01F4:  NOP
01F5:  BCF    03.5
01F6:  BTFSS  06.1
01F7:  GOTO   1F6
01F8:  BCF    06.0
01F9:  BSF    03.5
01FA:  BCF    06.0
01FB:  NOP
01FC:  BCF    03.5
01FD:  BCF    06.1
01FE:  BSF    03.5
01FF:  BCF    06.1
....................    I2C_Write(0xAA); 
0200:  MOVLW  AA
0201:  BCF    03.5
0202:  MOVWF  2C
0203:  CALL   084
....................    i2c_write(0x00); 
0204:  CLRF   2C
0205:  CALL   084
....................    i2c_stop();  
0206:  BSF    03.5
0207:  BCF    06.0
0208:  NOP
0209:  BSF    06.1
020A:  BCF    03.5
020B:  BTFSS  06.1
020C:  GOTO   20B
020D:  NOP
020E:  GOTO   20F
020F:  NOP
0210:  BSF    03.5
0211:  BSF    06.0
0212:  NOP
....................    delay_ms (1); 
0213:  MOVLW  01
0214:  BCF    03.5
0215:  MOVWF  2C
0216:  CALL   0B8
....................  
....................  
....................    i2c_start();//dataflashclass  
0217:  BSF    03.5
0218:  BSF    06.0
0219:  NOP
021A:  BSF    06.1
021B:  NOP
021C:  BCF    03.5
021D:  BCF    06.0
021E:  BSF    03.5
021F:  BCF    06.0
0220:  NOP
0221:  BCF    03.5
0222:  BCF    06.1
0223:  BSF    03.5
0224:  BCF    06.1
....................    I2C_Write(0xAA); 
0225:  MOVLW  AA
0226:  BCF    03.5
0227:  MOVWF  2C
0228:  CALL   084
....................    I2C_write(0x3e); 
0229:  MOVLW  3E
022A:  MOVWF  2C
022B:  CALL   084
....................     
....................    i2c_start(); 
022C:  BSF    03.5
022D:  BSF    06.0
022E:  NOP
022F:  BSF    06.1
0230:  NOP
0231:  BCF    03.5
0232:  BTFSS  06.1
0233:  GOTO   232
0234:  BCF    06.0
0235:  BSF    03.5
0236:  BCF    06.0
0237:  NOP
0238:  BCF    03.5
0239:  BCF    06.1
023A:  BSF    03.5
023B:  BCF    06.1
....................    I2C_Write(0xAA); 
023C:  MOVLW  AA
023D:  BCF    03.5
023E:  MOVWF  2C
023F:  CALL   084
....................    i2c_write(0x50); 
0240:  MOVLW  50
0241:  MOVWF  2C
0242:  CALL   084
....................    i2c_stop();  
0243:  BSF    03.5
0244:  BCF    06.0
0245:  NOP
0246:  BSF    06.1
0247:  BCF    03.5
0248:  BTFSS  06.1
0249:  GOTO   248
024A:  NOP
024B:  GOTO   24C
024C:  NOP
024D:  BSF    03.5
024E:  BSF    06.0
024F:  NOP
....................    delay_ms (1); 
0250:  MOVLW  01
0251:  BCF    03.5
0252:  MOVWF  2C
0253:  CALL   0B8
....................   
....................   
....................   i2c_start();//dataflashblock 
0254:  BSF    03.5
0255:  BSF    06.0
0256:  NOP
0257:  BSF    06.1
0258:  NOP
0259:  BCF    03.5
025A:  BCF    06.0
025B:  BSF    03.5
025C:  BCF    06.0
025D:  NOP
025E:  BCF    03.5
025F:  BCF    06.1
0260:  BSF    03.5
0261:  BCF    06.1
....................    I2C_Write(0xAA); 
0262:  MOVLW  AA
0263:  BCF    03.5
0264:  MOVWF  2C
0265:  CALL   084
....................    I2C_write(0x3f); 
0266:  MOVLW  3F
0267:  MOVWF  2C
0268:  CALL   084
....................     
....................    i2c_start(); 
0269:  BSF    03.5
026A:  BSF    06.0
026B:  NOP
026C:  BSF    06.1
026D:  NOP
026E:  BCF    03.5
026F:  BTFSS  06.1
0270:  GOTO   26F
0271:  BCF    06.0
0272:  BSF    03.5
0273:  BCF    06.0
0274:  NOP
0275:  BCF    03.5
0276:  BCF    06.1
0277:  BSF    03.5
0278:  BCF    06.1
....................    I2C_Write(0xAA); 
0279:  MOVLW  AA
027A:  BCF    03.5
027B:  MOVWF  2C
027C:  CALL   084
....................    I2C_write(0x02); 
027D:  MOVLW  02
027E:  MOVWF  2C
027F:  CALL   084
....................    i2c_stop();  
0280:  BSF    03.5
0281:  BCF    06.0
0282:  NOP
0283:  BSF    06.1
0284:  BCF    03.5
0285:  BTFSS  06.1
0286:  GOTO   285
0287:  NOP
0288:  GOTO   289
0289:  NOP
028A:  BSF    03.5
028B:  BSF    06.0
028C:  NOP
....................   
....................  delay_ms (1); 
028D:  MOVLW  01
028E:  BCF    03.5
028F:  MOVWF  2C
0290:  CALL   0B8
....................   
....................   
....................   
....................   
....................  i2c_start();//blockdata 
0291:  BSF    03.5
0292:  BSF    06.0
0293:  NOP
0294:  BSF    06.1
0295:  NOP
0296:  BCF    03.5
0297:  BCF    06.0
0298:  BSF    03.5
0299:  BCF    06.0
029A:  NOP
029B:  BCF    03.5
029C:  BCF    06.1
029D:  BSF    03.5
029E:  BCF    06.1
....................    I2C_Write(0xAA); 
029F:  MOVLW  AA
02A0:  BCF    03.5
02A1:  MOVWF  2C
02A2:  CALL   084
....................    I2C_write(0x45); 
02A3:  MOVLW  45
02A4:  MOVWF  2C
02A5:  CALL   084
....................    
....................    i2c_start(); 
02A6:  BSF    03.5
02A7:  BSF    06.0
02A8:  NOP
02A9:  BSF    06.1
02AA:  NOP
02AB:  BCF    03.5
02AC:  BTFSS  06.1
02AD:  GOTO   2AC
02AE:  BCF    06.0
02AF:  BSF    03.5
02B0:  BCF    06.0
02B1:  NOP
02B2:  BCF    03.5
02B3:  BCF    06.1
02B4:  BSF    03.5
02B5:  BCF    06.1
....................    I2C_Write(0xAB); 
02B6:  MOVLW  AB
02B7:  BCF    03.5
02B8:  MOVWF  2C
02B9:  CALL   084
....................    VH=I2C_read(0); 
02BA:  CLRF   77
02BB:  CALL   0CC
02BC:  MOVF   78,W
02BD:  MOVWF  2A
....................     
....................    i2c_stop(); 
02BE:  BSF    03.5
02BF:  BCF    06.0
02C0:  NOP
02C1:  BSF    06.1
02C2:  BCF    03.5
02C3:  BTFSS  06.1
02C4:  GOTO   2C3
02C5:  NOP
02C6:  GOTO   2C7
02C7:  NOP
02C8:  BSF    03.5
02C9:  BSF    06.0
02CA:  NOP
....................     
....................   i2c_start();//blockdata 
02CB:  BSF    06.0
02CC:  NOP
02CD:  BSF    06.1
02CE:  NOP
02CF:  BCF    03.5
02D0:  BCF    06.0
02D1:  BSF    03.5
02D2:  BCF    06.0
02D3:  NOP
02D4:  BCF    03.5
02D5:  BCF    06.1
02D6:  BSF    03.5
02D7:  BCF    06.1
....................    I2C_Write(0xAA); 
02D8:  MOVLW  AA
02D9:  BCF    03.5
02DA:  MOVWF  2C
02DB:  CALL   084
....................    I2C_write(0x46); 
02DC:  MOVLW  46
02DD:  MOVWF  2C
02DE:  CALL   084
....................    
....................    i2c_start(); 
02DF:  BSF    03.5
02E0:  BSF    06.0
02E1:  NOP
02E2:  BSF    06.1
02E3:  NOP
02E4:  BCF    03.5
02E5:  BTFSS  06.1
02E6:  GOTO   2E5
02E7:  BCF    06.0
02E8:  BSF    03.5
02E9:  BCF    06.0
02EA:  NOP
02EB:  BCF    03.5
02EC:  BCF    06.1
02ED:  BSF    03.5
02EE:  BCF    06.1
....................    I2C_Write(0xAB); 
02EF:  MOVLW  AB
02F0:  BCF    03.5
02F1:  MOVWF  2C
02F2:  CALL   084
....................     
....................    VL=I2C_read(0); 
02F3:  CLRF   77
02F4:  CALL   0CC
02F5:  MOVF   78,W
02F6:  MOVWF  2B
....................    i2c_stop();   
02F7:  BSF    03.5
02F8:  BCF    06.0
02F9:  NOP
02FA:  BSF    06.1
02FB:  BCF    03.5
02FC:  BTFSS  06.1
02FD:  GOTO   2FC
02FE:  NOP
02FF:  GOTO   300
0300:  NOP
0301:  BSF    03.5
0302:  BSF    06.0
0303:  NOP
....................        
....................     
.................... delay_ms (1); 
0304:  MOVLW  01
0305:  BCF    03.5
0306:  MOVWF  2C
0307:  CALL   0B8
....................   
....................   printf("VL %lX \r\n", VL);  
0308:  MOVLW  56
0309:  MOVWF  30
030A:  CALL   01A
030B:  MOVLW  4C
030C:  MOVWF  30
030D:  CALL   01A
030E:  MOVLW  20
030F:  MOVWF  30
0310:  CALL   01A
0311:  MOVF   2B,W
0312:  MOVWF  2C
0313:  MOVLW  37
0314:  MOVWF  2D
0315:  CALL   0FF
0316:  MOVLW  20
0317:  MOVWF  30
0318:  CALL   01A
0319:  MOVLW  0D
031A:  MOVWF  30
031B:  CALL   01A
031C:  MOVLW  0A
031D:  MOVWF  30
031E:  CALL   01A
....................    printf("LH %lX \r\n", VH);  
031F:  MOVLW  4C
0320:  MOVWF  30
0321:  CALL   01A
0322:  MOVLW  48
0323:  MOVWF  30
0324:  CALL   01A
0325:  MOVLW  20
0326:  MOVWF  30
0327:  CALL   01A
0328:  MOVF   2A,W
0329:  MOVWF  2C
032A:  MOVLW  37
032B:  MOVWF  2D
032C:  CALL   0FF
032D:  MOVLW  20
032E:  MOVWF  30
032F:  CALL   01A
0330:  MOVLW  0D
0331:  MOVWF  30
0332:  CALL   01A
0333:  MOVLW  0A
0334:  MOVWF  30
0335:  CALL   01A
....................      
....................    
....................  
....................  
....................    
....................  
.................... if(VH==0x00) 
0336:  MOVF   2A,F
0337:  BTFSS  03.2
0338:  GOTO   355
.................... { 
.................... LSB=LSB-1; 
0339:  MOVLW  01
033A:  SUBWF  27,F
.................... printf("Vysledne LSB %lX \r\n", LSB);  
033B:  MOVLW  10
033C:  BSF    03.6
033D:  MOVWF  0D
033E:  MOVLW  00
033F:  MOVWF  0F
0340:  BCF    03.0
0341:  MOVLW  0D
0342:  BCF    03.6
0343:  MOVWF  2C
0344:  GOTO   120
0345:  MOVF   27,W
0346:  MOVWF  2C
0347:  MOVLW  37
0348:  MOVWF  2D
0349:  CALL   0FF
034A:  MOVLW  20
034B:  MOVWF  30
034C:  CALL   01A
034D:  MOVLW  0D
034E:  MOVWF  30
034F:  CALL   01A
0350:  MOVLW  0A
0351:  MOVWF  30
0352:  CALL   01A
.................... while(TRUE) 
.................... { 
.................... } 
0353:  GOTO   353
.................... } 
....................  
.................... else 
0354:  GOTO   38E
.................... { 
....................   
....................   
.................... i2c_start();//blockdata 
0355:  BSF    03.5
0356:  BSF    06.0
0357:  NOP
0358:  BSF    06.1
0359:  NOP
035A:  BCF    03.5
035B:  BCF    06.0
035C:  BSF    03.5
035D:  BCF    06.0
035E:  NOP
035F:  BCF    03.5
0360:  BCF    06.1
0361:  BSF    03.5
0362:  BCF    06.1
....................    I2C_Write(0xAA); 
0363:  MOVLW  AA
0364:  BCF    03.5
0365:  MOVWF  2C
0366:  CALL   084
....................    I2C_write(0x45); 
0367:  MOVLW  45
0368:  MOVWF  2C
0369:  CALL   084
....................    
....................    i2c_start(); 
036A:  BSF    03.5
036B:  BSF    06.0
036C:  NOP
036D:  BSF    06.1
036E:  NOP
036F:  BCF    03.5
0370:  BTFSS  06.1
0371:  GOTO   370
0372:  BCF    06.0
0373:  BSF    03.5
0374:  BCF    06.0
0375:  NOP
0376:  BCF    03.5
0377:  BCF    06.1
0378:  BSF    03.5
0379:  BCF    06.1
....................    I2C_Write(0xAA); 
037A:  MOVLW  AA
037B:  BCF    03.5
037C:  MOVWF  2C
037D:  CALL   084
....................    I2C_write(0x00); 
037E:  CLRF   2C
037F:  CALL   084
....................    i2c_stop();  
0380:  BSF    03.5
0381:  BCF    06.0
0382:  NOP
0383:  BSF    06.1
0384:  BCF    03.5
0385:  BTFSS  06.1
0386:  GOTO   385
0387:  NOP
0388:  GOTO   389
0389:  NOP
038A:  BSF    03.5
038B:  BSF    06.0
038C:  NOP
038D:  BCF    03.5
....................  
....................  
....................  
....................  
....................     
....................     
.................... }  
....................  
.................... i2c_start();//blockdata 
038E:  BSF    03.5
038F:  BSF    06.0
0390:  NOP
0391:  BSF    06.1
0392:  NOP
0393:  BCF    03.5
0394:  BCF    06.0
0395:  BSF    03.5
0396:  BCF    06.0
0397:  NOP
0398:  BCF    03.5
0399:  BCF    06.1
039A:  BSF    03.5
039B:  BCF    06.1
....................    I2C_Write(0xAA); 
039C:  MOVLW  AA
039D:  BCF    03.5
039E:  MOVWF  2C
039F:  CALL   084
....................    I2C_write(0x60); 
03A0:  MOVLW  60
03A1:  MOVWF  2C
03A2:  CALL   084
....................    
....................    i2c_start(); 
03A3:  BSF    03.5
03A4:  BSF    06.0
03A5:  NOP
03A6:  BSF    06.1
03A7:  NOP
03A8:  BCF    03.5
03A9:  BTFSS  06.1
03AA:  GOTO   3A9
03AB:  BCF    06.0
03AC:  BSF    03.5
03AD:  BCF    06.0
03AE:  NOP
03AF:  BCF    03.5
03B0:  BCF    06.1
03B1:  BSF    03.5
03B2:  BCF    06.1
....................    I2C_Write(0xAA); 
03B3:  MOVLW  AA
03B4:  BCF    03.5
03B5:  MOVWF  2C
03B6:  CALL   084
....................    I2C_write(LSB); 
03B7:  MOVF   27,W
03B8:  MOVWF  2C
03B9:  CALL   084
....................    i2c_stop(); 
03BA:  BSF    03.5
03BB:  BCF    06.0
03BC:  NOP
03BD:  BSF    06.1
03BE:  BCF    03.5
03BF:  BTFSS  06.1
03C0:  GOTO   3BF
03C1:  NOP
03C2:  GOTO   3C3
03C3:  NOP
03C4:  BSF    03.5
03C5:  BSF    06.0
03C6:  NOP
....................  
.................... LSB=LSB+1; 
03C7:  MOVLW  01
03C8:  BCF    03.5
03C9:  ADDWF  27,F
....................  
.................... delay_ms (100); 
03CA:  MOVLW  64
03CB:  MOVWF  2C
03CC:  CALL   0B8
....................  
.................... } 
03CD:  GOTO   1DB
....................  
....................  }  
....................   
03CE:  SLEEP

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