Alexandria University Faculty of Engineering Communications & Electronics Department.

Size: px
Start display at page:

Download "Alexandria University Faculty of Engineering Communications & Electronics Department."

Transcription

1 Alexandria University Faculty of Engineering Communications & Electronics Department. TO : DR \ HOSSAM ELDIN MOSTAFA PRESENTED BY : 1. AHMED OSMAN HASSAN NEGM AHMED MOHAMED IBRAHIM AHMED ABD ELWAHED AHMED MOHAMED IBRAHIM IBRAHIM ALI SALMAN AHMED MOHAMED MAHMOUD ABD EL KADER AMIR MOHAMED FATHI 70 SEC (6)

2 2

3 Contents Safety information Safety information 4 Before you begin Features...5 Accessories.. 6 Controls and functions Keypad....7 LCD...8 Operation Operation...9 EEPROM Programmer EEPROM Programmer Schematic Keypad Keypad Schematic..11 Keypad Datasheet...12 Access Control Access Control Schematic 14 Access Control Datasheet Access Control Program

4 Safety information: - Be sure to read this user's manual before starting the operation of the access controller. Don t open the cover. It is dangerous to touch the inside of the circuit due to electric damage. Don t touch a power supply with wet hand. It may an electric shock. Place the access controller circuit in well ventilated and noheat environment. General information: - This manual provides complete instructions for work and use the access controller circuit. All functions of the circuit can carried out using the buttons on the keypad. The access controller circuit is easy and convenient to use. If you have any problems with the operation of your circuit, please refer to the relevant section of this manual or call your dealer. Any updates or enquiring checkout our web site 4

5 Features: - LCD display with (16*1). Keypad with brightness keys. Small size circuit. Power supply 5

6 Accessories: - User manual. Keypad. Power supply. Adaptor. LCD display Keypad 6

7 Operation: - The controller system is used to allow some of persons to enter place or use machine board and provide any unknown persons to use this features of any of them. 1. LCD display (HELLO) at any time. 2. Touch any key LCD will display (press 1 for ENG). 3. You will see three statements rotate (press 1 for ENG) then (press 2 for TECH) then (press 3 for mang). 4. If you will not choose 1, 2 or 3 the statement will rotate three times before (HELLO) return on LCD. 7

8 5. If you choose 1,2 or 3 the LCD display (enter password: ); 6. Enter your password, which content 7 digits. 7. If you don t complete the password the LCD return to (HELLO) in 41 seconds. 8. If your password right the LCD display (WELCOME ENG) if you are engineer. 9. The green lamp will light. 10. If your password wrongs the LCD display (INVALID PASSWORD). 8

9 11. The red lamp will light. 12. If you enter your password three times the system will shut down and will not be able to access. 13. The red lamp will light red and not shutdown. 14. Reset the system 9

10 10

11 11

12 74148 (8 to 3 Priority Encoder): This TTL encoder features priority decoding of the inputs to ensure that only the highest-order data line is encoded. It encodes eight data lines to three-line (4-2-1) binary octal (8 lines to 3-line priority) Diagram: : Encoder Truth Table: Inputs Outputs EI A2 A1 A0 EO GS 1 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X

13 74LS00 (4 2 Input NAND): This device contains four independent 2-input NAND gates. Logic function: Y = AB 74LS00 Diagram: NAND Truth Table: A B Y

14 14

15 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 D0 D1 D2 D3 D4 D5 D6 D7 VCC GND CE OE WE ICs Numbers: IC Number Number of ICs LS Push Button 13 1KΩ 16 10KΩ 1 33pF 2 4.7µF 1 Crystal 12MHz 1 LCD 16*1 1 ICs Configuration: 74HC D0 D1 D2 D3 D4 D5 D6 D7 LE OE Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 GND VCC D0 D1 D2 D3 D4 D5 D6 D7 EI Q0 Q1 Q2 GS EO VCC GND PSEN ALE VCC GND EA X1 X2 RST P0.0/AD0 P0.1/AD1 P0.2/AD2 P0.3/AD3 P0.4/AD4 P0.5/AD5 P0.6/AD6 P0.7/AD7 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 P2.0/A8 P2.1/A9 P2.2/A10 P2.3/A11 P2.4/A12 P2.5/A13 P2.6/A14 P2.7/A15 P3.0/RXD P3.1/TXD P3.2/INT0 P3.3/INT1 P3.4/T0 P3.5/T1 P3.6/WR P3.7/RD

16 ;MICRO CONTROLLER PROJECT LCD_DATA_4 bit P1.4 LCD_DATA_5 bit P1.5 LCD_DATA_6 bit P1.6 LCD_DATA_7 bit P1.7 LCD_RS BIT P1.2 LCD_EN BIT P1.3 key_pad_0 bit P3.0 key_pad_1 bit P3.1 key_pad_2 bit P3.2 key_pad_3 bit P3.3 CODE_TABLE: ORG 0H ;LOCATE ROUTINE AT 00H LJMP start ;JUMP TO START ORG ORG ORG ORG 0a00H 3H 3H 3H 3H 3H 3H 3H 0a10H 01H 01H 01H 01H 01H 01H 01H 0a20H 02H 02H 02H 02H 02H 02H 02H 100H ;MAIN PROGRAM STARTS HERE start: 16

