Skip to content

Latest commit

 

History

History
76 lines (68 loc) · 2.42 KB

File metadata and controls

76 lines (68 loc) · 2.42 KB

Keil_MicroVision_8051_Microcontroller_Software_Programs

This repository comprises of my coursework software programs under the course 8051 Microcontroller Assembly Level Language Programming.

General Introduction - 8051 Architecture:-

Architecture shows usual CPU components such as Program counter (PC),ALU, working registers and clock circuits.

=> Features: • 8 bit CPU with registers A (Accumulator) & B
• 16 bit program counter (PC) and Data pointer (DPTR). • 8 bit Program status word (PSW). • 8 bit stack pointer. • Internal ROM of 4kbytes. • Internal RAM of 128 bytes. • 4 register banks each containing 8 registers. • 16 bytes of bit addressable registers. • 8 bytes of general purpose data memory. • 32 I/O pins arranged in four 8 pin ports (P0 to P3). • Two 16 bit Timer/Counter (T0 & T1). • Full duplex serial data receiver / transmitter (SBUF). 15 • Control registers, TCON, TMOD, SCON, PCON, IP & IE. • 2 external & 3 internal interrupt source. • Oscillator and clock circuits

Alphabetical List of Instructions

  1. ACALL - Absolute Call
  2. ADD, ADDC - Add Accumulator (With Carry)
  3. AJMP - Absolute Jump
  4. ANL - Bitwise AND
  5. CJNE - Compare and Jump if Not Equal
  6. CLR - Clear Register
  7. CPL - Complement Register
  8. DA - Decimal Adjust
  9. DEC - Decrement Register
  10. DIV - Divide Accumulator by B
  11. DJNZ - Decrement Register and Jump if Not Zero
  12. INC - Increment Register
  13. JB - Jump if Bit Set
  14. JBC - Jump if Bit Set and Clear Bit
  15. JC - Jump if Carry Set
  16. JMP - Jump to Address
  17. JNB - Jump if Bit Not Set
  18. JNC - Jump if Carry Not Set
  19. JNZ - Jump if Accumulator Not Zero
  20. JZ - Jump if Accumulator Zero 21 LCALL - Long Call
  21. LJMP - Long Jump
  22. MOV - Move Memory
  23. MOVC - Move Code Memory
  24. MOVX - Move Extended Memory
  25. MUL - Multiply Accumulator by B
  26. NOP - No Operation
  27. ORL - Bitwise OR
  28. POP - Pop Value From Stack
  29. PUSH - Push Value Onto Stack
  30. RET - Return From Subroutine
  31. RETI - Return From Interrupt
  32. RL - Rotate Accumulator Left
  33. RL - Rotate Accumulator Left
  34. RLC - Rotate Accumulator Left Through Carry
  35. RR - Rotate Accumulator Right
  36. RRC - Rotate Accumulator Right Through Carry
  37. SETB - Set Bit
  38. SJMP - Short Jump
  39. SUBB - Subtract From Accumulator With Borrow
  40. SWAP - Swap Accumulator Nibbles
  41. XCH - Exchange Bytes
  42. XCHD - Exchange Digits
  43. XRL - Bitwise Exclusive OR
  44. Undefined - Undefined Instruction