download

Matakuliah
Tahun
Versi
: H0194/ Aplikasi Mikroprosesor dan Interfacing
: 2005
: 1.0
Pertemuan 12
Pemrograman Mikrokontroler 8051
Learning Outcomes
Pada akhir pertemuan ini, diharapkan mahasiswa
akan mampu :
• Mendemonstrasikan pemrograman
mikrokontroler 8051
Pemrograman Mikrokontroler
8051
• Data Transfer Instructions
• Data Processing Instructions
• Program Flow Control Instructions
Data Transfer Instructions
•
•
•
•
•
•
•
MOV
MOVC
MOVX
PUSH
POP
XCH
XCHD
Data Processing Instructions
• Arithmetic Operations
–
–
–
–
–
–
–
–
ADD
ADDC
SUBB
INC
DEC
MUL
DIV
DA
• Logical Operations
–
–
–
–
–
–
–
–
–
ANL
ORL
XRL
CLR A
CPL
RL
RR
RRC
SWAP
Data Processing Instructions
• Boolean Variable Manipulation
–
–
–
–
–
–
CLR
SETB
CPL
ANL
ORL
MOV
Program Flow Control
Instructions
•
•
•
•
•
•
•
•
ACALL
LCALL
RET
RETI
AJMP
LJMP
JMP
JC
•
•
•
•
•
•
•
•
JNC
JB
JNB
JZ
JNZ
CJNE
DJNZ
NOP