Projects 8051.

Slides:



Advertisements
Similar presentations
1 The 2-to-4 decoder is a block which decodes the 2-bit binary inputs and produces four output All but one outputs are zero One output corresponding to.
Advertisements

5.4 Decoders A decoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes.
1 ECE 372 – Microcontroller Design Parallel IO Ports - Outputs Parallel IO Ports E.g. Port T, Port AD Used to interface with many devices Switches LEDs.
The 8051 Microcontroller and Embedded Systems
Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
Week10 Boolean Instructions on the Boolean Instructions  Boolean (or Bit) addressable capability is unique to the 8051  Enables efficient handling.
Seven Segment Display. What's A 7-Segment Display? A 7-segment display is a package with 7 bar-shaped LEDs arranged to allow the display of many useful.
ECE 382 Lesson 6 Lesson Outline Example Assembly Code In class programming Debugging Assembly Code Lesson 6, 7, and 8 notes Admin CompEx1CompEx1  due.
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Interfacing ADC to 8051.
Interfacing of 8051 UNIT 4.
 | bit OR & bit AND ~ bit NOT ^ bit EXLUSIVE OR (XOR) > bit RIGHT SHIFT.
P Address bus Data bus Read-Only Memory (ROM) Read-Write Memory (RAM)
Dr Masri Ayob TK 2633: Microprocessor & Interfacing Lecture 5: Arithmetic and Logic Instructions.
8051 ASSEMBLY LANGUAGE PROGRAMMING
TK I/O Peripherals Interface DR MASRI AYOB.
Lab 6 :Digital Display Decoder: 7 Segment LED display Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 Slide #7 Display Decoder Fundamentals LT Control Input.
In a not gate, if the input is on(1) the output is off (0) and vice versa.
Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring.
RM2F Input / Output (I/O) Pin grouping code!. I/O Pin Group Operations: The Spin language has provisions for assigning values to groups of bits in the.
DEEPAK.P MICROPROCESSORS AND APPLICATIONS Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1.
1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
Embedded Systems Design 1 Lecture Set 6 I/O Ports.
1LAKSHMI.B.E.. Full step -clock 2LAKSHMI.B.E. Full step –anti clock 3LAKSHMI.B.E.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Status Report Atsushi Nukariya. FPGA training course ・ I solved 15 problems which are proposed by Uchida-san. ・ I used above circuit board. FPGA.
CoE3DJ4 Digital Systems Design Chapter 4: Timer operation.
Basic I/O Interface A Course in Microprocessor
Input/Output Interface Circuits and LSI Peripheral Devices
8086/8088 Hardware System. Typical Microprocessor Memory System CPU Memory Control Address Data.
Ass. Prof. Dr Masri Ayob Lecture 5: Arithmetic and Logic Instructions TK 2633: Microprocessor & Interfacing.
ELEC4601 Microprocessors Lab 2 Tutorial Signal Waveforms and Parallel port programming.
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
Microcontroller Intel 8051 [I/O Ports]. Pin out of the 8051 –40 pin package –32 pins are used for the 4 ports. –V CC / V SS –ALE Address Latch Enable.
1 CS 151: Digital Design Chapter 3: Combinational Logic Design 3-1Design Procedure CS 151: Digital Design.
ENEE 440 Chapter PPI 8255 Register Select -CS A1 A0 REGISTER R/W PORT A R/W PORT B R/W PORT C R/W CR W 1 X X8255 NOT.
Basic LED Interface.
Interfacing Data Converters. D/A converters Design an O/P port with the address FFh to interface the 1408 D/A converter that is calibrated for 0 to 10V.
Khaled A. Al-Utaibi  I/O Ports  I/O Space VS Memory Space  80x86 I/O Instructions − Direct I/O Instructions − Indirect I/O Instructions.
Embedded Systems Design 1 Lecture Set C Interfacing the MCS-51 to: –D/A Converter –A/D Converter.
AND Gate Inputs Output Input A (Switch) Input B (Switch) Output Y (Lamp) 0 (Open) 0 (OFF) A B Lamp.
Intro. Interfacing & Electronics 1 Interfacing Introduction.
Tutorial 9 Module 8 – 8.1,8.2,8.3. Question 1 Distinguish between vectored and non-vectored interrupts with an example Build a hardware circuit that can.
DIGITAL ELECTRONICS THEME 2: Combinational Logic Circuits. Decoders, Multiplexers, De-multiplexers, Code converters. For combinational logic the values.
Programming PIC 16F84A in Assembly. PIC16F84 pin-out and required external components.
8255 Programmable Peripheral Interface
Parallel Input/Output
Input/Output Ports and Interfacing
Interfacing I/O Devices
Classification of Instruction Set of 8051
Lab02 :Logic Gate Fundamentals:
Interfacing of LCD with µP
Source: Motor Source:
Calculator in assembly language
Data Processing Instructions
Kanwaljeet Singh, Lovely Professional University.
Interfacing Memory Interfacing.
Introduction to Micro Controllers & Embedded System Design Timer Operation Department of Electrical & Computer Engineering Missouri University of Science.
Engineering 4862 Microprocessors Lecture 25
Timer.
(Electrical Engg 6th Semester)
I/O Ports in AVR Sepehr Naimi
Microcontroller 8051 Made By: Arun Branch. 4th Sem. I&C Engg.
TK2633: MICROPROCESSOR & INTERFACING
I/O Ports in AVR Sepehr Naimi
BLOCK DIAGRAM OF AN ADDRESS
First Design Key board R L S.
Multiplexing seven-segment displays
Presentation transcript:

