Skip to content

Commit

Permalink
Interrupt Service Routine in 'C99' and 'C90' C standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Choaib-ELMADI committed May 20, 2024
1 parent 70472e8 commit 69388f4
Show file tree
Hide file tree
Showing 23 changed files with 4,543 additions and 3,009 deletions.
2,154 changes: 1,022 additions & 1,132 deletions MPLABX Projects/TimerInterrupt.X/build/default/production/main.i

Large diffs are not rendered by default.

1,287 changes: 1,063 additions & 224 deletions MPLABX Projects/TimerInterrupt.X/build/default/production/main.p1

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
build/default/production/main.p1: \
main.c
build/default/production/main.d \
build/default/production/main.p1: \
main.c \
C:/Program\ Files/Microchip/MPLABX/v6.15/packs/Microchip/PIC16Fxxx_DFP/1.4.149/xc8/pic/include/language_support.h \
C:/Program\ Files/Microchip/MPLABX/v6.15/packs/Microchip/PIC16Fxxx_DFP/1.4.149/xc8/pic/include/pic.h \
C:/Program\ Files/Microchip/MPLABX/v6.15/packs/Microchip/PIC16Fxxx_DFP/1.4.149/xc8/pic/include/pic_chip_select.h \
C:/Program\ Files/Microchip/MPLABX/v6.15/packs/Microchip/PIC16Fxxx_DFP/1.4.149/xc8/pic/include/proc/pic16f877a.h \
C:/Program\ Files/Microchip/MPLABX/v6.15/packs/Microchip/PIC16Fxxx_DFP/1.4.149/xc8/pic/include/xc.h \
C:/Program\ Files/Microchip/MPLABX/v6.15/packs/Microchip/PIC16Fxxx_DFP/1.4.149/xc8/pic/include/htc.h \
C:/Program\ Files/Microchip/MPLABX/v6.15/packs/Microchip/PIC16Fxxx_DFP/1.4.149/xc8/pic/include/__at.h \
C:/Program\ Files/Microchip/MPLABX/v6.15/packs/Microchip/PIC16Fxxx_DFP/1.4.149/xc8/pic/include/builtins.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cstackCOMMON COMMON 1 73 73 3 1 1
intentry CODE 0 4 4 A 2 1
bssCOMMON COMMON 1 70 70 3 1 1
config CONFIG 4 2007 2007 1 2 1
$C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
$C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
reset_vec CODE 0 0 0 3 2 1
end_init CODE 0 E E 3 2 1
config CONFIG 4 2007 2007 1 2 1
Expand Down Expand Up @@ -68,14 +68,14 @@ STRING BF-1FFF 2
# All other numeric values are in decimal.
%LINETAB
$dist/default/production\TimerInterrupt.X.production.o
11 cinit CODE >378:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_1.s
11 cinit CODE >381:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_1.s
11 cinit CODE >398:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_1.s
12 cinit CODE >399:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_1.s
13 cinit CODE >400:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_1.s
14 cinit CODE >406:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_1.s
14 cinit CODE >408:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_1.s
15 cinit CODE >409:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_1.s
11 cinit CODE >378:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_1.s
11 cinit CODE >381:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_1.s
11 cinit CODE >398:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_1.s
12 cinit CODE >399:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_1.s
13 cinit CODE >400:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_1.s
14 cinit CODE >406:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_1.s
14 cinit CODE >408:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_1.s
15 cinit CODE >409:C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_1.s
4 intentry CODE >75:C:\Users\Choaib ELMADI\Downloads\D.I.F.Y\C - CPP Programming\PIC16F877A\MPLABX Projects\TimerInterrupt.X\main.c
8D text1 CODE >75:C:\Users\Choaib ELMADI\Downloads\D.I.F.Y\C - CPP Programming\PIC16F877A\MPLABX Projects\TimerInterrupt.X\main.c
8D text1 CODE >77:C:\Users\Choaib ELMADI\Downloads\D.I.F.Y\C - CPP Programming\PIC16F877A\MPLABX Projects\TimerInterrupt.X\main.c
Expand Down Expand Up @@ -154,33 +154,33 @@ _T1CONbits 10 0 ABS 0 - dist/default/production\TimerInterrupt.X.production.o
__L__absolute__ 0 0 ABS 0 __absolute__ -
__Hstrings 0 0 ABS 0 strings -
_TMR0 1 0 ABS 0 - dist/default/production\TimerInterrupt.X.production.o
___sp 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___sp 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
_main 30 0 CODE 0 maintext dist/default/production\TimerInterrupt.X.production.o
btemp 7E 0 ABS 0 - dist/default/production\TimerInterrupt.X.production.o
___stack_hi 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___stack_lo 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
start 1C 0 CODE 0 init C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___stack_hi 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
___stack_lo 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
start 1C 0 CODE 0 init C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
__end_of_timersISR 17E 0 CODE 0 text1 dist/default/production\TimerInterrupt.X.production.o
__HbssCOMMON 0 0 ABS 0 bssCOMMON -
__Hpowerup 0 0 CODE 0 powerup -
_timersISR 11A 0 CODE 0 text1 dist/default/production\TimerInterrupt.X.production.o
intlevel0 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
intlevel1 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
intlevel2 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
intlevel3 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
intlevel4 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
intlevel5 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
intlevel0 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
intlevel1 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
intlevel2 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
intlevel3 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
intlevel4 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
intlevel5 0 0 ENTRY 0 functab C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
__LbssCOMMON 0 0 ABS 0 bssCOMMON -
wtemp0 7E 0 ABS 0 - dist/default/production\TimerInterrupt.X.production.o
__Hfunctab 0 0 ENTRY 0 functab -
__Hclrtext 0 0 ABS 0 clrtext -
__Lmaintext 0 0 ABS 0 maintext -
_OPTION_REG 81 0 ABS 0 - dist/default/production\TimerInterrupt.X.production.o
___stackhi 0 0 ABS 0 - C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___stacklo 0 0 ABS 0 - C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___stackhi 0 0 ABS 0 - C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
___stacklo 0 0 ABS 0 - C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
start_initialization 22 0 CODE 0 cinit dist/default/production\TimerInterrupt.X.production.o
_TRISCbits 87 0 ABS 0 - dist/default/production\TimerInterrupt.X.production.o
___int_sp 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___int_sp 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
__Hbank0 0 0 ABS 0 bank0 -
__Hbank1 0 0 ABS 0 bank1 -
__Hbank2 0 0 ABS 0 bank2 -
Expand Down Expand Up @@ -223,7 +223,7 @@ __S1 76 0 ABS 0 - -
__S3 0 0 ABS 0 - -
saved_w 7E 0 ABS 0 - dist/default/production\TimerInterrupt.X.production.o
__Lintentry 8 0 CODE 0 intentry -
reset_vec 0 0 CODE 0 reset_vec C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
reset_vec 0 0 CODE 0 reset_vec C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
_PIE1bits 8C 0 ABS 0 - dist/default/production\TimerInterrupt.X.production.o
__pmaintext 30 0 CODE 0 maintext dist/default/production\TimerInterrupt.X.production.o
__Lcommon 0 0 ABS 0 common -
Expand All @@ -249,8 +249,8 @@ __Leeprom_data 0 0 EEDATA 3 eeprom_data -
__H__absolute__ 0 0 ABS 0 __absolute__ -
__Lreset_vec 0 0 CODE 0 reset_vec -
_timer0Counter 72 0 COMMON 1 bssCOMMON dist/default/production\TimerInterrupt.X.production.o
___heap_hi 0 0 ABS 0 - C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___heap_lo 0 0 ABS 0 - C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___heap_hi 0 0 ABS 0 - C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
___heap_lo 0 0 ABS 0 - C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
__end_of__initialization 28 0 CODE 0 cinit dist/default/production\TimerInterrupt.X.production.o
__Lfunctab 0 0 ENTRY 0 functab -
__Lclrtext 0 0 ABS 0 clrtext -
Expand All @@ -265,8 +265,8 @@ interrupt_function 8 0 CODE 0 intentry dist/default/production\TimerInterrupt.X.
__pintentry 8 0 CODE 0 intentry dist/default/production\TimerInterrupt.X.production.o
__initialization 22 0 CODE 0 cinit dist/default/production\TimerInterrupt.X.production.o
_T2CONbits 12 0 ABS 0 - dist/default/production\TimerInterrupt.X.production.o
___int_stack_hi 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___int_stack_lo 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_12.o
___int_stack_hi 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
___int_stack_lo 0 0 STACK 2 stack C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_13.o
# %SPLITSTAB Section
# This section enumerates all the psect splits performed by the assembler.
# The beginning of the section is indicated by %SPLITSTAB.
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
### HEXMate logfile and output summary ###

### Command-line arguments ###
C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_3.o
C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_3.o
-Odist/default/production\TimerInterrupt.X.production.hex
-logfile=dist/default/production\TimerInterrupt.X.production.hxl
-addressing=2

### Memory Usage ###
Input file ranges:
0h - 5h (C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_3.o)
8h - 17Dh (C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_3.o)
400Eh - 400Fh (C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_3.o)
0h - 5h (C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_3.o)
8h - 17Dh (C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_3.o)
400Eh - 400Fh (C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_3.o)
Unused ranges:
6h - 7h
17Eh - 400Dh

### Hex Memory Map ###
Legend:
-- = Unused memory
H1 = Input file (C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsfsg.\driver_tmp_3.o)
H1 = Input file (C:\Users\CHOAIB~1\AppData\Local\Temp\xcAsi3g.\driver_tmp_3.o)
----------------------------------------------------------
| 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
----------------------------------------------------------
Expand Down
Loading

0 comments on commit 69388f4

Please sign in to comment.