Micro Processor Programs

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Micro Processor Programs as PDF for free.

More details

  • Words: 430
  • Pages: 5
String manipulation using 8086 assume cs:code,ds:code code segment org 1000h mov si,1200h mov di,2000h mov cx,04h cld loop1:mov sb loop1, org 1200h db ‘ABCD’ code ends end Interfacing 8253 with 8051 microcontroller mov dptr,#FFCE mov A, 36 movx @dptr,A mov A,#0A mov dptr,#FFC8 movx @dptr,A mov A,#00 movx @dptr,A sjmp 410F Addition Subtraction And Logical Bit Manipulation Using 8051 MicroController Addition

Subtraction

clr c mov A,#33h addc A,#21h mov dptr,#4150h mov @dptr,A sjmp 4209

clr c mov A,#33h subb A,#21h mov dptr,#4150h mov @dptr,A sjmp 4209

Bit Manipulation(BCD to HEX Conversion) mov A,#(Bcd No) mov r2,A mov A,#0F mov r3,A mov A,r2 ANL A,F0 swap A mov r4,A

mov A,#0A mov r5,A mov A,#00 loop addc A,r5 djnz r4,loop addc A,r3 mov dptr,#4150 mov @dptr,A sjmp (here) Interfacing Of 8279 and 8253 Interfacing IC 8279 ORG 4100H MVI A,00 OUT CNT MVI A,cc OUT CNT MVI A,90 OUT CNT-88 MVI A,88 OUT DAT-FF MVI A,FF OUT DAT-C0 OUT DAT-C0 OUT DAT-C0 OUT DAT-C0 HLT Interfacing IC 8253(Generation of square wave) MVI A,36 OUT CC MVI A,0A OUT C8 MVI A,00 OUT C8 HLT

Interfacing of 8085 with ADC MVI A,10 OUT C8 MVI A,18 OUT C8 MVI A,01 OUT D0 XRA A XRA A

XRA A MVI A,00 OUT D0 loop IN D8 ANI 01 CPI 01 JNZ loop IN C0 STA 4150 HLT

Serial Communication Using 8251 TRANSMITTER MVI A,36 OUT C6 MVI A,0A OUT C8 MVI A,00 OUT C8 MVI A,4E OUT C2 MVI A,37 OUT C2 loop JZ C2 ANI 04 JZ loop MVI A,41 OUT C0 RST 1

RECEIVER MVI A,36 OUT C6 MVI A,0A OUT C8 MVI A,00 OUT C8 MVI A,4E OUT C2 MVI A,37 OUT C2 IN C2 ANI 02 IN C0 STA 4150 RST 1

STEPPER MOTOR Start Loop3 Loop2 Loop1

LXI H,4200 MVI B,04 MOV A,M OUT C0 MVI C,10 MVI D,FF DCR D JNZ loop1 DCR C JNZ loop2 INX H DCR B JNZ loop3 JMP start

Parallel communication between two kits TRANSMITTER MVI A,84 OUT C6 MVI A,data OUT C2 HLT

RECEIVER MVI A,9B OUT C6 IN C2 STA 4150 HLT Sorting Of Numbers assume cs:code,ds:code code segment org 1000h mov si.1200h mov cl,[si] dec cl inc si loop: cmp al,[si] jc loop1 mov al,[si] loop:inc si dec cl jnz loop mov si,1500h mov [si],al hlt code ends end

Searching Of Numbers assume cs:code,ds:code code segment org 1000h mov si.1200h mov di,1500h mov cl,[si] inc si mov al,[si] inc si loop: cmp al,[si] jz loop1 inc si dec cl jnz loop loop1:mov bl,[si] mov [di],bl hlt code ends end

Related Documents

Micro Processor Programs
November 2019 12
Programs Micro Processor
October 2019 14
All Micro Processor Programs
November 2019 11
Micro Processor
November 2019 22
Micro Processor 2
November 2019 10