MC Lab - 1
MC Lab - 1
0x01H D7 D6 D5 D4 D3 D2 D1 D0
Address location
0x02H D7 D6 D5 D4 D3 D2 D1 D0
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
0xFFH D7 D6 D5 D4 D3 D2 D1 D0
Lab-1
• Structure of 8-bit memory with 16-bit address
bus
8-Bit Data
0x0000H D7 D6 D5 D4 D3 D2 D1 D0
0x0001H D7 D6 D5 D4 D3 D2 D1 D0
Address location
0x0002H D7 D6 D5 D4 D3 D2 D1 D0
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
0xFFFFH D7 D6 D5 D4 D3 D2 D1 D0
Lab-1
8051
• AT89C51 from Atmel Corporation
• Flash (erase before write)
– ROM burner that supports flash
– A separate eraser is not needed
Lab-1
ASSEMBLY LANGUAGE
PROGRAMMING
Lab-1
• A Given Assembly language program is a
series of statements of
Example:
REPEAT: MOV A, #50H ; Move 50H value to A
Lab-1
• Assembly language program example
Lab-1
MOV destination, source ;copy source to dest.
– B, R0, R1, R2, R3, R4, R5, R6, R7: General purpose
ASSEMBLY LANGUAGE
PROGRAMMING
Lab-1
• Keil IDE