Practica 8
INSTRUCCIONES DEL
MICROPROCESADOR Y/O
MICROCONTROLADOR PARA LA
ELABORACIÓN DE PROGRAMAS
Cruz ortega yotzin
Gonzales González Iván
Jiménez correa Gabriela
Landeros moreno Fernando
MercadoVargas benjamín
Vargas Vázquez Diana-
PIC 16F84A
PIC16F84A pertenece a la gama media
y es de tipo RISC; esto quiere decir
que tiene un juego de instrucciones
reducido,
en
concreto
de
35instrucciones o nemónicos que son la
base de funcionamiento del PIC. Al
igual que los bits de los registros, es
complicado memorizarlas todas.
REPERTORIO 35
INSTRUCCIONES
Las 35 instrucciones de la gama mediade
M i c ro c h i p l a s e n c o n t r a re m o s re s u m i d a s e n
la siguiente tabla. w es el
a c u m u l a d o r , f re p re s e n t a u n re g i s t ro
c u a l q u i e r a y C , D C , Z l o s fl a g s d e l
re g i s t ro S TAT U S .
A D D LW
ADDWF
A N D LW
ANDWF
BCF
BSF
BTFSC
B T F SS
CALL
CLRF
CLRW
CLRWDT
COMF
DECF
DECFSZ
GOTO
INCF
INCFSZ
I O R LW IORWF
MOVF
M O V LW
MOVWF
NOP
RETFIE
R E T LW
RETURN
RLF
RRF
SLEEP
S U B LW
S U BW F
S WA P F
TRIS
X O R LW
XO R WF
INSTRUCCIONES:
Las instrucciones fundamentalmente se
d i v i d en e n t re s t i p o s . E s t a d i v i s i ó n v i e n e
dada por el tipo de datos con los que
trabajan:
Instrucciones orientadas a los registros o bytes
(byte-oriented operations).
Instrucciones orientadas a los bits (bit-oriented
operations).
Operaciones con literales y de control (literal and
INSTRUCCIONES
ORIENTADAS A REGISTROS
INSTRUCCIONES
ORIENTADAS A BITS
INSTRUCCIONES CONLITERALES Y DE CONTROL
INSTRUCCIONES OPTION Y TRIS
E n t re l a s i n s t r u c c i o n e s a n t e r i o re s n o s e h a n
incluido
dos
que
no
pertenecen
e s t r i c t a m e n t e h a b l a n d o al re p e r t o r i o d e 3 5
instrucciones de la gama media. Estas
instrucciones
son OPTION y TRIS .
La
razón por la cual no pertenecen a estas 35
i n s t r u c c i o n e s e s p o r q u e f u e ro...
Regístrate para leer el documento completo.