VTech Alphabert s Magic Readport User Manual

Browse online or download User Manual for Toys & accessories VTech Alphabert s Magic Readport. Microcontroller & Interfacing - Biomedical Department

  • Download
  • Add to my manuals
  • Print
  • Page
    / 80
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
BM Dept., Govt. Engg. College, Gandhinagar Page 1
Microcontroller
& I
nt
e
rf
ac
in
g
Laboratory
Manual
Enrollment No.:
Name of the Student:
Biomedical Engineering Depa
rtment
Government Engineering College,
Sect-28, Gandhinagar
Page view 0
1 2 3 4 5 6 ... 79 80

Summary of Contents

Page 1 - Laboratory

BM Dept., Govt. Engg. College, Gandhinagar Page 1 Microcontroller & Interfacing Laboratory Manual Enrollment No.: Name of the

Page 2 - CERTIFICATE

Lab Manual of Microcontroller & Interfacing Page 10 EXPERIMENT NO. 2 AIM: Write a C language programs to… • Read data from port P2 and P3. Add

Page 3

BM Dept., Govt. Engg. College, Gandhinagar Page 11 Program 3: Write program to read switch connected at port pin P1.0, toggle it and send it to port

Page 4

Lab Manual of Microcontroller & Interfacing Page 12 C. Write C language program to read port P1, Compare content of port P1with data 80h. If da

Page 5 - EXPERIMENT NO. 1

BM Dept., Govt. Engg. College, Gandhinagar Page 13 EXPERIMENT NO. 3 AIM: Write programs to …. • To add two sixteen bit numbers stored in DPTR and a

Page 6

Lab Manual of Microcontroller & Interfacing Page 14 ADDC A,#00h ;Add zero (plus the carry, if any) MOV R1,A ;Move the resulting answer

Page 7

BM Dept., Govt. Engg. College, Gandhinagar Page 15 :: WORKSHEET :: Exercise: A. Write assembly language program to find square of given number stor

Page 8

Lab Manual of Microcontroller & Interfacing Page 16 B. Write assembly language program to add 4 digit BCD numbers. First 4 digit number stored

Page 9

BM Dept., Govt. Engg. College, Gandhinagar Page 17 C. Divide content of register R1 by 8 using logical shift instruction. Memory Location HEX code

Page 10 - EXPERIMENT NO. 2

Lab Manual of Microcontroller & Interfacing Page 18 EXPERIMENT NO. 4 AIM: Write a program to …. • Add block of data stored at location 40h to 4

Page 11

BM Dept., Govt. Engg. College, Gandhinagar Page 19 JC next ;If A<next data then check next data MOV 60h,R0 ;Save smallest location at R

Page 12

Lab Manual of Microcontroller & Interfacing Page 2 GGGGOOOOVVVVEEEERRRRNNNNMMMMEEEENNNNTTTT EEEENNNNGGGGIIIINNNNEEEEEEEERRRRIIIINNNNGGGG

Page 13 - EXPERIMENT NO. 3

Lab Manual of Microcontroller & Interfacing Page 20

Page 14

BM Dept., Govt. Engg. College, Gandhinagar Page 21

Page 15 - :: WORKSHEET ::

Lab Manual of Microcontroller & Interfacing Page 22

Page 16

BM Dept., Govt. Engg. College, Gandhinagar Page 23 EXPERIMENT NO. 5 AIM: Write a program to …. • Keep monitoring port pin P1.2 until it becomes hig

Page 17

Lab Manual of Microcontroller & Interfacing Page 24 :: WORKSHEET :: A. Write assembly language and C program to make ALL LEDs connected at port

Page 18 - EXPERIMENT NO. 4

BM Dept., Govt. Engg. College, Gandhinagar Page 25 D. A switch is connected to P3.2. Write a program to perform following: a. If Switch is OFF, se

Page 19

Lab Manual of Microcontroller & Interfacing Page 26 EXPERIMENT NO. 6 AIM: Write a program to generate square wave of 50% duty cycle having frequ

Page 20

BM Dept., Govt. Engg. College, Gandhinagar Page 27

Page 21

Lab Manual of Microcontroller & Interfacing Page 28

Page 22 - :: Rough Work ::

BM Dept., Govt. Engg. College, Gandhinagar Page 29 EXPERIMENT NO. 7 Aim: Generate external interrupt INT0 and INT1 by connecting push button switch.

Page 23 - EXPERIMENT NO. 5

BM Dept., Govt. Engg. College, Gandhinagar Page 3 INDEX Sr. No. Name of Experiment Date Sign 1 Write a assembly language program to …. • Ad

Page 24

Lab Manual of Microcontroller & Interfacing Page 30 ajmp flash sequence: mov a,#0FEh ; Bit pattern for First LED ON, others OFF next: mov P

Page 25

