Skip to content

Commit

Permalink
fixing timing from 1s delay to 0.25s delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jayveeangeles committed Sep 2, 2018
1 parent aa4388c commit db8e2d8
Show file tree
Hide file tree
Showing 19 changed files with 1,649 additions and 1,337 deletions.
342 changes: 342 additions & 0 deletions dist/default/production/VirtualWall_V1_PIC12F683.X.production.cmf

Large diffs are not rendered by default.

Binary file not shown.
42 changes: 42 additions & 0 deletions dist/default/production/VirtualWall_V1_PIC12F683.X.production.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
:020000000F28C7
:10000800FE00030EF0000408F1000A08F200831253
:100018007F08F300272910288301122851308316FE
:100028008F0083129F0183169F011F088F39103894
:100038009F001F1407308312990083168501051449
:10004800831285010C3083169200043083129200CB
:1000580006309300103098008316811110308312F7
:10006800950090121012901510159014E0308F0022
:100078008E018B018B120B110C1083160C148B172D
:100088000B1783129F171F13F3309F051F144C285B
:100098008312AB01AC0100302C02783003192B021B
:1000A8000318F228AF01B00100303002F030031914
:1000B8002F020318E5280530F4000030F500300859
:1000C800F7002F08F600F52074087504031D802832
:1000D80083129F149F186E281E08AA0083161E08F4
:1000E8008312A90002302A02293003192902031CAD
:1000F8007F288510802885148312AD01AE01003059
:100108002E02083003192D020318D2282D0AA40044
:100118000130A5000030A60094280310A50DA60DF7
:10012800A40B9128A2302505A70000302605A800B9
:1001380027082804031DB2281C309500A630831216
:10014800A400A40BA528103083129500D630831282
:10015800A400AE28AF28A40BAD28C4281C308312F5
:100168009500D6308312A400B928BA28A40BB82861
:10017800103083129500A6308312A400A40BC22865
:1001880001308312AD070318AE0A0030AE07003005
:100198002E02083003192D02031C8A2885188510A1
:1001A80010146300831210100130AF070318B00A4F
:1001B8000030B00700303002F03003192F02031C62
:1001C8005F280130AB070318AC0A0030AC070030D9
:1001D8002C02783003192B02031C56281F106300C9
:1001E8000F287408750403192229F901F90AF51B67
:1001F800092901300310F40DF50DFF3E031DFE28FB
:100208000130F8007808F907FB2875087702031D04
:100218000F2974087602031C17297408F60275085A
:10022800031CF703F70201300310F50CF40CFF3E32
:10023800031D18290130F902031D09297708F50063
:100248007608F40008000C1C2D290C10E0308F00F3
:100258008E017308FF0072088A0071088400700E0E
:080268008300FE0E7E0E09006A
:02400E00D4F0EC
:00000001FF
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
### Memory Usage ###
Unused memory ranges:
2h - 7h
1C2h - 400Dh
270h - 400Dh
4010h - 403Fh

dist/default/production/Virtual_Wall_V1_PIC12F683.X.production.hex ranges:
dist/default/production/VirtualWall_V1_PIC12F683.X.production.hex ranges:
0h - 1h
8h - 1C1h
8h - 26Fh
400Eh - 400Fh

### Hex Memory Map ###
Expand All @@ -21,13 +21,15 @@
T = Trailing code
& = Find & replace opcode
X = Find & delete opcode
1 = dist/default/production/Virtual_Wall_V1_PIC12F683.X.production.hex
1 = dist/default/production/VirtualWall_V1_PIC12F683.X.production.hex
00000000: 11------11111111111111111111111111111111111111111111111111111111
00000040: 1111111111111111111111111111111111111111111111111111111111111111
00000080: 1111111111111111111111111111111111111111111111111111111111111111
000000C0: 1111111111111111111111111111111111111111111111111111111111111111
00000100: 1111111111111111111111111111111111111111111111111111111111111111
00000140: 1111111111111111111111111111111111111111111111111111111111111111
00000180: 1111111111111111111111111111111111111111111111111111111111111111
000001C0: 11--------------------------------------------------------------
000001C0: 1111111111111111111111111111111111111111111111111111111111111111
00000200: 1111111111111111111111111111111111111111111111111111111111111111
00000240: 111111111111111111111111111111111111111111111111----------------
00004000: --------------11------------------------------------------------
953 changes: 953 additions & 0 deletions dist/default/production/VirtualWall_V1_PIC12F683.X.production.lst

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ Microchip MPLAB XC8 Compiler V1.45 ()
Linker command line:

