8051 Microcontroller C Programming notes by NK Sinha
8051 Microcontroller C Programming notes by NK Sinha
C Programming
Subject: MICROPROCESSORS AND MICROCONTROLLERS Code: 3160914
N. V. SINHA, LDCE
Data Transfer Instructions
N. V. SINHA, LDCE 2
ØEnter the number 34H in registers R5, R6 and R7
N. V. SINHA, LDCE 3
Arithmetic Instructions
ØUnpack the packed BCD number stored in A and save the result in R0
→ (LSB) and R1→(MSB)
N. V. SINHA, LDCE 5
Logical Instructions
Instruction Description Bytes Periods C OV AC
N. V. SINHA, LDCE 6
ØClear contents of A
N. V. SINHA, LDCE 7
https://www. techknowlearn.blogspot.com
N. V. SINHA, LDCE 8
ØPlace any number in RAM location 3CH and increment it until the
number equals to 2AH
N. V. SINHA, LDCE 9