CCS PCH C Compiler, Version 5.048, 26145               13-Mar-23 15:26

               Filename:   C:\Users\soac-gj2\Desktop\signals and systems\i2c\ccs\main.lst

               ROM used:   122 bytes (0%)
                           Largest free fragment is 49030
               RAM used:   5 (0%) at main() level
                           6 (0%) worst case
               Stack used: 0 locations
               Stack size: 31

*
0000:  GOTO   002A
.................... #include <main.h> 
.................... #include <18F2525.h> 
.................... //////////// Standard Header file for the PIC18F2525 device //////////////// 
.................... /////////////////////////////////////////////////////////////////////////// 
.................... ////        (C) Copyright 1996, 2014 Custom Computer Services          //// 
.................... //// This source code may only be used by licensed users of the CCS C  //// 
.................... //// compiler.  This source code may only be distributed to other      //// 
.................... //// licensed users of the CCS C compiler.  No other use, reproduction //// 
.................... //// or distribution is permitted without written permission.          //// 
.................... //// Derivative programs created using this software in object code    //// 
.................... //// form are not restricted in any way.                               //// 
.................... /////////////////////////////////////////////////////////////////////////// 
.................... #device PIC18F2525 
....................  
.................... #list 
....................  
.................... #device ADC=10 
....................  
.................... #FUSES FCMEN                 	//Fail-safe clock monitor enabled 
.................... #FUSES IESO                  	//Internal External Switch Over mode enabled 
.................... #FUSES PUT                   	//Power Up Timer 
.................... #FUSES BROWNOUT              	//Reset when brownout detected 
.................... #FUSES BORV27                	//Brownout reset at 2.7V 
.................... #FUSES NOPBADEN              	//PORTB pins are configured as digital I/O on RESET 
.................... #FUSES NOLPT1OSC             	//Timer1 configured for higher power operation 
.................... #FUSES NOMCLR                	//Master Clear pin used for I/O 
.................... #FUSES STVREN                	//Stack full/underflow will cause reset 
.................... #FUSES NOLVP                 	//No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O 
.................... #FUSES NOXINST               	//Extended set extension and Indexed Addressing mode disabled (Legacy mode) 
.................... #FUSES NOPROTECT             	//Code not protected from reading 
.................... #FUSES NOCPB                 	//No Boot Block code protection 
.................... #FUSES NOCPD                 	//No EE protection 
.................... #FUSES NOWRT                 	//Program memory not write protected 
.................... #FUSES NOWRTC                	//Configuration registers not write protected 
.................... #FUSES NOWRTB                	//Boot block not write protected 
.................... #FUSES NOWRTD                	//Data EEPROM not write protected 
.................... #FUSES NOEBTR                	//Memory not protected from table reads 
.................... #FUSES NOEBTRB               	//Boot block not protected from table reads 
....................  
.................... #use delay(internal=8MHz) 
0004:  CLRF   FEA
0006:  MOVLW  06
0008:  MOVWF  FE9
000A:  MOVF   FEF,W
000C:  BZ    0028
000E:  MOVLW  02
0010:  MOVWF  01
0012:  CLRF   00
0014:  DECFSZ 00,F
0016:  BRA    0014
0018:  DECFSZ 01,F
001A:  BRA    0012
001C:  MOVLW  97
001E:  MOVWF  00
0020:  DECFSZ 00,F
0022:  BRA    0020
0024:  DECFSZ FEF,F
0026:  BRA    000E
0028:  RETURN 0
.................... #use i2c(Master,Fast,sda=PIN_C4,scl=PIN_C3,force_hw) 
....................  
.................... #define LED PIN_B7 
.................... #define DELAY 500 
....................  
....................  
....................  
....................  
.................... void main() 
002A:  CLRF   FF8
002C:  BCF    FD0.7
002E:  MOVLW  70
0030:  MOVWF  FD3
0032:  CLRF   F9B
0034:  MOVF   FD3,W
0036:  BSF    F94.3
0038:  BSF    F94.4
003A:  MOVLW  04
003C:  MOVWF  FC8
003E:  MOVLW  28
0040:  MOVWF  FC6
0042:  BCF    FC7.7
0044:  BCF    FC7.6
0046:  MOVF   FC1,W
0048:  ANDLW  C0
004A:  IORLW  0F
004C:  MOVWF  FC1
004E:  MOVLW  07
0050:  MOVWF  FB4
.................... { 
....................  
.................... 	while(TRUE) 
.................... 	{ 
....................  
.................... 		//Example blinking LED program 
.................... 		output_low(LED); 
0052:  BCF    F93.7
0054:  BCF    F8A.7
.................... 		delay_ms(DELAY); 
0056:  MOVLW  02
0058:  MOVWF  05
005A:  MOVLW  FA
005C:  MOVWF  06
005E:  RCALL  0004
0060:  DECFSZ 05,F
0062:  BRA    005A
.................... 		output_high(LED); 
0064:  BCF    F93.7
0066:  BSF    F8A.7
.................... 		delay_ms(DELAY); 
0068:  MOVLW  02
006A:  MOVWF  05
006C:  MOVLW  FA
006E:  MOVWF  06
0070:  RCALL  0004
0072:  DECFSZ 05,F
0074:  BRA    006C
0076:  BRA    0052
....................  
.................... 		//TODO: User Code 
.................... 	} 
....................  
.................... } 
0078:  SLEEP 

Configuration Fuses:
   Word  1: C800   INTRC_IO FCMEN IESO
   Word  2: 1E16   PUT BROWNOUT BORV27 NOWDT WDT32768
   Word  3: 0100   CCP2C1 NOPBADEN NOLPT1OSC NOMCLR
   Word  4: 0081   STVREN NOLVP NOXINST NODEBUG
   Word  5: C00F   NOPROTECT NOCPB NOCPD
   Word  6: E00F   NOWRT NOWRTC NOWRTB NOWRTD
   Word  7: 400F   NOEBTR NOEBTRB