17 mov sp, #2FH mov p1,#20h clr lcd_rs setb lcd_en lcall aaa clr lcd_en lcall aaa lcall delay2 mov a, #28h lcall send_command mov a, #0ch lcall send_command mov a, #02h lcall send_command MOV R6,#03H SETB key_pad_0 SETB key_pad_1 SETB key_pad_2 SETB key_pad_3 START1: hh: SETB p1.0 SETB p1.1 LCALL CLR_LCD mov r1,#5h lcall space djnz r1,hh mov a, #'H' mov a, #'E' mov a, #'L' lcall scnd_lcd MOV A, #'L' mov a, #'O' LCALL READ_PAD mov r0,#3d AGAIN: MOV R5,#'1' LCALL PRESS LCALL ENG lcall INPUT_PAD 17

18 MOV R5,#'2' LCALL PRESS LCALL TECH lcall INPUT_PAD MOV R5,#'3' LCALL PRESS LCALL MANG lcall INPUT_PAD aa: djnz r0, AGAIN sjmp START1 lcall CLR_LCD LCALL PASSWORD mov a ':'# mov r0,#7h mov r1, #8fh INPUT: LCALL READ_PAD cjne a,#0bh,input2 jmp aa input2: MOV A '*'# LCALL send_data inc r1 dec r0 MOV A,R0 jnz input lcall SCND_LCD lcall CLR_LCD compare: comp1: mov r0, #95h mov r1, #6h mov a,r1 MOVC A,@A+DPTR XRL A,@R0 JNZ GET_OUT DEC R1 MOV A,R1 DEC R0 JZ WELCOME JMP COMP1 18

19 WELCOME: clr p1.0 MOV R6,#03H mov a, #'W' mov a, #'E' mov a, #'l' mov a, #'C' mov a, #'O' mov a, #'M' mov a, #'E' LCALL SPACE TEST: TEST1: TEST2: TEST3: lcall SCND_LCD MOV A,0EH cjne a,#01,test1 LCALL ENG cjne a,#02,test2 LCALL TECH cjne a,#03,test3 LCALL MANG LCALL DELAY1 LJMP START1 GET_OUT: clr p1.1 mov a, #'I' mov a, #'N' mov a, #'V' mov a, #'A' mov a, #'L' mov a, #'I' mov a, #'D' LCALL SPACE lcall SCND_LCD LCALL PASSWORD LCALL DELAY1 19

20 DEC R6 MOV A,R6 JZ SECURITY LJMP START1 SECURITY: mov a, #08h lcall send_command JMP SECURITY READ_PAD: MOV TMOD,#10H MOV TL1,#00H ;DELAY CHANGING VALUE FFFF MOV TH1,#00H ;- TH1 TL1 SETB TR1 clr tf1 mov r2,#0ffh READ_PAD1: MOV A, #00H MOV R4,#0A0H DLY5: MOV R5,#0FFH DLY6: MOV A, P3 NOP DJNZ R5,DLY6 DJNZ R4,DLY5 ANL A, #0FH jnz bb DJNZ R2,read_pad1 JB TF1,ST JZ READ_PAD1 bb: ST: CLR TF1 LJMP START1 ret INPUT_PAD: MOV R5, #10H DLY4: MOV R2,#0FFH LCALL DLY1 MOV A, #00H MOV A, P3 ANL A, #0fH JNZ CHECK DJNZ R5,DLY4 check: check1: cjne a,#01h,check1 MOV DPTR, #0a00H MOV 0EH,A ljmp aa cjne a,#02h,check2 MOV DPTR, #0a10H MOV 0EH,A ljmp aa 20

21 check2: check3: cjne a,#03h,check3 MOV DPTR, #0a20H MOV 0EH,A ljmp aa ret PASSWORD: mov a, #'P' mov a, #'A' mov a, #'S' mov a, #'S' mov a, #'W' mov a, #'O' mov a, #'R' mov a, #'D' lcall SCND_LCD PRESS: LCALL CLR_LCD mov a, #'P' mov a, #'R' mov a, #'E' mov a, #'S' mov a, #'S' LCALL SPACE MOV A,R5 LCALL SEND_DATA LCALL SPACE lcall SCND_LCD mov a, #'F' mov a, #'O' mov a, #'R' LCALL SPACE 21

22 ENG: TECH: MANG: CLR_LCD: mov a, #'E' mov a, #'N' mov a, #'G' mov a, #'T' mov a, #'E' mov a, #'C' mov a, #'H' mov a, #'M' mov a, #'A' mov a, #'N' mov a, #'G' MOV A,#01H LCALL SEND_COMMAND SCND_LCD: SPACE: mov a, #0C0h lcall send_command mov a' '# send_command: lcall DELAY2 lcall lcd_data clr LCD_RS setb LCD_EN clr LCD_EN swap a 22

23 lcall DELAY2 lcall lcd_data clr LCD_RS setb LCD_EN clr LCD_EN ret send_data: lcall DELAY2 lcall lcd_data setb LCD_RS setb LCD_EN clr LCD_EN swap a lcall DELAY2 lcall lcd_data setb LCD_RS setb LCD_EN clr LCD_EN ret lcd_data: clr c mov 20h,a mov c,4h mov LCD_DATA_4, c mov c,5h mov LCD_DATA_5, c mov c,6h mov LCD_DATA_6, c mov c,7h mov LCD_DATA_7, c ret DELAY2: MOV R2,#09d LCALL DLY1 aaa: mov r0, #47h aaaa: djnz r0,aaaa ret DELAY: MOV R2,#02d LCALL DLY1 DELAY1: MOV R5, #07H DLY3: MOV R2,#0FFH LCALL DLY1 DJNZ R5,DLY3 DLY1: DLY2: MOV R3,#0FFH NOP 23

