Blogs

COMMON ANODE 7 SEGMENT INTERFACING CODE USING 8051 MICROCONTROLLER

ASSEMBLY CODE:
;////////////////////////////////////////////////////////////////
ORG 00H
AJMP POWERON

ORG 80H
POWERON:
MOV R0,#0FFH
LABEL: MOV P0,#11111111B
MOV P1,#11111110B
MOV P0,#10111101B;1
ACALL DELAY
MOV P0,#11111111B
MOV P1,#11111101B
MOV P0,#00110010B;2
ACALL DELAY
MOV P0,#11111111B
MOV P1,#11111011B
MOV P0,#00111000B;3
ACALL DELAY
MOV P0,#11111111B
MOV P1,#11110111B
MOV P0,#00011101B;4
ACALL DELAY

linear keypad interfacing code using 8051 microcontroller

ASSEMBLY CODE:
;/////////////////////////////////////////////////////////////////
;IN THIS PROGRAM THE LINEAR KEY PAD(AT P1) IS INTERFACED WITH
;THE 89C51 AND THE LEDS(AT P0) ARE USED TO SHOW THE RESULTS

ORG 00H
AJMP POWERON

ORG 80H
POWERON:MOV P1,#01111111B
MOV P0,#255
LABEL0: MOV R0,P1
CJNE R0,#01111110B,LABEL1
MOV P0,#11111110B
SJMP POWERON
LABEL1: CJNE R0,#01111011B,LABEL2
MOV P0,#11111101B
SJMP POWERON
LABEL2: CJNE R0,#01101111B,LABEL3
MOV P0,#11111011B
SJMP POWERON

LED on off PROGRAMME in 8051 microcontroller

ASSEMBLY CODE:
;//////////////////////////////////////////////////////////////
; THIS IS A PROGRAM THAT MAKES THE LEDS CONNECTED TO P0 PORT TO GLOW
; ALTERNATIVELY

ORG 0000H
AJMP POWERON

ORG 0030H
POWERON:MOV P0,#00H
ACALL DELAY
MOV P0,#0FFH
ACALL DELAY
SJMP POWERON

DELAY: ;DELAY ROUTINE
MOV R2,#20
LABEL3: MOV R1,#255
LABEL2: MOV R0,#255
LABEL1: DJNZ R0,LABEL1
DJNZ R1,LABEL2
DJNZ R2,LABEL3
RET

END
;///////////////////////////////////////////////////////////////

PIC Microcontroller Tutorial( Learning PIC 16F877A microcontroller with Fun)

First of all we should know what are microcontrollers and what we are required for learning microcontrollers.

MICROCONTROLLER:-
A microcontroller is a chip which integrates some components of a microprocessor system onto a single chip.
It is a chip that do some form of processing of information gives the desired output

So a microcontroller can be defined as:
True computer on chip
Specific – purpose digital computers
Design incorporates all the features of a microprocessor like
ALU, PC, SP, and registers along with RAM, ROM, parallel I/O

8051 Microcontroller Tutorial( Learning 8051 microcontroller with Fun)

First of all we should know what are microcontrollers and what we are required for learning microcontrollers.

MICROCONTROLLER:-
A microcontroller is a chip which integrates some components of a microprocessor system onto a single chip.It is a chip that do some form of processing of information and gives the desired output.
So a microcontroller can be defined as:
True computer on chip, Specific – purpose digital computers

Syndicate content