Sie sind auf Seite 1von 53

DC MOTOR

LAKSHMI.B.E.

DC MOTOR WORKING

LAKSHMI.B.E.

H BRIDGE DC MOTOR

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

MOTOR OPERATION

SW1

SW2

SW3

SW4

OFF

OPEN

OPEN

OPEN

OPEN

CLOCKWISE

CLOSED

OPEN

CLOSED

OPEN

ANTICLOCK WISE

OPEN

CLOSED

OPEN

CLOSED

INVALID

CLOSED

CLOSED

CLOSED

CLOSED

LAKSHMI.B.E.

INTERFACING WITH DC MOTOR

LAKSHMI.B.E.

OPERATION:
TRANSLATE ELECTRIC ENERGYMECHANICAL

MOVEMENT + TO LEADS PRODUCE THE MOTOR CLOCKWISE REVERSE POLARITY MOTOR REVERSES LOAD VOLTAGE SPEED IS REPRESENTED BY RPM

LAKSHMI.B.E.

USING L293,RUN A DC MOTOR, SWITCH P2.0 IF SW=0,ROTATE CLOCK,SW=1 , ROT ANTICLOCK


ORG 0H MAIN: SETB P1.0 ; ENABLE JNB P2.0 ,CLOCK ;CHECK THE CLOCK CLR P1.1;INPUT 1 ;COUNTER CLOCKWISE SETB P1.2;INPUT2 ; CLOCK: SETB P1.1;INPUT 1 ; CLOCKWISE CLR P1.2;INPUT2 SJMP MAIN END
LAKSHMI.B.E.

LAKSHMI.B.E.

DS 12887:

LAKSHMI.B.E.

DS 12887:

LAKSHMI.B.E.

DS 12887:

LAKSHMI.B.E.

PIN DIAGRAM FOR DS 12887

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

Memory:
128 bytes of non volatile ram
14 bytes of RAM ,for clock ,calender and control register 114 bytes of NV-RAM

LAKSHMI.B.E.

AS:ADDRESS STROBE is an input pin,on the


falling edge it will cause the address to be latched
MOT:

DS:

MOT is connected to ground

DATA STROBE DS=READ

MOT=GND

DS is connected to RD of 8051

LAKSHMI.B.E.

R/W:input pin .MOT=GNDWrite signal


CS:

IRQ:

Active low signal To access read and write

Output pin Active low pin

It only access external vge>4.25v

It is in Bregister

LAKSHMI.B.E.

SQW:

RESET:
Pin 18 is reset.It is an input. Active low pin

Output pin .it produce 15 different square wave

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

Setting the time(16:15:50 pm)


MOV R0,#10;ADDR OR
A REGISTER

MOV R0,#0; SECONDS AT


ADDR 0

MOV A,#20H; D6-D4 010 OSC MOVX @R0,A;SEND IT TO


REG

MOV A,#50H;SECONDS=50 MOVX @R0,A; SET SECONDS

MOV R0,#02;
MOV R0,#15H; MOVX @R0,A;

MOV R0,#11; REG B MOV A,#83H; BCD 24


HRS,DAYLIGHT

MOV R0,#04;
MOV R0,#16H MOVX @R0,A;

MOV X @R0,A

LAKSHMI.B.E.

LAKSHMI.B.E.

ROM
Non-volatile Data
Mask ROM Data written during chip fabrication PROM Fuse ROM: Non-rewritable EPROM: Erase data by UV rays EEPROM: Erase and write through electrical means

Speed 2-3 times slower than RAM Upper limit on write operations Flash Memory High density, Low Cost
LAKSHMI.B.E.

ROM:
MEMO MEMO RY RY
IC NO. IC NO. CAPACI CAPACI TY TY ORG. ORG. PINS PINS ADDRESS ADDRESS LINES LINES DATA DATA LINES LINES 2716 2716 2732 2732 2764 2764 2816 2816

UV UV EPROM EPROM

16K 16K 32K 32K 64K 64K 16K 16K

2K8 2K8 24 24 4K8 4K8 24 24 8K8 8K8 28 28 2K8 2K8


24

EEPROM EEPROM

11(2K=21021 11(2K=21021) ) 8 12(4K=210 2 12(4K=210 222 ) 8 ) 13(8K=210 23 ) 8 13(8K=210 23 ) 10 1 11(2K=2 2 )

8 8 8

FLASH

28F010- 1024K 15

128K8

32

17(128K=2102 7)

LAKSHMI.B.E.

LAKSHMI.B.E.

RAM
Random write and read operation for any cell Volatile data Most of computer memory DRAM
Low Cost
High Density Medium Speed

SRAM
High Speed Ease of use Medium Cost
LAKSHMI.B.E.

RAM:
MEMO RY
SRAM
IC NO: CAPACI TY ORG. PINS ADDRES S LINES DATA LINES

6264P

64K

8K8

24

13

NV RAM

DS 1220Y150

16K

2K8

24

12

DRAM

4125 6-6

256K

256K 1

16

17

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

ADC :
ADC is widely used for data acquisition
Digital computers are digital but physical world is

analog(continuous) TRANSDUCER: Physical quantity is converted to electrical quantity Ex: load cell, strain gauge To translate this analog to digital converter is used.

LAKSHMI.B.E.

Step size:
The smallest change that can discerned by adc.

Conversion time:
The time takes to convert analog to digital

LAKSHMI.B.E.

LAKSHMI.B.E.

CS:Active low input


RD:
Input signal Active low signal Analogdigital When CS=0 RDOE

WR:START CONVERSION)
Active low signal Analogdigital When CS=0

is applied to WR pin

is applied to RD pin

LAKSHMI.B.E.

CLK IN
Input signal External clock is used for

CLK R
For internal clock generator

timing

CLK IN and CLK R are connected together to a capacitor and resistor

LAKSHMI.B.E.

Vcc:+5v power supply


Vin(+) and Vin(-):
They are differential anlog

INTR:
Output pin Active low It is normally high,When

inputs Vin=Vin(+) -Vin(-)

conversion is finished ,it goes to low to CPU

LAKSHMI.B.E.

D0 to D7:DIGITAL DATA OUTPUT PARALLEL ADC.Dout= Vin step size


Vref/2 Vin(v) Number of steps(2^n) Step size(mv)

Not connected

0 t05

2^8=256

5/256=19.53

2.0

0 t0 4

2^8=256

4/255=15.62

1.5

0 t03

2^8=256

3/256=11.71

1.28

0 t0 2.56
LAKSHMI.B.E.

2^8=256

2.56/256=10

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

RD BIT P3.7 WR BIT P3.6 INTR BIT P3.2;END OF CONVERSION ;DISPLAY MOV P1,#0FFH SETB INTR AGAIN: CLR WR SETB WR HERE:JB INTR ,HERE CLR RD MOV P1,#55H SETB RD SJMP AGAIN
LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

LAKSHMI.B.E.

Das könnte Ihnen auch gefallen