24 NOP DJNZ R3,DLY2 DJNZ R2,DLY1 END ;END PROGRAM ; **************************************************************** ************* 24

Interfacing ahantronix 128x64 Graphic Module to an 8-bitMicrocontroller

Interfacing ahantronix 128x64 Graphic Module to an 8-bitMicrocontroller Interfacing ahantronix 128x64 Graphic Module to an 8-bitMicrocontroller Introduction: Due to its thin profile, light weight, low power consumption and easy handling, liquid crystal graphic display modules

More information

Microcontroller Intel [Instruction Set]

Microcontroller Intel [Instruction Set] Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers

More information

LCM12232A LCM12232A. 122 x 32 1/32D STN( EL / 100VAC 400HZ LED / 4.2VDC

LCM12232A LCM12232A. 122 x 32 1/32D STN( EL / 100VAC 400HZ LED / 4.2VDC LCM12232A 122 x 32 1/32D STN( ), EL LED EL / 100VAC 400HZ LED / 4.2VDC / 1 VDD-VSS 0 6.5 V Ta=25 LCD VDD-V0 0 12.0 V V1 0 VDD V VDD-VSS - 4.75 5.0 5.25 V LCD VDD-V0-4.5 5.5 6.5 V IDD - - 2.5 - ma LCD IEE

More information

Control Transfer Instructions Jump, Loop, and Call. ECE473/573 Microprocessor System Design, Dr. Shiue

Control Transfer Instructions Jump, Loop, and Call. ECE473/573 Microprocessor System Design, Dr. Shiue Control Transfer Instructions Jump, Loop, and Call 1 Jump Instructions JZ label ; Jump if A=0 JNZ label ; Jump if A!=0 DJNZ reg, label ; Decrement and Jump if A (or reg.)!=0 CJNE A, byte ; Compare and

More information

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman

Microprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman Microprocessors 1 The 8051 Instruction Set Microprocessors 1 1 Instruction Groups The 8051 has 255 instructions Every 8-bit opcode from 00 to FF is used except for A5. The instructions are grouped into

More information

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

8051 Overview and Instruction Set

8051 Overview and Instruction Set 8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different

More information

Introduction To MCS-51

Introduction To MCS-51 Introduction To MCS-51 By Charoen Vongchumyen Department of Computer Engineering Faculty of Engineering KMITLadkrabang 8051 Hardware Basic Content Overview Architechture Memory map Register Interrupt Timer/Counter

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP 805 SFR Bus Digital Blocks Semiconductor IP 805 Microcontroller Configurable Peripherals General Description The Digital Blocks (Configurable Peripherals) Microcontroller Verilog IP Core is complaint with

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller EE4380 Fall 2001 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Architecture Programmer s View Register Set Instruction Set Memory

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP Digital Blocks Semiconductor IP DB805C-FSM 805 Microcontroller FSM Finite State Machine General Description The Digital Blocks DB805C-FSM IP Core contains Digital Blocks compact DB805C CPU Core & GPIO

More information

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

Digital Blocks Semiconductor IP

Digital Blocks Semiconductor IP Digital Blocks Semiconductor IP 805 Microcontroller General Description The Digital Blocks Microcontroller Verilog IP Core is complaint with the MCS 5 Instruction Set and contains standard 805 MCU peripherals,

More information

Application Brief D-005

Application Brief D-005 Interfacing the Avago HDSP-2xxx LED Alphanumeric Displays with the Intel 8751H Microcontroller Application Brief D-005 Introduction The HDSP-21xx/-25xx series of products is ideal for applications where

More information

Contents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):

More information

Q. Classify the instruction set of 8051 and list out the instructions in each type.

Q. Classify the instruction set of 8051 and list out the instructions in each type. INTRODUCTION Here is a list of the operands and their meanings: A - accumulator; Rn - is one of working registers (R0-R7) in the currently active RAM memory bank; Direct - is any 8-bit address register

More information

Assembly Language programming (2)

Assembly Language programming (2) EEE3410 Microcontroller Applications LABORATORY Experiment 2 Assembly Language programming (2) Name Class Date Class No. Marks Arithmetic, Logic and Jump instructions Objectives To learn and practice the

More information

Programming of 8085 microprocessor and 8051 micro controller Study material

Programming of 8085 microprocessor and 8051 micro controller Study material 8085 Demo Programs Now, let us take a look at some program demonstrations using the above instructions Adding Two 8-bit Numbers Write a program to add data at 3005H & 3006H memory location and store the

More information

Dodatak. Skup instrukcija

Dodatak. Skup instrukcija Dodatak Skup instrukcija Arithmetic Operations [@Ri] implies contents of memory location pointed to by R0 or R1 Rn refers to registers R0-R7 of the currently selected register bank 2 ADD A,

More information

MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following.

MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following. MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following. (9M) 1) Describe the instructions SWAP A and MOVX@DPTR,A with one example. (3Marks) SWAP A

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

Instruction Set Of 8051

