Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions __history/__history/contador.c.~3~.~1~
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include <18F4620.h>
#fuses hs,nowdt
#USE DELAY (clock=16000000)

void main(void) {
set_tris_d(0x00);
output_d(0x00);
int16 conteo;
while (TRUE) {
/*output_d(0x01);
delay_ms(500);
output_d(0x02);
delay_ms(500);
output_d(0x04);
delay_ms(500);
output_d(0x08);
delay_ms(500);
output_d(0x10);
delay_ms(500);
output_d(0x20);
delay_ms(500);
output_d(0x40);
delay_ms(500);
output_d(0x80);
delay_ms(500);*/
for(conteo=1;conteo<=128;conteo/=2)
{
output_d(conteo);
delay_ms(500);
}

}
}
33 changes: 33 additions & 0 deletions __history/contador.c.~1~
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include <18F4620.h>
#fuses hs,nowdt
#USE DELAY (clock=16000000)

void main(void) {
set_tris_d(0x00);
output_d(0x00);
int16 conteo;
while (1) {
/*output_d(0x01);
delay_ms(500);
output_d(0x02);
delay_ms(500);
output_d(0x04);
delay_ms(500);
output_d(0x08);
delay_ms(500);
output_d(0x10);
delay_ms(500);
output_d(0x20);
delay_ms(500);
output_d(0x40);
delay_ms(500);
output_d(0x80);
delay_ms(500);*/
for(conteo=1;conteo<=128;conteo/=2)
{
output_d(conteo);
delay_ms(500);
}

}
}
33 changes: 33 additions & 0 deletions __history/contador.c.~2~
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include <18F4620.h>
#fuses hs,nowdt
#USE DELAY (clock=16000000)

void main(void) {
set_tris_d(0x00);
output_d(0x00);
int16 conteo;
while (1) {
/*output_d(0x01);
delay_ms(500);
output_d(0x02);
delay_ms(500);
output_d(0x04);
delay_ms(500);
output_d(0x08);
delay_ms(500);
output_d(0x10);
delay_ms(500);
output_d(0x20);
delay_ms(500);
output_d(0x40);
delay_ms(500);
output_d(0x80);
delay_ms(500);*/
for(conteo=1;conteo<=128;conteo/=2)
{
output_d(conteo);
delay_ms(500);
}

}
}
33 changes: 33 additions & 0 deletions __history/contador.c.~3~
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include <18F4620.h>
#fuses hs,nowdt
#USE DELAY (clock=16000000)

void main(void) {
set_tris_d(0x00);
output_d(0x00);
int16 conteo;
while (TRUE) {
/*output_d(0x01);
delay_ms(500);
output_d(0x02);
delay_ms(500);
output_d(0x04);
delay_ms(500);
output_d(0x08);
delay_ms(500);
output_d(0x10);
delay_ms(500);
output_d(0x20);
delay_ms(500);
output_d(0x40);
delay_ms(500);
output_d(0x80);
delay_ms(500);*/
for(conteo=128;conteo>=1;conteo/=2)
{
output_d(conteo);
delay_ms(500);
}

}
}
1 change: 1 addition & 0 deletions __history/contador.c.~3~.err
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Error: Not found "C:\Users\L-L-Z\Downloads\Sistemas Embebidos Alumnos\Proyectos\ContadorAnillo\__history\contador.c.~3~.c"
14 changes: 7 additions & 7 deletions build/default/production/contador.STA
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

ROM used: 116/65536 (0%)
116/65536 (0%) including unused fragments
ROM used: 118/65536 (0%)
118/65536 (0%) including unused fragments

0.1 Average locations per line
12.9 Average locations per statement
13.1 Average locations per statement

RAM used: 5/3968 (0%) at main() level
8/3968 (0%) worst case
Expand All @@ -13,14 +13,14 @@ Stack size: 31

Lines Stmts % Files
----- ----- --- -----
34 9 100 contador.c
35 9 100 contador.c
834 0 0 ..\..\..\..\..\..\Program Files (x86)\PICC\devices\18F4620.h
----- -----
868 9 Total
869 9 Total

Page ROM % RAM Vol Diff Functions:
---- --- --- --- --- ---- ----------
0 40 17 1 @delay_ms1
0 42 18 1 @delay_ms1
0 72 31 1 192 3.6 main
Inline 0 @cinit1