BM Dept., Govt. Engg. College, Gandhinagar Page 31 EXPERIMENT NO. 8 Aim: Interface seven segment display with Port P1. Write program to display numb

Page 26 - EXPERIMENT NO. 6

Lab Manual of Microcontroller & Interfacing Page 32 INC DPTR AJMP next ; Next digit DELAY: MOV R7,#22h L3: MOV R6,#0FFh L2: MOV R5,#

Page 27

BM Dept., Govt. Engg. College, Gandhinagar Page 33 ACALL DELAY MOVC A,@A+DPTR MOV P1,A ;Display count value AJMP again ;Continue DIP switch reading

Page 28

Lab Manual of Microcontroller & Interfacing Page 34 EXPERIMENT NO. 9 AIM: Interface LCD with the microcontroller. Display your name on the LCD.

Page 29 - EXPERIMENT NO. 7

BM Dept., Govt. Engg. College, Gandhinagar Page 35 between two data which gives enough time to LCD for its operation and does not require to check t

Page 30

Lab Manual of Microcontroller & Interfacing Page 36 acall delay clr a movc a,@a+dptr jz exit acall disp_data inc dptr sjmp disp_msg exit: ret de

Page 31 - EXPERIMENT NO. 8

BM Dept., Govt. Engg. College, Gandhinagar Page 37

Page 32

Lab Manual of Microcontroller & Interfacing Page 38

Page 33

BM Dept., Govt. Engg. College, Gandhinagar Page 39 EXPERIMENT NO. 10 AIM: Write a program to transmit letter “E” continuously using serial port. Mod

Page 34 - EXPERIMENT NO. 9

Lab Manual of Microcontroller & Interfacing Page 4 Sr. No. Name of Experiment Date Sign 8. Interface seven segment display with Port P2.

Page 35

Lab Manual of Microcontroller & Interfacing Page 40 START: MOV TMOD,#20h ;Configure Timer 1 in mode 2 auto reload mode. MOV TH1,#0fdh

Page 36

BM Dept., Govt. Engg. College, Gandhinagar Page 41 MOV P1,#0ffh ;Make P1 output port MOV P2,#00h ;Make P2 output port MOV TMOD,#20h ;Tim

Page 37

Lab Manual of Microcontroller & Interfacing Page 42

Page 38

BM Dept., Govt. Engg. College, Gandhinagar Page 43

Page 39 - EXPERIMENT NO. 10

Lab Manual of Microcontroller & Interfacing Page 44 EXPERIMENT NO. 11 AIM: Write a program to receive bytes of data serially and displ

Page 40

BM Dept., Govt. Engg. College, Gandhinagar Page 45 MOV TH1,#0FDh ;Count value for baud rate 9600 MOV SCON,#50h ;8 bit UART mode, REN enable MOV

Page 41 - :: WORKSHEET::

