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
- ACALL - Absolute Call
- ADD, ADDC - Add Accumulator (With Carry)
- AJMP - Absolute Jump
- ANL - Bitwise AND
- CJNE - Compare and Jump if Not Equal
- CLR - Clear Register
- CPL - Complement Register
- DA - Decimal Adjust
- DEC - Decrement Register
- DIV - Divide Accumulator by B
- DJNZ - Decrement Register and Jump if Not Zero
- INC - Increment Register
- JB - Jump if Bit Set
- JBC - Jump if Bit Set and Clear Bit
- JC - Jump if Carry Set
- JMP - Jump to Address
- JNB - Jump if Bit Not Set
- JNC - Jump if Carry Not Set
- JNZ - Jump if Accumulator Not Zero
- JZ - Jump if Accumulator Zero 21 LCALL - Long Call
- LJMP - Long Jump
- MOV - Move Memory
- MOVC - Move Code Memory
- MOVX - Move Extended Memory
- MUL - Multiply Accumulator by B
- NOP - No Operation
- ORL - Bitwise OR
- POP - Pop Value From Stack
- PUSH - Push Value Onto Stack
- RET - Return From Subroutine
- RETI - Return From Interrupt
- RL - Rotate Accumulator Left
- RL - Rotate Accumulator Left
- RLC - Rotate Accumulator Left Through Carry
- RR - Rotate Accumulator Right
- RRC - Rotate Accumulator Right Through Carry
- SETB - Set Bit
- SJMP - Short Jump
- SUBB - Subtract From Accumulator With Borrow
- SWAP - Swap Accumulator Nibbles
- XCH - Exchange Bytes
- XCHD - Exchange Digits
- XRL - Bitwise Exclusive OR
- Undefined - Undefined Instruction