Instruction Set Of 8051 Instruction Set Of 8051 By Darshan Patel M.Tech (Power Electronics & Drives) Assistant Professor, Electrical Department Sankalchand Patel college of Engineering-Visnagar Introduction The process of writing

More information

8051 Microcontroller Assembly Programming

8051 Microcontroller Assembly Programming 8051 Microcontroller Assembly Programming EE4380 Fall 2002 Class 3 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Topics Machine code 8051 Addressing Modes

More information

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote Programming Book1 8051 Microcontroller Kit Rev 3.0 January, 016 016 Wichit Sirichote 1 Contents Overview...3 SAFTY INFORMATION...3 Tools...3 Experiment 1 Blinking LED...4 Experiment Binary number counting...9

More information

C H A P T E R 1 INTRODUCTION

C H A P T E R 1 INTRODUCTION C H A P T E R 1 INTRODUCTION The mentioned project is based on the worlds most powerful intel controller 8051. Most of the services provided in todays world are voice interactive, you call up your bank

More information

8051 Programming using Assembly

8051 Programming using Assembly 8051 Programming using Assembly The Instruction Addressing Modes dest,source ; dest = source A,#72H ;A=72H A, # r ;A= r OR 72H R4,#62H ;R4=62H B,0F9H ;B=the content of F9 th byte of RAM DPTR,#7634H DPL,#34H

More information

SN8F5000 Family Instruction Set

SN8F5000 Family Instruction Set SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.

More information

Microcontroller and Embedded Systems:

Microcontroller and Embedded Systems: Microcontroller and Embedded Systems: Branches: 1. Electronics & Telecommunication Engineering 2. Electrical & Electronics Engineering Semester: 6 th Semester / 7 th Semester 1. Explain the differences

More information

INSTRUCCIONES ARITMETICAS ERROR! MARCADOR NO DEFINIDO.

INSTRUCCIONES ARITMETICAS ERROR! MARCADOR NO DEFINIDO. INSTRUCCIONES ARITMETICAS ERROR! MARCADOR NO DEFINIDO. ADD A,Rn Add register to 28..2F 1 12 X X X accumulator ADD A,direct Add direct byte 25 2 12 X X X to accumulator ADD A,@Ri Add indirect RAM 26..27

More information

TUTORIAL Assembly Language programming (2)

TUTORIAL Assembly Language programming (2) 8051 Assembly Language programming (2) TUTORIAL 4 EEE3410 Microcontroller Applications 1. Write the instructions to move value 34h into register A and value 3Fh into register B, then add them together.

More information

ELEG3924 Microprocessor

ELEG3924 Microprocessor Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.3 Jump, Loop, and Call Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Loop and Jump instructions Call instructions Time

More information

2. Write an 8051 program to generate a square wave of 25 khz at pin P2.3 using XTAL = 12 MHz. Solution:

2. Write an 8051 program to generate a square wave of 25 khz at pin P2.3 using XTAL = 12 MHz. Solution: Assignment 2 1. Assume that 5 binary data items are stored in RAM locations starting at 50h, as shown below. Write a program to find the sum of all the numbers. The calculation is in 16-bit format and

More information

Microcontroller. Instruction set of 8051

Microcontroller. Instruction set of 8051 UNIT 2: Addressing Modes and Operations: Introduction, Addressing modes, External data Moves, Code Memory, Read Only Data Moves / Indexed Addressing mode, PUSH and POP Opcodes, Data exchanges, Example

More information

MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS

MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS MASSEY UNIVERSITY PALMERSTON NORTH CAMPUS EXAMINATION FOR 159.233 COMPUTER SYSTEMS Semester One June 2008 Time allowed: THREE (3) hours This exam contains THREE (3) questions ANSWER ALL THREE (3) QUESTIONS

More information

Chapter Family Microcontrollers Instruction Set

Chapter Family Microcontrollers Instruction Set Chapter 4 8051 Family Microcontrollers Instruction Set Lesson 5 Program Flow Control and Interrupt Flow Control Instructions 2 Branch instructions- Jump to new value of Program Counter (PC) LJMP address16

More information

8051 Core Specification

8051 Core Specification 8051 Core Specification Authors: Jaka Simsic Simon Teran jakas@opencores.org simont@opencores.org Rev. 0.1 August 14, 2001 First Draft www.opencores.org Rev 0.1 First Draft 1 of 26 Revision History Rev.

More information

Module Contents of the Module Hours COs

Module Contents of the Module Hours COs Microcontrollers (EE45): Syllabus: Module Contents of the Module Hours COs 1 8051 MICROCONTROLLER ARCHITECTURE: Introduction to Microprocessors and Microcontrollers, the 8051 Architecture, 08 1 and pin

More information

Principle and Interface Techniques of Microcontroller

Principle and Interface Techniques of Microcontroller Principle and Interface Techniques of Microcontroller --8051 Microcontroller and Embedded Systems Using Assembly and C LI, Guang ( 李光 ) Prof. PhD, DIC, MIET WANG, You ( 王酉 ) PhD, MIET 杭州 浙江大学 2011 Chapter

More information

C51 Family. Architectural Overview of the C51 Family. Summary

C51 Family. Architectural Overview of the C51 Family. Summary Architectural Overview of the C51 Family C51 Family Summary 1. Introduction............................................................ I.1. 1.1. TSC80C51/80C51/80C31.................................................................