Projects 8051

Binary Pattern on the Port 1 LEDs ; This program displays the binary pattern ; from 0 to 255 (and back to 0) on the LEDs ; interfaced with port 1. ; A 1 in the pattern is represented by the LED on, ; while a 0 in the pattern is represented by the LED off. ; However, logic 0 on a port 1 pin turns on the LED, ; therefore it is necessary to write the inverse of the ; pattern to the LEDs. The easiest way to do this is ; to send the data FFH to 0 (and back to FFH) to the LEDs. ; Since port 1 is initially at FFH all we need to do is ; continuously decrement port 1. start: DEC P1 ; decrement port 1 JMP start ; and repeat

Switches to the LEDs ; switches on P2 to the LEDs on P1. ; When a switch is closed a logic 0 appears ; on that P2 pin, which is then copied to ; that P1 bit which turns on that LED. ; Therefore, a closed switch is seen as a lit ; LED and vice versa. start: MOV P1, P2 ; move data on P2 pins to P1 JMP start ; and repeat

Multiplexing the 7-segment Displays ; This program multiplexes the number 1234 ; on the four 7-segment displays. ; Note: a logic 0 lights a display segment. start: SETB P3.3 ; | SETB P3.4 ; | enable display 3 MOV P1, #11111001B ; put pattern for 1 on display MOV P1, #0FFH ; clear the display CLR P3.3 ; enable display 2 MOV P1, #10100100B ; put pattern for 2 on display MOV P1, #0FFH ; clear the display CLR P3.4 ; | SETB P3.3 ; | enable display 1 MOV P1, #10110000B ; put pattern for 3 on display MOV P1, #0FFH ; clear the display CLR P3.3 ; enable display 0 MOV P1, #10011001B ; put pattern for 4 on display MOV P1, #0FFH ; clear display JMP start ; jump back to start

Ramp Signal on the DAC Output ; This program generates a ramp on the DAC ; output. ; You can try adding values other than 8 ; to the accumulator to see what this does ; to the ramp signal. CLR P0.7 ; enable the DAC WR line loop: MOV A,#00h MOV P1, A ; move data in the accumulator to the DAC inputs (on P1) ADD A, #8 ; increase accumulator by 8 JMP loop ; jump back to loop