-W-3 --edf=/Applications/microchip/xc8/v1.45/dat/en_msgs.txt -cs \
-h+dist/default/production/Virtual_Wall_V1_PIC12F683.X.production.sym \
--cmf=dist/default/production/Virtual_Wall_V1_PIC12F683.X.production.cmf \
-z -Q12F683 -o/tmp/xcREfiUxN \
-Mdist/default/production/Virtual_Wall_V1_PIC12F683.X.production.map -E1 \
-ver=XC8 -ASTACK=02Bh-06fh -pstack=STACK -ACODE=00h-07FFh \
-h+dist/default/production/VirtualWall_V1_PIC12F683.X.production.sym \
--cmf=dist/default/production/VirtualWall_V1_PIC12F683.X.production.cmf \
-z -Q12F683 -o/tmp/xcB5WySTI \
-Mdist/default/production/VirtualWall_V1_PIC12F683.X.production.map -E1 \
-ver=XC8 -ASTACK=031h-06fh -pstack=STACK -ACODE=00h-07FFh \
-ASTRCODE=00h-07FFh -ASTRING=00h-0FFhx8 -ACONST=00h-0FFhx8 \
-AENTRY=00h-0FFhx8 -ACOMMON=070h-07Fh -ABANK0=020h-06Fh -ABANK1=0A0h-0BFh \
-ARAM=020h-06Fh,0A0h-0BFh -AABS1=020h-07Fh,0A0h-0BFh -ASFR0=00h-01Fh \
-ASFR1=080h-09Fh -preset_vec=00h,intentry=04h,init,end_init \
-ppowerup=CODE -pcinit=CODE -pfunctab=ENTRY -ACONFIG=02007h-02007h \
-pconfig=CONFIG -DCONFIG=2 -AIDLOC=02000h-02003h -pidloc=IDLOC -DIDLOC=2 \
-AEEDATA=00h-0FFh/02100h -peeprom_data=EEDATA -DEEDATA=2 -DCODE=2 \
-DSTRCODE=2 -DSTRING=2 -DCONST=2 -DENTRY=2 -k /tmp/xcx6AmZWd.obj \
dist/default/production/Virtual_Wall_V1_PIC12F683.X.production.obj
-DSTRCODE=2 -DSTRING=2 -DCONST=2 -DENTRY=2 -k /tmp/xckfHOh88.obj \
dist/default/production/VirtualWall_V1_PIC12F683.X.production.obj

Object code version is 3.11

Expand All @@ -25,17 +25,18 @@ Machine type is 12F683


Name Link Load Length Selector Space Scale
/tmp/xcx6AmZWd.obj
/tmp/xckfHOh88.obj
end_init F F 1 8 0
reset_vec 0 0 1 0 0
config 2007 2007 1 400E 0
dist/default/production/Virtual_Wall_V1_PIC12F683.X.production.obj
dist/default/production/VirtualWall_V1_PIC12F683.X.production.obj
cinit 10 10 2 8 0
intentry 4 4 B 8 0
text1 D0 D0 11 8 0
maintext 12 12 BE 8 0
cstackBANK0 20 20 B 20 1
cstackCOMMON 70 70 8 70 1
text2 127 127 11 8 0
text1 F5 F5 32 8 0
maintext 12 12 E3 8 0
cstackBANK0 20 20 11 20 1
cstackCOMMON 70 70 A 70 1

TOTAL Name Link Load Length Space
CLASS STACK
Expand All @@ -45,8 +46,9 @@ TOTAL Name Link Load Length Sp
cinit 10 10 2 0
intentry 4 4 B 0
reset_vec 0 0 1 0
text1 D0 D0 11 0
maintext 12 12 BE 0
text2 127 127 11 0
text1 F5 F5 32 0
maintext 12 12 E3 0

CLASS STRCODE

Expand All @@ -57,10 +59,10 @@ TOTAL Name Link Load Length Sp
CLASS ENTRY