More information

build_char macro P1,P2,P3,P4,P5,P6,P7,P8 ;Macro for building a custom character

build_char macro P1,P2,P3,P4,P5,P6,P7,P8 ;Macro for building a custom character hold macro nop nop nop nop endm disp_str macro string ;Macro for sending string to LCD irpc char, if nul 'char' exitm endif mov a,#'char' lcall data_in endm endm build_char macro P1,P2,P3,P4,P5,P6,P7,P8

More information

Assembly Language programming (3)

Assembly Language programming (3) EEE3410 Microcontroller Applications LABORATORY Experiment 3 Assembly Language programming (3) Name Class Date Class No. Marks Conditional Program Branching and Subroutine Call in 8051 Objectives To learn

More information

Contents. Join the Technical Community Today!

Contents. Join the Technical Community Today! Contents CHAPTER 1: INTRODUCTION... 5 1. WELCOME... 5 1.2 PS 8051 BOARD OVERVIEW... 6 1.3 PS 8051 SPECIFICATIONS... 7 CHAPTER 2: SYSTEM DESCRIPTION... 9 2.1 HARDWARE... 9 2.2 MAPPING OF DEVICES... 11 2.2.1

More information

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MICROCONTROLLERS AND APPLICATIONS 1 Module 2 Module-2 Contents: Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples. MEMORY

More information

MICROCONTROLLER BASED WATER LEVEL CONTROL SYSTEM

MICROCONTROLLER BASED WATER LEVEL CONTROL SYSTEM MICROCONTROLLER BASED WATER LEVEL CONTROL SYSTEM The present concept implements controlling of pump which pumps water from the sump (underground tank) to the overhead tank, using 8951 microcontroller.

More information

FlashFlex51 Microcontroller Control of CompactFlash Card in TrueIDE Mode

FlashFlex51 Microcontroller Control of CompactFlash Card in TrueIDE Mode FlashFlex51 MCU: June 2003 1.0 INTRODUCTION The CompactFlash (CF) card SST48CFxxx supports three operational modes: (1) PC card ATA using I/O mode, (2) PC card ATA using Memory mode, and (3) TrueIDE mode.

More information

ELEG3923 Microprocessor Ch.3 Jump, Loop, and Call

ELEG3923 Microprocessor Ch.3 Jump, Loop, and Call Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.3 Jump, Loop, and Call Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Loop and Jump instructions Call instructions Time delay

More information

8051 Single Board Monitor Programming. Minmon - Yeralan & Ahluwalia. PaulMon1 & PaulMon2 - Paul Stoffregen

8051 Single Board Monitor Programming. Minmon - Yeralan & Ahluwalia. PaulMon1 & PaulMon2 - Paul Stoffregen 8051 Single Board Monitor Programming Monitor Program Available Monitor Program Minmon - Yeralan & Ahluwalia Programming and Interfacing the 8051 Microcontroller PaulMon1 & PaulMon2 - Paul Stoffregen http://www.pjrc.com/tech/8051

More information

Chapter 3. Bit Addressable Area. By DeccanRobots

Chapter 3. Bit Addressable Area. By DeccanRobots Chapter 3 Bit Addressable Area By DeccanRobots What is Bit Addressable Area? FFh 2Fh 20h 00h Data Memory General purpose Memory Area Bit Addressable Memory Registers Memory Area from 20H to 2FH is Bit

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

8051 I/O and Class 6 EE4380 Spring 03. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

8051 I/O and Class 6 EE4380 Spring 03. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas 8051 I/O and 8255 Class 6 EE4380 Spring 03 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Why I/O Ports Controllers need to get external inputs and produce

More information

To Produce a Bidirectional, Speed Regulated Moving Message Display by Using the SAB80515/SAB80535's Timer 2 & 8-Bit Converter

To Produce a Bidirectional, Speed Regulated Moving Message Display by Using the SAB80515/SAB80535's Timer 2 & 8-Bit Converter Interfacing the PX Alphanumeric Programmable Display TM with the SAB055/SAB055 Microcontroller To Produce a Bidirectional, Speed Regulated Moving Message Display by Using the SAB055/SAB055's Timer 2 &

More information

80C451 operation of port 6

80C451 operation of port 6 INTRODUCTION The features of the are shared with the 80C5 or are conventional except for the operation of port 6. The flexibility of this port facilitates high-speed parallel data communications. This

More information

Embedded Controller Programming

Embedded Controller Programming Embedded Controller Programming Counters, Timers and I/O in Assembly Language Ken Arnold Copyright 2000-2004 Ken Arnold 1 Outline Timer/Counters Serial Port More 8051 Instructions Examples Copyright 2000-2004

More information

DR bit RISC Microcontroller. Instructions set details ver 3.10

DR bit RISC Microcontroller. Instructions set details ver 3.10 DR80390 8-bit RISC Microcontroller Instructions set details ver 3.10 DR80390 Instructions set details - 2 - Contents 1. Overview 7 1.1. Document structure. 7 2. Instructions set brief 7 2.1. Instruction

More information

8051 I/O and 8051 Interrupts

8051 I/O and 8051 Interrupts 8051 I/O and 8051 Interrupts Class 7 EE4380 Fall 2002 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Agenda 8051 I/O Interfacing Scanned LED displays LCD displays

More information

