PSMCKT

Embed Size (px)

Citation preview

  • 7/27/2019 PSMCKT

    1/5

    VCC

    VCC

    VCC

    VCC

    VCC

    C1

    10UP

    R1

    47K

    C333PF

    C233PF

    Y1

    12MHzxTAL

    U6

    VCC

    U6

    VCC U1

    AT89C51

    91819 29

    30

    31

    12345678

    2122232425262728

    1011121314151617

    3938373635343332

    RSTXTAL2XTAL1 PSEN

    ALE/PROG

    EA/VPP

    P1.0P1.1P1.2

    P1.3P1.4P1.5P1.6P1.7

    P2.0/A8P2.1/A9

    P2.2/A10P2.3/A11P2.4/A12P2.5/A13P2.6/A14P2.7/A15

    P3.0/RXDP3.1/TXD

    P3.2/INTO

    P3.3/INT1P3.4/TOP3.5/T1

    P3.6/WRP3.7/RD

    P0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7

    R2470e

    U8

    MCT2E

    1 6

    2

    5

    4

    R2

    10K

    R22k2

    R2

    10K

    R2470e

    R22k2

    R2

    10K

    R22k2

    R2470e

    U8

    MCT2E

    1 6

    2

    5

    4

    U8

    MCT2E

    1 6

    2

    5

    4

    R2470e

    R22k2

    R2

    10K

    U8

    MCT2E

    1 6

    2

    5

    4

    R2

    10KR2470e

    R22k2

    U8

    MCT2E

    1 6

    2

    5

    4

    IF_IN

    IF_IN

    IF_IN

    IF_IN

    IF_OUT

    IF_IN

    IF_IN

    IF_OUT

    IF_OUT

    IF_IN

    IF_IN

    IF_OUT

    IF_IN

    IF_OUT

    IF_IN

    IF_IN

    IF_IN

    Card Reader

    P0.4

    LPT PIN-2

    LPT PIN-25

    P1.0

    LPT PIN-3

    P1.1LPT PIN-25

    LPT PIN-25

    LPT PIN-4

    LPT PIN-6

    LPT PIN-25

    LPT PIN-5

    P1.2

    P1.3

    LPT PIN-25

    MICROCANTROLAR AND LPT PORT INTERFACING CIRCUIT

  • 7/27/2019 PSMCKT

    2/5

    vcc-9v

    CONECTOR

    CONECTOR T1

    TRANSFORMER STEPDOWN

    1

    4

    5

    8

    U11 IC1 7905

    1 3

    2

    VIN VOUT

    ADJ

    U11 IC1 78121 3

    2

    VIN VOUT

    ADJ

    C5

    470 UF

    U11 IC1 7909

    1 3

    2

    VIN VOUT

    ADJ

    U6+12v

    SW1

    ON / OFFSWITCH

    1 2

    - +

    IN 4007

    1

    2

    3

    4230 V AC 50 HZ

    POWER SUPPLY CIRCUIT

  • 7/27/2019 PSMCKT

    3/5

    +12v

    +12v

    0

    +12v

    +12v

    +12v

    0

    +12v

    0

    0

    0

    0

    0

    0

    IF_IN

    IF_IN

    IF_IN

    IF_IN

    IF_IN

    IF_IN

    Q1BC547

    12

    3

    K2

    RELAY

    43

    12

    U6

    VCC

    R210K

    K1

    RELAY

    43

    12R22k2

    U7

    MCT2E

    1 6

    2

    5

    4

    U8

    MCT2E

    1 6

    2

    5

    4

    R22k2

    R210K

    R2470e Q2BC547

    12

    3

    R2470e

    Q2BC547

    12

    3

    U8

    MCT2E

    1 6

    2

    5

    4

    Q1BC547

    12

    3R210K

    K2

    RELAY

    43

    1

    2

    R210K

    U6

    VCCK1

    RELAY

    43

    12

    R2470e

    R22k2

    R22k2

    R2470e

    U7

    MCT2E

    1 6

    2

    5

    4

    R210K

    R2470e

    R22k2

    K2

    RELAY

    43

    12

    R22k2

    U6

    VCCK1

    RELAY

    43

    12

    U8

    MCT2E

    1 6

    2

    5

    4

    R2470e

    R210K

    Q1

    BC547

    12

    3

    Q2BC547

    12

    3

    U7

    MCT2E

    1 6

    2

    5

    4

    P2.0

    P2.1

    P2.2

    P2.3

    P2.4

    P2.5

    RELAY INTERFACE CIRCUIT

  • 7/27/2019 PSMCKT

    4/5

    CIRCUIT DESCRIPTION

    This one is a simple timing control project that executes many times-based

    tasks.

    An Atmel Micro controller has become our target micro controller.

    Micro controller kit is interface with our PC. The circuit diagram shows the

    interfacing the micro controller with our PCs LPT port pin 2,3,4,5,6 & 25.

    LPT port pin 2 to pin 9 are output pin and 25 pin is ground pin. LPT port pin

    2 is connected to pin no 1 MCT2E through resistor 270 ohms and MCT2E

    pin 2 is connected to LPT port pin 25. Simultaneously all MCT2E is

    connected to all LPT port pin 3 to 6 and pin 25 (MCT2E is a optocoupler IC)

    to protect the PC and micro controller kit) All pin 5 of MCT2E is connected

    to Vcc of power supply and all pin 4 of MCT2E is connected to its micro

    controller port P 1. P 1.0,P 1.1, P 1.2, P1.3, P1.4 respectively through

    resistor 1k.

    Capacitor 10 micro Farad 50V is connected to pin 9 through resistor 10K

    ohms and crystal 12 MHz and 33 pico Farad is connected is connected to pin

    18 and pin 19 of micro controller. The micro controller port 2 of pin 21. 22,

    23, 24 and 25 (P2.3, P2.4, P2.5, P2.6, P2,7) is connected to all MCT2E pin

    2, of all through resistor 270 ohm and pin 1 is connected to board. Pin 4 is

    connected the box of transistor BC 457 through resistor 10K and collector of

    transistor is connected to 12V through resistor 270 ohm and R1Y5 (12V).

  • 7/27/2019 PSMCKT

    5/5

    The data from the PC is given to micro controller. The micro controller then

    calculates the bit and proceeds further. The control will be transferred to the

    relay unit. As per the data fetched from the PC the micro controller operates

    on it. Then the power board controls all the room power supply.

    The circuit is given the power supply, using the Transformer. It is given 230

    V AC supply. Four diodes are connected to the transformer.

    Voltage Regulators are used to regulate the voltage. The following voltage

    regulators are used to generate various outputs :

    7812 regulator generates a +12V supply.

    7912 regulator generates a 12V supply.

    7809 regulator generates +9V supply.

    7805 regulator generates +5V vcc supply.

    - 12V is given to the relay.

    - +5V, vcc are given to the Pin No. 31,40 of the Micro

    Controller 89C51.