CLASS COMMON
cstackCOMMON 70 70 8 1
cstackCOMMON 70 70 A 1

CLASS BANK0
cstackBANK0 20 20 B 1
cstackBANK0 20 20 11 1

CLASS BANK1

Expand All @@ -85,38 +87,39 @@ TOTAL Name Link Load Length Sp
SEGMENTS Name Load Length Top Selector Space Class Delta

reset_vec 000000 000001 000001 0 0 CODE 2
intentry 000004 0000DD 0000E1 8 0 CODE 2
cstackBANK0 000020 00000B 00002B 20 1 BANK0 1
cstackCOMMON 000070 000008 000078 70 1 COMMON 1
intentry 000004 000134 000138 8 0 CODE 2
cstackBANK0 000020 000011 000031 20 1 BANK0 1
cstackCOMMON 000070 00000A 00007A 70 1 COMMON 1
config 002007 000001 002008 400E 0 CONFIG 2


UNUSED ADDRESS RANGES

Name Unused Largest block Delta
BANK0 002B-006F 45 1
BANK0 0031-006F 3F 1
BANK1 00A0-00BF 20 1
CODE 0001-0003 3 2
00E1-07FF 71F
COMMON 0078-007D 6 1
0138-07FF 6C8
COMMON 007A-007D 4 1
CONST 0001-0003 3 2
00E1-07FF 100
0138-07FF 100
EEDATA 2100-21FF 100 2
ENTRY 0001-0003 3 2
00E1-07FF 100
0138-07FF 100
IDLOC 2000-2003 4 2
RAM 002B-006F 45 1
RAM 0031-006F 3F 1
00A0-00BF 20
SFR0 0000-001F 20 1
SFR1 0080-009F 20 1
STACK 002B-006F 45 1
STACK 0031-006F 3F 1
STRCODE 0001-0003 3 2
00E1-07FF 71F
0138-07FF 6C8
STRING 0001-0003 3 2
00E1-07FF 100
0138-07FF 100

Symbol Table

?___lwmod cstackCOMMON 0074
_ADCON0 (abs) 001F
_ADCON0bits (abs) 001F
_ADRESH (abs) 001E
Expand Down Expand Up @@ -174,7 +177,7 @@ __Hreset_vec reset_vec 0001
__Hsfr0 sfr0 0000
__Hsfr1 sfr1 0000
__Hspace_0 (abs) 2008
__Hspace_1 (abs) 0078
__Hspace_1 (abs) 007A
__Hspace_2 (abs) 0000
__Hspace_3 (abs) 0000
__Hstack stack 0000
Expand Down Expand Up @@ -210,24 +213,31 @@ __Lstack stack 0000
__Lstrings strings 0000
__Ltext text 0000
__S0 (abs) 2008
__S1 (abs) 0078
__S1 (abs) 007A
__S2 (abs) 0000
__S3 (abs) 0000
___int_sp stack 0000
___latbits (abs) 0000
___lwmod text1 00F5
___lwmod@counter cstackCOMMON 0079
___lwmod@dividend cstackCOMMON 0076
___lwmod@divisor cstackCOMMON 0074
___sp stack 0000
__end_of___lwmod text1 0127
__end_of__initialization cinit 0010
__end_of_isr text1 00E1
__end_of_main maintext 00D0
__end_of_isr text2 0138
__end_of_main maintext 00F5
__initialization cinit 0010
__pcstackBANK0 cstackBANK0 0020
__pcstackCOMMON cstackCOMMON 0070
__pintentry intentry 0004
__pmaintext maintext 0012
__ptext1 text1 00D0
__ptext1 text1 00F5
__ptext2 text2 0127
__size_of___lwmod (abs) 0000
__size_of_isr (abs) 0000
__size_of_main (abs) 0000
_isr text1 00D0
_isr text2 0127
_main maintext 0012
btemp (abs) 007E
end_of_initialization cinit 0010
Expand All @@ -238,10 +248,11 @@ intlevel2 functab 0000
intlevel3 functab 0000
intlevel4 functab 0000
intlevel5 functab 0000
main@adval cstackBANK0 0025
main@bitValue cstackBANK0 0023
main@i cstackBANK0 0029
main@timeCounter cstackBANK0 0027
main@adval cstackBANK0 0029
main@bitValue cstackBANK0 0027
main@i cstackBANK0 002D
main@minutesCounter cstackBANK0 002B
main@secondsCounter cstackBANK0 002F
reset_vec reset_vec 0000
saved_w (abs) 007E
stackhi (abs) 0000
Expand All @@ -255,17 +266,48 @@ FUNCTION INFORMATION:

*************** function _main *****************
Defined at:
line 47 in file "main.c"
line 48 in file "main.c"
Parameters: Size Location Type
argc 2 4[COMMON] int
argv 2 6[COMMON] PTR PTR unsigned char
argc 2 0[BANK0 ] int
argv 2 2[BANK0 ] PTR PTR unsigned char
Auto vars: Size Location Type
i 2 9[BANK0 ] unsigned int
timeCounter 2 7[BANK0 ] unsigned int
adval 2 5[BANK0 ] unsigned int
bitValue 2 3[BANK0 ] unsigned int
secondsCount 2 15[BANK0 ] unsigned int
i 2 13[BANK0 ] unsigned int
minutesCount 2 11[BANK0 ] unsigned int
adval 2 9[BANK0 ] unsigned int
bitValue 2 7[BANK0 ] unsigned int
Return value: Size Location Type
2 4[COMMON] int
2 0[BANK0 ] int
Registers used:
wreg, status,2, status,0, pclath, cstack
Tracked objects:
On entry :
On exit :
Unchanged:
Data sizes: COMMON BANK0 BANK1
Params: 0 4 0
Locals: 0 10 0
Temps: 0 3 0
Totals: 0 17 0
Total ram usage: 17 bytes
Hardware stack levels required when called: 2
This function calls:
___lwmod
This function is called by:
Startup code after reset
This function uses a non-reentrant model


*************** function ___lwmod *****************
Defined at:
line 6 in file "/Applications/microchip/xc8/v1.45/sources/common/lwmod.c"
Parameters: Size Location Type
divisor 2 4[COMMON] unsigned int
dividend 2 6[COMMON] unsigned int
Auto vars: Size Location Type
counter 1 9[COMMON] unsigned char
Return value: Size Location Type
2 4[COMMON] unsigned int
Registers used:
wreg, status,2, status,0
Tracked objects:
Expand All @@ -274,21 +316,22 @@ FUNCTION INFORMATION:
Unchanged:
Data sizes: COMMON BANK0 BANK1
Params: 4 0 0
Locals: 0 8 0
Temps: 0 3 0
Totals: 4 11 0
Total ram usage: 15 bytes
Locals: 1 0 0
Temps: 1 0 0
Totals: 6 0 0
Total ram usage: 6 bytes
Hardware stack levels used: 1
Hardware stack levels required when called: 1
This function calls:
Nothing
This function is called by:
Startup code after reset
_main
This function uses a non-reentrant model


*************** function _isr *****************
Defined at:
line 35 in file "main.c"
line 36 in file "main.c"
Parameters: Size Location Type
None
Auto vars: Size Location Type
Expand Down Expand Up @@ -319,14 +362,19 @@ Total ram usage: 4 bytes
MODULE INFORMATION

Module Function Class Link Load Size
/Applications/microchip/xc8/v1.45/sources/common/lwmod.c
___lwmod CODE 00F5 0000 51

/Applications/microchip/xc8/v1.45/sources/common/lwmod.c estimated size: 51

shared
__initialization CODE 0010 0000 1

shared estimated size: 1

main.c
_main CODE 0012 0000 191
_isr CODE 00D0 0000 18
_main CODE 0012 0000 228
_isr CODE 0127 0000 18

main.c estimated size: 209
main.c estimated size: 246

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

Memory Summary:
Program space used DDh ( 221) of 800h words ( 10.8%)
Data space used 15h ( 21) of 70h bytes ( 18.8%)
Program space used 134h ( 308) of 800h words ( 15.0%)
Data space used 1Dh ( 29) of 70h bytes ( 25.9%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Data stack space used 0h ( 0) of 45h bytes ( 0.0%)
Data stack space used 0h ( 0) of 3Fh bytes ( 0.0%)
Configuration bits used 1h ( 1) of 1h word (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit db8e2d8

Please sign in to comment.