ET2640. Unit 5:ADVANCED I/O TECHNIQUES Pearson Education, Inc. Pearson Prentice Hall Upper Saddle River, NJ 07458

ET2640. Unit 5:ADVANCED I/O TECHNIQUES Pearson Education, Inc. Pearson Prentice Hall Upper Saddle River, NJ 07458 ET2640 Unit 5:ADVANCED I/O TECHNIQUES skong@itt-tech.edu HARDWARE CONNECTION CHAPTER 8 8051 PINOUT XTAL1 & XTAL2 On-chip oscillator requires an external clock Quartz crystal clock 2 external 30 pf capacitors

More information

FACULTY OF ENGINEERING LAB SHEET

FACULTY OF ENGINEERING LAB SHEET FACULTY OF ENGINEERING LAB SHEET MICROCONTROLLER AND MICROPROCESSOR SYSTEMS ECE2216 TRIMESTER 1 (2017/2018) MP2: Construction and programming of a basic electronic piano *Note: On-the-spot evaluation may

More information

Application Brief D-002

Application Brief D-002 HCMS-29xx and HCMS-39xx Interfacing the Avago Technologies HCMS-29xx / HCMS-39xx LED Alphanumeric Displays with the Intel 8751H Microcontroller Application Brief D-002 Introduction The HCMS-29xx/HCMS-39xx

More information

LCDD Application Note

LCDD Application Note 1 Feature: LCDD Application Note SM79108 incorporates an on-chip LCD driver which generates and common signals output according to the display data saved in registers (0E1H~0E7H) and incorporates and common

More information

~: Simple Programs in 8051 assembly language :~

~: Simple Programs in 8051 assembly language :~ ~: Simple Programs in 8051 assembly language :~ Here some simple programs of 8051 are given to understand the operation of different instructions and to understand the logic behind particular program.

More information

CPEG300 Embedded System Design. Lecture Interface with Peripheral Devices

CPEG300 Embedded System Design. Lecture Interface with Peripheral Devices CPEG300 Embedded System Design Lecture 0 805 Interface with Peripheral Devices Hamad Bin Khalifa University, Spring 208 Typical Devices for an Electronics System Power generation PWM control Input devices

More information

Lab-Report Microprocessors

Lab-Report Microprocessors Lab-Report Microprocessors Digital Voltage Meter (DVM) NO YES Name: Dirk Becker Course: BEng 2 Group: A Student No.: 9801351 Date: 05/May/1999 1. Contents 1. CONTENTS... 2 2. INTRODUCTION... 3 3. THE PROJECT...

More information

MCS -51 Programmer s Guide and Instruction Set

MCS -51 Programmer s Guide and Instruction Set MCS -51 Programmer s Guide and Instruction Set November 1992 Order Number 270249-003 COPYRIGHT INTEL CORPORATION 1996 MCS -51 PROGRAMMER S GUIDE AND INSTRUCTION SET CONTENTS PAGE MEMORY ORGANIZATION 1

More information

Lecture 5. EEE3410 Microcontroller Applications Department of Electrical Engineering Assembly Language Programming (1)

Lecture 5. EEE3410 Microcontroller Applications Department of Electrical Engineering Assembly Language Programming (1) Department of Electrical Engineering Lecture 5 8051 Assembly Language Programming (1) 1 In this Lecture 8051 programming model Assembly language syntax Operation codes and operands Machine instructions

More information

INTEGRATED CIRCUITS. AN408 80C451 operation of port 6

INTEGRATED CIRCUITS. AN408 80C451 operation of port 6 INTEGRATED CIRCUITS March 1988 INTRODUCTION The features of the are shared with the 80C51 or are conventional except for the operation of port 6. The flexibility of this port facilitates high-speed parallel

More information

CPEG300 Embedded System Design. Lecture 6 Interrupt System

CPEG300 Embedded System Design. Lecture 6 Interrupt System CPEG300 Embedded System Design Lecture 6 Interrupt System Hamad Bin Khalifa University, Spring 2018 Correction Lecture 3, page 18: Only direct addressing mode is allowed for pushing or popping the stack:

More information

Dragonchip. Instruction Set Manual

Dragonchip. Instruction Set Manual Dragonchip Instruction Set Manual Version 3.1 July 2004 The Objective of this document is to provide the user a detail description to the each instruction set used in Dragonchip s MCU family. There are

More information

8051 Microcontrollers

8051 Microcontrollers 8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 15, 2016 8051 INSTRUCTIONS JUMP, LOOP AND CALL INSTRUCTIONS 8051 INSTRUCTIONS Repeating a sequence of instructions

More information

80C51 family programmer s guide and instruction set. 80C51 Family. PROGRAMMER S GUIDE AND INSTRUCTION SET Memory Organization. Philips Semiconductors

80C51 family programmer s guide and instruction set. 80C51 Family. PROGRAMMER S GUIDE AND INSTRUCTION SET Memory Organization. Philips Semiconductors PROGRAMMER S GUIDE AND INSTRUCTION SET Memory Organization Program Memory The 80C51 has separate address spaces for program and data memory. The Program memory can be up to 64k bytes long. The lower 4k

More information

Highlights. FP51 (FPGA based 1T 8051 core)