Lab Manual of Microcontroller & Interfacing Page 46 /* 0x06 = 19,200 BPS 0x0C = 9,600 BPS 0x18 = 4,800 BPS */ /* 0x30 = 2,400 BPS */ outportb(PO

Page 42

BM Dept., Govt. Engg. College, Gandhinagar Page 47 MOV TH1,#0FDh ;Count value for baud rate 9600 MOV SCON,#50h ;8 bit UART mode, REN enable

Page 43

Lab Manual of Microcontroller & Interfacing Page 48

Page 44 - EXPERIMENT NO. 11

BM Dept., Govt. Engg. College, Gandhinagar Page 49 EXPERIMENT NO. 12 AIM: Write a program to measure frequency of external pulses given at the timer

Page 45

BM Dept., Govt. Engg. College, Gandhinagar Page 5 EXPERIMENT NO. 1 AIM: Write a program to …. • Add two 8 bit numbers stored in register R6 and R7.

Page 46

Lab Manual of Microcontroller & Interfacing Page 50 ORG 1BH RETI ORG 23H RETI START: MOV SP,#60H MOV P1,#00H ;Set P1 as an output port MOV P

Page 47

BM Dept., Govt. Engg. College, Gandhinagar Page 51 MOV A,37H ;Convert the number stored at 37h into ASCII ACALL HEXASCI ACALL DISP_DATA ; Di

Page 48

Lab Manual of Microcontroller & Interfacing Page 52 MOV A,@R0 MOV B,#6 MUL AB DEC R0 DEC R0 ADD A,@R0 MOV @R0,A INC R0 INC R0 MOV A,@R0 MOV B,#5

Page 49 - EXPERIMENT NO. 12

BM Dept., Govt. Engg. College, Gandhinagar Page 53 ACALL DELAY MOV P1,A ;Get data for display SETB P3.0 ;Select data register CLR P3.2

Page 50

Lab Manual of Microcontroller & Interfacing Page 54

Page 51

BM Dept., Govt. Engg. College, Gandhinagar Page 55 EXPERIMENT NO. 13 AIM: Interface matrix keyboard with 8051. Write program to display key pressed

Page 52

Lab Manual of Microcontroller & Interfacing Page 56 ANL A,#0FH ;Maks Upper Bits Because They Are Not Used CJNE A,#0FH,REL ;Check Till All K

Page 53

BM Dept., Govt. Engg. College, Gandhinagar Page 57 INC DPTR SJMP CHECK_C GET_CODE: CLR A MOVC A,@A+dptr MOV P0,A LJMP REL DELAY: MOV R7,#0FFh DLOO

Page 54

Lab Manual of Microcontroller & Interfacing Page 58

Page 55 - EXPERIMENT NO. 13

BM Dept., Govt. Engg. College, Gandhinagar Page 59

Page 56

Lab Manual of Microcontroller & Interfacing Page 6 :: WORKSHEET :: A. Write assembly language program to add two 8 bit data stored at memory lo

Page 57

Lab Manual of Microcontroller & Interfacing Page 60 EXPERIMENT NO. 14 AIM: Interface stepper motor with port P0 of the microcontroller.

Page 58

BM Dept., Govt. Engg. College, Gandhinagar Page 61 Sequence of pulses required to send on port P0 to rotate motor in clockwise and anticlockwise di

Page 59

Lab Manual of Microcontroller & Interfacing Page 62 Sequence of pulses required to send on port P0 to rotate motor in clockwise and anticlockwis

Page 60 - EXPERIMENT NO. 14

BM Dept., Govt. Engg. College, Gandhinagar Page 63 Memory Location HEX code Label Opcode Operands Comments

Page 61

Lab Manual of Microcontroller & Interfacing Page 64 B. Consider that switch SW1 and SW2 shown in the circuit are two limit switche

Page 62

BM Dept., Govt. Engg. College, Gandhinagar Page 65 EXPERIMENT NO. 15 AIM: Interface DC motor with AT89C51 microcontroller. Write a program to rotate

Page 63

Lab Manual of Microcontroller & Interfacing Page 66 pulses decreases when we press the switch SW2. This will control speed of the motor. Transis

Page 64

BM Dept., Govt. Engg. College, Gandhinagar Page 67 When port pin P1.1 is low, LED of opto-isolator will glow which makes transistor of opto-is

Page 65 - EXPERIMENT NO. 15

Lab Manual of Microcontroller & Interfacing Page 68 H-bridge is available in single IC form such as L293. Four transistors are inbuilt in this

Page 66

BM Dept., Govt. Engg. College, Gandhinagar Page 69 Program: Write a program to rotate DC motor connected in above circuit such that when switch SW1

Page 67

BM Dept., Govt. Engg. College, Gandhinagar Page 7 D. Writ

Page 68

Lab Manual of Microcontroller & Interfacing Page 70

Page 69

BM Dept., Govt. Engg. College, Gandhinagar Page 71

Page 70

Lab Manual of Microcontroller & Interfacing Page 72 EXPERIMENT NO. 16 AIM: Interface ADC0808 with AT89C51 microcontroller. Write a progr

Page 71

BM Dept., Govt. Engg. College, Gandhinagar Page 73 SETB EOC ; MAKE EOC INPUT CLR ALE CLR OE CLR START SETB START ACALL SDELAY CLR START HERE:

Page 72 - EXPERIMENT NO. 16

Lab Manual of Microcontroller & Interfacing Page 74 :: WORKSHEET:: A. Write a program to read analog value at the interval of 1 second and stor

Page 73

BM Dept., Govt. Engg. College, Gandhinagar Page 75 B. Draw interfacing diagram to interface ADC0804 with AT89C51 microcontroller. Write program to

Page 74

Lab Manual of Microcontroller & Interfacing Page 76

Page 75

BM Dept., Govt. Engg. College, Gandhinagar Page 77 EXPERIMENT NO. 17 AIM: Interface 8 bit DAC chip with 89C51 microcontroller. Write a program to ge

Page 76 - :: Roght Work ::

Lab Manual of Microcontroller & Interfacing Page 78 org 0400h DB 1,8,16,24,32,40,47,54,62,69,75,82,88,93,99,104,108,112,116,119,122,124,124 DB 1

Page 77 - EXPERIMENT NO. 17

BM Dept., Govt. Engg. College, Gandhinagar Page 79 B. Modify DAC program to generate Full wave rectifier w

Page 78

Lab Manual of Microcontroller & Interfacing Page 8 F. Write and execute program to subtract content of register R6 from register R7 and store

Page 79

Lab Manual of Microcontroller & Interfacing Page 80 Component list for microcontroller mini-project and practical: Part 1: List of components co

Page 80

BM Dept., Govt. Engg. College, Gandhinagar Page 9 :: Rough Work ::

Comments to this Manuals

No comments