ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Comandos Para Microcontrolador


Enviado por   •  6 de Febrero de 2013  •  289 Palabras (2 Páginas)  •  592 Visitas

Página 1 de 2

Instrucciones orientadas a registros

MNEMÓNICO

OPERANDOS DESCRIPCIÓN CÓDIGO OP BANDERAS NCIC NOTAS

ADDWF

f,d w + f → d 00 0111 dfff ffff C, DC, Z 1 1,2

ANDWF

f,d w AND f → d 00 0101 dfff ffff Z 1 1,2

CLRF

f 00 h → f 00 0001 1fff ffff Z 1 2

CLRW

- 00 h → w 00 0001 0xxx xxxx Z 1 -

COMF

f,d Complemento de f → d 00 1001 dfff ffff Z 1 1,2

DECF

f,d f - 1 → d 00 0011 dfff ffff Z 1 1,2

DECFSZ

f,d f - 1 → d (si es 0 salta) 00 1011 dfff ffff Ninguna 1(2) 1,2,3

INCF

f,d f + 1 → d 00 1010 dfff ffff Z 1 1,2

INCFSZ

f,d f + 1 → d (si es 0 salta) 00 1111 dfff ffff Ninguna 1(2) 1,2,3

IORWF

f,d w OR f → d 00 0100 dfff ffff Z 1 1,2

MOVF

f,d f → d 00 1000 dfff ffff Z 1 1,2

MOVWF

f w → f 00 0000 1fff ffff Ninguna 1 -

NOP

- No operación 00 0000 0xx0 0000 Ninguna 1 -

RLF

f,d Rota f izq por carry → d 00 1101 dfff ffff C 1 1,2

RRF

f,d Rota f dcha por carry → d 00 1100 dfff ffff C 1 1,2

SUBWF

f,d f - w → d 00 0010 dfff ffff C,DC,Z 1 1,2

SWAPF

f,d Intercambia nibbles de f → d 00 1110 dfff ffff Ninguna 1 1,2

XORWF

f,d w XOR f → d 00 0110 dfff ffff Z 1 1,2

Instrucciones orientadas a bit

MNEMÓNICO

OPERANDOS DESCRIPCIÓN CÓDIGO OP BANDERAS NCIC NOTAS

BCF

f,b Pone a 0 bit b de registro f 01 00bb bfff ffff Ninguna 1 1,2

BSF

f,b Pone a 1 bit b de registro f 01

...

Descargar como (para miembros actualizados)  txt (2.4 Kb)  
Leer 1 página más »
Disponible sólo en Clubensayos.com