Highlights. FP51 (FPGA based 1T 8051 core) Copyright 2017 PulseRain Technology, LLC. FP51 (FPGA based 1T 8051 core) 10555 Scripps Trl, San Diego, CA 92131 858-877-3485 858-408-9550 http://www.pulserain.com Highlights 1T 8051 Core Intel MCS-51 Compatible

More information

VALLIAMMAI ENGINEERING COLLEGE S.R.M. NAGAR, KATTANKULATHUR-603203. DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING VII-EEE EE6502- MICROPROCESSORS AND MICROCONTROLLERS QUESTION BANK UNIT I 1. What

More information

8051 Microcontroller. Ali Ziya Alkar 1

8051 Microcontroller. Ali Ziya Alkar 1 8051 Microcontroller Ali Ziya Alkar 1 8051 Introduction 8051 is one of the most popular microcontrollers in use today. Many derivative microcontrollers have since been developed that are based on--and

More information

;~~~~~~~~~~~~ ;P4-6-1.ASM ~ ;~~~~~~~~~~~~ SYMBOLS RS REG P2.0 EN REG P2.1 PICK REG P3.0 RELAY0 REG P3.1 RELAY1 REG P3.6 RELAY2 REG P3.

;~~~~~~~~~~~~ ;P4-6-1.ASM ~ ;~~~~~~~~~~~~ SYMBOLS RS REG P2.0 EN REG P2.1 PICK REG P3.0 RELAY0 REG P3.1 RELAY1 REG P3.6 RELAY2 REG P3. ;~~~~~~~~~~~~ ;P4-6-1.ASM ~ ;~~~~~~~~~~~~ SYMBOLS RS REG P2.0 EN REG P2.1 PICK REG P3.0 RELAY0 REG P3.1 RELAY1 REG P3.6 RELAY2 REG P3.7 PASS1 REG 70H PASS2 REG 71H TURN REG 72H IN_CODE REG 73H TIME REG

More information

NAME as31 - An Intel 8031/8051 assembler. SYNOPSIS as31 [-h] [-l] [-s] [-v] [-Aarg] [-Ffmt] [-Ofile] infile.asm

NAME as31 - An Intel 8031/8051 assembler. SYNOPSIS as31 [-h] [-l] [-s] [-v] [-Aarg] [-Ffmt] [-Ofile] infile.asm NAME as31 - An Intel 8031/8051 assembler SYNOPSIS as31 [-h] [-l] [-s] [-v] [-Aarg] [-Ffmt] [-Ofile] infile.asm DESCRIPTION As31 assembles infile.asm into one of several different output formats. The output

More information

Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports.

Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. 8051 Architecture 1 Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. In most cases, all that is missing is the software to define the operation of the

More information

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas 8051 - Interrupts EE4380 Fall 2001 Class 9 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Polling Vs Interrupts Polling: MCU monitors all served devices continuously,

More information

D: arc SRC KUT51 KUT51LCD.LST KUT51LCD PAGE 1

D: arc SRC KUT51 KUT51LCD.LST KUT51LCD PAGE 1 D: arc SRC KUT51.LST PAGE 1 1 1 ; Ver 1.1 : Hyper Terminal and LCD supported(line delay=20 ms, 19200 bps) 2 3 $mod51 4 5 ; PORT DEFINITION F800 6 LCD_COMMAND_WR EQU 0F800H F801 7 LCD_DATA_WR EQU 0F801H

More information

Report Title: Digital Voltmeter using 89C51

Report Title: Digital Voltmeter using 89C51 VIVEKANAND EDUCATION SOCIETY'S INSTITUTE OF TECHNOLOGY Approved by AICTE & Affiliated to Mumbai University ELECTRONIC WORKSHOP - 2 REPORT Report Title: Digital Voltmeter using 89C51 PROJECT MEMBERS: 1.

More information

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan Chapter 6 Interrupts (I. Scott Mackenzie) 1 Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program. It

More information

Advantages of Using a Dallas Semiconductor DS1232 MicroMonitor

Advantages of Using a Dallas Semiconductor DS1232 MicroMonitor Maxim > Design Support > Technical Documents > Application Notes > Microprocessor Supervisor Circuits > APP 581 Keywords: power on reset, por, push-button reset, manual reset, debounced, power fail, watchdog

More information

Introduction to uc & Embedded Systems

