Upload
horatio-hicks
View
289
Download
8
Tags:
Embed Size (px)
Citation preview
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
ANTICLOCKWISE
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
CLOCKWISEREVERSE POLARITY MOTOR REVERSESLOAD 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 ANTICLOCKORG 0HMAIN:
SETB P1.0 ; ENABLEJNB P2.0 ,CLOCK ;CHECK THE CLOCKCLR P1.1;INPUT 1 ;COUNTER CLOCKWISESETB P1.2;INPUT2 ;
CLOCK:SETB P1.1;INPUT 1 ; CLOCKWISECLR P1.2;INPUT2 SJMP MAINEND
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 ram14 bytes of RAM ,for clock ,calender and control register114 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 latchedMOT: DS:
MOT is connected to ground
MOT=GND
DATA STROBEDS=READ DS is connected to RD
of 8051
LAKSHMI.B.E.
R/W:input pin .MOT=GNDWrite signalCS: IRQ:
Active low signalTo access read and writeIt only access external
vge>4.25v
Output pinActive low pinIt is in “B”register
LAKSHMI.B.E.
SQW: RESET:
Output pin .it produce 15 different square wave
Pin 18 is reset.It is an input.Active low pin
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 A,#20H; D6-D4 010 OSC
MOVX @R0,A;SEND IT TO REG
MOV R0,#11; REG BMOV A,#83H; BCD 24
HRS,DAYLIGHT
MOV X @R0,A
MOV R0,#0; SECONDS AT ADDR 0
MOV A,#50H;SECONDS=50
MOVX @R0,A; SET SECONDS
MOV R0,#02;MOV R0,#15H;MOVX @R0,A;MOV R0,#04;MOV R0,#16HMOVX @R0,A;
LAKSHMI.B.E.
LAKSHMI.B.E.
ROMNon-volatile DataMask ROM
Data written during chip fabricationPROM
Fuse ROM: Non-rewritableEPROM: Erase data by UV raysEEPROM: 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:MEMORY
IC NO. CAPACITY
ORG. PINS ADDRESS LINES
DATA LINES
UV EPROM
27162732
2764
16K32K
64K
2K×84K×8
8K×8
2424
28
11(2K=210×21)12(4K=210 ×22 )
13(8K=210 ×23 )
88
8
EEPROM 2816 16K 2K×8
MEMORY
IC NO. CAPACITY
ORG. PINS ADDRESS LINES
DATA LINES
UV EPROM
27162732
2764
16K32K
64K
2K×84K×8
8K×8
2424
28
11(2K=210×21)
12(4K=210
×22 )
13(8K=210
×23 )
88
8
EEPROM 2816 16K 2K×8 24 11(2K=210×21)
8
FLASH 28F010-15
1024K 128K×8 32 17(128K=210
×27)8
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 CostLAKSHMI.B.E.
RAM:MEMO
RY
IC NO: CAPACITY
ORG. PINS ADDRESS LINES
DATA LINES
SRAM 6264P 64K 8K×8 24 13 8
NV RAM DS 1220Y-
150
16K 2K×8 24 12 8
DRAM 41256-6
256K 256K×1
16 17 1
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
ADC :ADC is widely used for data acquisitionDigital computers are digital but physical world is
analog(continuous)TRANSDUCER:Physical quantity is converted to electrical quantityEx: load cell, strain gaugeTo 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 inputRD: WR:START CONVERSION)
Input signalActive low signalAnalogdigitalWhen CS=0 is applied to RD pinRDOE
Active low signalAnalogdigitalWhen CS=0 is applied to WR pin
LAKSHMI.B.E.
CLK IN CLK R
Input signalExternal clock is used for
timing
For internal clock generator CLK IN and CLK R are connected together to a capacitor and resistor
LAKSHMI.B.E.
Vcc:+5v power supplyVin(+) and Vin(-): INTR:
They are differential anlog inputs Vin=Vin(+) -Vin(-)
Output pinActive lowIt is normally high,When
conversion is finished ,it goes to low to CPU
LAKSHMI.B.E.
D0 to D7:DIGITAL DATA OUTPUTPARALLEL ADC.Dout= Vin
step sizeVref/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 2^8=256 2.56/256=10
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.
LAKSHMI.B.E.