Expand All @@ -39,7 +39,7 @@ Program metrics:
Segment Used Free
----------- ---- ----
00000-00002 4 0
00004-0FFFE 112 65420
00004-0FFFE 114 65418



7 changes: 3 additions & 4 deletions build/default/production/contador.err
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
D:\Docs\UNIVERSIDAD\sistemasembebidos\proyectos\contador\contadoranillo.X\contador.c:9:1: Warning#203 Condition always TRUE
Memory usage: ROM=0% RAM=0% - 0%
0 Errors, 1 Warnings.
Build Successful.
Memory usage: ROM=0% RAM=0% - 0%
0 Errors, 0 Warnings.
Build Successful.
10 changes: 5 additions & 5 deletions build/default/production/contador.esym
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
D G "__PCH__" 0 0 ""5.012""
D G "__DEVICE__" 0 0 ""
D G "__DATE__" 0 0 ""25-feb.-19""
D G "__TIME__" 0 0 ""16:40:20""
D G "__DATE__" 0 0 ""02-mar.-19""
D G "__TIME__" 0 0 ""13:09:27""
D G "__18F4620" 0 0 "1" "Standard Header file for the PIC18F4620 device ////////////////"
c L "set_tris_a" 1 3 6 "FUNCTION"
v L "value" 1 43 "int8" `54
Expand Down Expand Up @@ -909,9 +909,9 @@ d G "INT_LOWVOLT" 1 828 "0x00A004"
d G "INT_COMP" 1 829 "0x00A040"
d G "INT_EEPROM" 1 830 "0x00A010"
d G "INT_OSCF" 1 831 "0x00A080"
F G "main" 0 5 "void()" `638
V L "conteo" 0 8 "int16" `641
C L "main" 0 10 16 "FUNCTION"
F G "main" 0 6 "void()" `638
V L "conteo" 0 9 "int16" `641
C L "main" 0 11 16 "FUNCTION"
F B "reset_cpu" 0 0
F B "abs" 1 0
F B "sleep" 0 1
Expand Down
108 changes: 55 additions & 53 deletions build/default/production/contador.lst
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
CCS PCH C Compiler, Version 5.012, 22068 25-feb.-19 16:40
CCS PCH C Compiler, Version 5.012, 22068 02-mar.-19 13:09

Filename: D:\Docs\UNIVERSIDAD\sistemasembebidos\proyectos\contador\contadoranillo.X\build\default\production\contador.lst
Filename: D:\Docs\UNIVERSIDAD\sistemasembebidos\proyectos\ContadorAnillo\ContadorAnillo\build\default\production\contador.lst

ROM used: 116 bytes (0%)
Largest free fragment is 65420
ROM used: 118 bytes (0%)
Largest free fragment is 65418
RAM used: 5 (0%) at main() level
8 (0%) worst case
Stack used: 1 locations
Stack size: 31

*
00000: GOTO 002C
00000: GOTO 002E
.................... #include <18F4620.h>
.................... ///////////// Standard Header file for the PIC18F4620 device ////////////////
.................... ///////////////////////////////////////////////////////////////////////////
Expand All @@ -26,45 +26,47 @@ CCS PCH C Compiler, Version 5.012, 22068 25-feb.-19 16:40
....................
.................... #list
....................
.................... #fuses hs,nowdt
.................... #USE DELAY (clock=20M)
.................... #fuses HS, NOFCMEN, NOIESO, PUT, NOBROWNOUT, NOWDT
.................... #fuses NOPBADEN, MCLR, STVREN, NOLVP, NODEBUG
.................... #USE DELAY (clock=16000000)
00004: CLRF FEA
00006: MOVLW 08
00008: MOVWF FE9
0000A: MOVF FEF,W
0000C: BZ 0028
0000E: MOVLW 06
0000C: BZ 002A
0000E: MOVLW 05
00010: MOVWF 01
00012: CLRF 00
00014: DECFSZ 00,F
00016: BRA 0014
00018: DECFSZ 01,F
0001A: BRA 0012
0001C: MOVLW 7B
0001C: MOVLW 2E
0001E: MOVWF 00
00020: DECFSZ 00,F
00022: BRA 0020
00024: DECFSZ FEF,F
00026: BRA 000E
00028: GOTO 0064 (RETURN)
00024: BRA 0026
00026: DECFSZ FEF,F
00028: BRA 000E
0002A: GOTO 0066 (RETURN)
....................
.................... void main(void) {
0002C: CLRF FF8
0002E: BCF FD0.7
00030: MOVF FC1,W
00032: ANDLW C0
00034: IORLW 0F
00036: MOVWF FC1
00038: MOVLW 07
0003A: MOVWF FB4
0002E: CLRF FF8
00030: BCF FD0.7
00032: MOVF FC1,W
00034: ANDLW C0
00036: IORLW 0F
00038: MOVWF FC1
0003A: MOVLW 07
0003C: MOVWF FB4
.................... set_tris_d(0x00);
0003C: MOVLW 00
0003E: MOVWF F95
0003E: MOVLW 00
00040: MOVWF F95
.................... output_d(0x00);
00040: CLRF F95
00042: CLRF F8C
00042: CLRF F95
00044: CLRF F8C
.................... int16 conteo;
.................... while (1) {
.................... while (TRUE) {
.................... /*output_d(0x01);
.................... delay_ms(500);
.................... output_d(0x02);
Expand All @@ -81,42 +83,42 @@ CCS PCH C Compiler, Version 5.012, 22068 25-feb.-19 16:40
.................... delay_ms(500);
.................... output_d(0x80);
.................... delay_ms(500);*/
.................... for(conteo=1;conteo<=128;conteo*=2)
00044: CLRF 06
00046: MOVLW 01
00048: MOVWF 05
0004A: MOVF 06,F
0004C: BNZ 0070
0004E: MOVF 05,W
00050: SUBLW 80
00052: BNC 0070
.................... for(conteo=128;conteo>=1;conteo/=2)
00046: CLRF 06
00048: MOVLW 80
0004A: MOVWF 05
0004C: MOVF 06,F
0004E: BNZ 0056
00050: MOVF 05,W
00052: SUBLW 00
00054: BC 0072
.................... {
.................... output_d(conteo);
00054: CLRF F95
00056: MOVFF 05,F8C
00056: CLRF F95
00058: MOVFF 05,F8C
.................... delay_ms(500);
0005A: MOVLW 02
0005C: MOVWF 07
0005E: MOVLW FA
00060: MOVWF 08
00062: BRA 0004
00064: DECFSZ 07,F
00066: BRA 005E
00068: BCF FD8.0
0006A: RLCF 05,F
0006C: RLCF 06,F
0006E: BRA 004A
0005C: MOVLW 02
0005E: MOVWF 07
00060: MOVLW FA
00062: MOVWF 08
00064: BRA 0004
00066: DECFSZ 07,F
00068: BRA 0060
0006A: BCF FD8.0
0006C: RRCF 06,F
0006E: RRCF 05,F
00070: BRA 004C
.................... }
00070: BRA 0044
00072: BRA 0046
....................
.................... }
.................... }
00072: SLEEP
00074: SLEEP

Configuration Fuses:
Word 1: C200 HS FCMEN IESO
Word 2: 1E1E PUT BROWNOUT BORV21 NOWDT WDT32768
Word 3: 8700 CCP2C1 PBADEN LPT1OSC MCLR
Word 1: 0200 HS NOFCMEN NOIESO
Word 2: 1E18 PUT NOBROWNOUT BORV21 NOWDT WDT32768
Word 3: 8500 CCP2C1 NOPBADEN LPT1OSC MCLR
Word 4: 0081 STVREN NOLVP NOXINST NODEBUG
Word 5: C00F NOPROTECT NOCPB NOCPD
Word 6: E00F NOWRT NOWRTC NOWRTB NOWRTD
Expand Down
12 changes: 6 additions & 6 deletions build/default/production/contador.sym
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ FF6-FF8 @READ_PROGRAM_MEMORY.P2

ROM Allocation:
000004 @delay_ms1
00002C @cinit1
00002C main
00003C @cinit2
00002E @cinit1
00002E main
00003E @cinit2

Project Directory:
D:\Docs\UNIVERSIDAD\sistemasembebidos\proyectos\contador\contadoranillo.X\
D:\Docs\UNIVERSIDAD\sistemasembebidos\proyectos\ContadorAnillo\ContadorAnillo\

Project Files:
contador.c [25-feb.-19 16:40 CRC=C31C27BB]
contador.c [02-mar.-19 13:09 CRC=FB6A65F7]
..\..\..\..\..\..\Program Files (x86)\PICC\devices\18F4620.h [10-sep.-13 16:34 CRC=044A57BA]

Source signature=CBB0D72F
Source signature=03FF156B

Units:
contador (main)
Expand Down
Loading