Introduction to uc & Embedded Systems Introduction to uc & Embedded Systems Prepared by, Tamim Roshdy Embedded Systems What is an embedded system? An embedded system is an application that contains at least one programmable computer (typically

More information

ET2640 Microprocessors

ET2640 Microprocessors ET2640 Microprocessors Unit -2 Processor Programming Concepts Basic Control Instructor : Stan Kong Email : skong@itt-tech.edu Figure 2 4 Bits of the PSW Register 8051 REGISTER BANKS AND STACK 80 BYTES

More information

LCD AND KEYBOARD INTERFACING

LCD AND KEYBOARD INTERFACING LCD AND KEYBOARD The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer

More information

Three criteria in Choosing a Microcontroller

Three criteria in Choosing a Microcontroller The 8051 Microcontroller architecture Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Some Simple Instructions Structure of Assembly language and Running an 8051 program

More information

IS1U60 IS1U60L Recommended operating conditions. Unit

IS1U60 IS1U60L Recommended operating conditions. Unit IS1U60/IS1U60L IS1U60/IS1U60L Sensors with 1-Package Design of Remote Control Detecting Functions owing to OPIC Features Outline Dimensions (Unit : mm) 1. 1-package design owing to adoption of OPIC 2.

More information

Hardware Setups for Communication with a DS1267

Hardware Setups for Communication with a DS1267 Maxim > Design Support > Technical Documents > Application Notes > Digital Potentiometers > APP 409 Maxim > Design Support > Technical Documents > Application Notes > General Engineering Topics > APP 409

More information

1. Write A Program to move a block of data within the internal RAM

1. Write A Program to move a block of data within the internal RAM UNIT 2: Example Programs. 1. Write A Program to move a block of data within the internal RAM Org 0h start1: mov r0,#40h ;r0 pointed to internal RAM 40h mov r1,#30h ;r1 pointing to internal RAM 030h mov

More information

S.J.P.N Trust's. Hirasugar Institute of Technology, Nidasoshi.

S.J.P.N Trust's. Hirasugar Institute of Technology, Nidasoshi. S.J.P.N Trust's Tq: Hukkeri Dist: Belagavi DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING LABORATORY MANUAL Name of the Lab: Microcontroller Laboratory Semester: V Subject Code: 15EEL57 Staff Incharge:

More information

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000,

TUTORIAL. Donal Heffernan University of Limerick May Tutorial D.Heffernan 2000, 8051 TUTORIAL Donal Heffernan University of Limerick May-2002 8051 Tutorial D.Heffernan 2000, 2001 1 Blank 8051 Tutorial D.Heffernan 2000, 2001 2 Some reference material: Test books + MacKenzie Scott.

More information

What Registers are available? Programming in Assembler. Assembler Programming - like early Basic. Assembler Data Movement Instructions

What Registers are available? Programming in Assembler. Assembler Programming - like early Basic. Assembler Data Movement Instructions Programming in Assembler Need knowledge of CPU 8051 Programmers model what registers are available? what memory is available? code memory (for programs) data memory (for variables and the stack) what instructions

More information

CONTENTS. 1.0 Introduction Description of the Circuit Installation Connection of Power Supply 4

CONTENTS. 1.0 Introduction Description of the Circuit Installation Connection of Power Supply 4 1 CONTENTS PAGE NO 1.0 Introduction 2 2.0 Description of the Circuit 3 3.0 Installation 3 3.1 Connection of Power Supply 4 3.2 Connection of Output Signals to Relay Contacts 4 3.3 Interfacing to ESA Trainers

More information

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT- IV

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT- IV UNIT- IV PART A (2 MARK QUESTIONS) 1. What is the need for de-bouncing the keyboard? (AUC NOV 2012) Debouncing is any kind of hardware device or software that ensures that only a single signal will be

More information

Principle and Interface Techniques of Microcontroller

Principle and Interface Techniques of Microcontroller Principle and Interface Techniques of Microcontroller --8051 Microcontroller and Embedded Systems Using Assembly and C LI, Guang ( 李光 ) Prof. PhD, DIC, MIET WANG, You ( 王酉 ) PhD, MIET 杭州 浙江大学 2015 Chapter

More information

Chapter 09. Programming in Assembly

Chapter 09. Programming in Assembly Chapter 09 Programming in Assembly Lesson 05 Programming Examples for Timers Programming TMOD Register 3 Write instructions to run T0 in Mode 0, external count inputs, internal start/stop control ANL TMOD,

More information

UNIT-III ASSEMBLY LANGUAGE PROGRAMMING. The CPU can access data in various ways, which are called addressing modes

UNIT-III ASSEMBLY LANGUAGE PROGRAMMING. The CPU can access data in various ways, which are called addressing modes 8051 Software Overview: 1. Addressing Modes 2. Instruction Set 3. Programming 8051 Addressing Modes: UNIT-III ASSEMBLY LANGUAGE PROGRAMMING The CPU can access data in various ways, which are called addressing

More information

1. Pin diagram of 8051 and ports

1. Pin diagram of 8051 and ports e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Programming parallel ports Module No: CS/ES/9 Quadrant 1 e-text In this lecture pin diagram of 8051 controller will be shown and

More information

AL8051S 8-BIT MICROCONTROLLER Application Notes

AL8051S 8-BIT MICROCONTROLLER Application Notes AL8051S 8-BIT MICROCONTROLLER Application Notes 6-14-2012 Table of Contents GENERAL INFORMATION... 3 FEATURES... 3 Key features... 3 Design features... 3 INTERFACE... 4 Symbol... 4 Signal description...

More information

CPEG300 Embedded System Design. Lecture 8 Timer

CPEG300 Embedded System Design. Lecture 8 Timer CPEG300 Embedded System Design Lecture 8 Timer Hamad Bin Khalifa University, Spring 2018 Review 8051 port and port schematic Internal read/write data path Serial communication vs. parallel communication

More information

اصول ميکروکامپيوترها استاد درس: دکتر http://ee.iust.ac.ir/rahmati/index.htm rahmati@iust.ac.ir ا درس Email و Website برای تکاليف و... : http://eel.iust.ac.ir/rahmati/ ١ هجدهم فصل ا شنايی با تايمرهای 8051

More information

CoE3DJ4 Digital Systems Design. Chapter 6: Interrupts

CoE3DJ4 Digital Systems Design. Chapter 6: Interrupts CoE3DJ4 Digital Systems Design Chapter 6: Interrupts Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program.

More information