Está en la página 1de 27

PILA

REPORTE #3
NOMBRE: CRISTOBAL MORALES ALEGRIA
MATERA: MICROCONTROLADORES PARA INSTRUMENTACION Y
CONTROL
GRUPO: MA03SM-14
FECHA: 25/01/2016

Subrutina1
10h

Programa principal
00h

Inicio

01h
02h

Movf

PORTA,0

Addlw

0x08

Call

03h

Movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

Comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
Sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

Incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

Goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

00h
Pila
000

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

01h
Pila
000

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

10h
Pila
03h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

11h
Pila
03h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

12h
Pila
03h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

1Ah
Pila
13h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

03h

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

1Bh
Pila
13h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

03h

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

1Ch
Pila
13h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

03h

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

105
Pila
1Dh

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

13h

03h

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

106h
Pila
1Dh

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

13h

03h

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

107h
Pila
1Dh

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

13h

03h

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

10Bh
Pila
108h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

1Dh

13h

03h

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

10Ch
Pila
108h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

1Dh

13h

03h

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

10Dh
Pila
108h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

1Dh

13h

03h

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

10Eh
Pila
108h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

1Dh

13h

03h

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

108h
Pila
1Dh

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

13h

03h

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

109h
Pila
1Dh

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

13h

03h

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

1Dh
Pila
13h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

03h

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

1Eh
Pila
13h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

03h

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

13h
Pila
03h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

14h
Pila
03h

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

03h
Pila
000

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

04h
Pila
000

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

08h
Pila
000

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

09h
Pila
000

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

Subrutina1
10h

Programa principal
00h

inicio

01h
02h

movf

PORTA,0

addlw

0x08

call

03h

movwf
-----------------------------------------

-----------------------------------------

07h

Lazo 1

comf

Tempe,1

-----------------------------------------

0Ah
------------------------------------------

------------------------------------------

0xA5

11h

movwf

reloj

12h

call

Sub2

13h

andlw

0x0F

------------------------------------------------------Programa
principal
--------------------------1Ah
sub2

----------------------------------------Movf

----------------------------------------0x3F

14h
1Bh

return
Addlw

Tempe,1
mot1

call

Sub3

Lazo 1

incf

Tempe, 1

1Ch

-----------------------------------------

-----------------------------------------

1Dh

movwf

0x10,0

goto

Lazo1

------------------------------------------------------Programa principal
--------------------------105h
sub3

----------------------------------------addlw

----------------------------------------0xCB

1Fh
106h

return
Movwf

mot2

------------------------------------------

C
P

------------------------------------------

07h
Pila
000

PORTB

-----------------------------------------

-----------------------------------------

xorlw

sub1

-----------------------------------------

08h

sub1

000

000

000

000

Programa principal

107h

call

sub4

108h

andlw

0x10D

10Bh

addlw

0xCB

10Ch

Movwf

mot2

10Dh

Comf

Taco1,0

--------------

--------------

--------------

--------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

-----------------------------------------

19Ah
-----------------------

-----------------------

-----------------------

-----------------------

Sub4

Return

También podría gustarte