Professional Documents
Culture Documents
Submitted By: Aanchal Chaudhary Enrollment No.-Jnu-jpr-2011/00871
Submitted By: Aanchal Chaudhary Enrollment No.-Jnu-jpr-2011/00871
- Jnu-jpr-2011/00871
Types of Registers :
a. Program Counter b. DPTR c. 4 Register Banks PSWR and Stack Instructions different from Microprocessor
6
Structure of Assembly Language Assembling and Running an 8051 program Creating a Hex File
Stack - An area of internal RAM that is used in conjunction with certain opcodes to store and retrieve data quickly.
Stack Pointer - It is an 8-bit register to hold an internal RAM address that is called top - of - stack.
Looping instructions
Subroutines
10
Pin No 1 2 3 4 5 6 7-14 15 16
Description
Vss Vcc Contrast Voltage RS R/W EN Data Input/Output Pins (D0-D7) Anode (K) Cathode (K)
11
12
Code (Hex) 1 4
6
5 7 8 A C
Command to LCD Instruction Register Clear display screen Decrement cursor (shift cursor to left) Increment cursor (shift cursor to right) Shift display right Shift display left Display off, cursor off Display off, cursor on Display on, cursor off
13
Code (Hex) E F 10 14 18 1C 80 C0 38 2
Command to LCD Instruction Register Display on, cursor on Display on, cursor blinking Shift cursor position to left Shift cursor position to right Shift the entire display to the left Shift the entire display to the right Force cursor to beginning to 1st line Force cursor to beginning to 2nd line 2 lines and 5x7 matrix Return home
14
15
16
17