EC305CEA
EC305CEA
b)Draw the block diagram and explain the architecture and operation of 8085 (10)
KTU NOTES
III a)Draw the pin configuration of 8085 and explain the function of each signal.
b)Draw the block diagram of 8255 and its interfacing with 8085 in detail .
(7)
(8)
PART B
b) Draw the architecture and explain the functions of each block 8051 microcontroller
in detail (10)
II a)Explain the organization of TMOD and TCON register in 8051 timer/counter. (5)
b)Write a program to generate a wave shown in figure given below at P1.5 in mode 1
III a)Draw the pin configuration of 8051 and explain functions of each pin (7)
b)Explain serial communication in 8051 and discuss about various modes of serial
PART C
I. a)With neat block diagram explain how an LCD module can be interfaced to a 8051
(20)
(10)
III a) With a neat diagram explain how an ADC can be interfaced to 8051. (8)
b)Write a short note on compare mode CCP module PIC 18 microcontrollers. (12)
KTU NOTES
KTU NOTES
Explanation:7 marks
• Immediate
• Direct
• Indirect
• Register
• Register Indirect
Arithmetic Instructions
Logical Instructions
Branching Instructions
KTU NOTES
Control Instructions
These instructions move data between registers, or between memory and registers.
Arithmetic Instructions
Addition
Subtract
Decrement
Addition
Any 8-bit number, or the contents of register, or the contents of memory location can be
Eg:ADD B
Subtraction
Any 8-bit number, or the contents of register, or the contents of memory location can be
KTU NOTES
The result is stored in the accumulator.
Eg:SUB B
Increment INR B
Decrement :DCR B
Logical Instructions
AND
OR
Rotate
Compare
Complement
Branching Instructions
EG:jump,call etc
Control Instructions
EG:NOP,HLT
a)
KTU NOTES
KTU NOTES
Ia)
KTU NOTES
Ib)
1Ia)
65536-18315=47221=b875H
MOV TMOD,#01H
MOV TH0,#B8Hh
SETB P1.2
KTU NOTES
ACALL DELAY
MOV TL0,#8Ah
CLR P1.2
ACALL DELAY
SJMP L1
AGAIN:JNB TF0,AGAIN
CLR TR0
CLR TF0
RET
IIIa)
KTU NOTES
Ia)
KTU NOTES
ORG 00H
MOV A,#38H ; LCD 2 lines, 5x7 matrix
ACALL COMNWRT ; call command subroutine
ACALL DELAY ; give LCD some time
MOV A,#0EH ; display on, cursor on
ACALL COMNWRT ; call command subroutine
ACALL DELAY ; give LCD some time
MOV A,#01 ;clear LCD
ACALL COMNWRT ;call command subroutine
ACALL DELAY ;give LCD some time
MOV A,#06H ;shift cursor right
ACALL COMNWRT ;call command subroutine
ACALL DELAY ;give LCD some time
MOV A,#86H
ACALL COMNWRT
ACALL DELAY
KTU NOTES ;cursor at line 1, pos. 6
;call command subroutine
;give LCD some time
MOV A,#’Y’ ;display letter Y
ACALL DATAWRT ;call display subroutine
ACALL DELAY ;give LCD some time
MOV A,#’E’ ;display letter E
ACALL DATAWRT ;call display subroutine
ACALL DELAY ;give LCD some time
MOV A,#’S’ ;display letter S
ACALL DATAWRT ;call display subroutine
AGAIN: SJMP AGAIN ;stay here
COMNWRT: ;send command to LCD
MOV P1,A ;copy reg A to port 1
CLR P3.5 ;RS=0 for command
CLR P3.4 ;R/W=0 for write
IIa)
KTU NOTES
KTU NOTES
KTU NOTES
IIIb)