How to wire up Microcontroller 89s51?

Discussion in 'Embedded Systems and Microcontrollers' started by exalive, May 5, 2009.

  1. exalive

    Thread Starter New Member

    May 3, 2009
    3
    0
    Hi, Just a question to ask , I have upload the assembly coding into the AT89s51, I have 2 inputs & 1 output , the output will be connected to a LED , the inputs will be switches, How to i go about in wiring up the micro controller? I still a newbie in this , How to wire up the inputs ports? i using a 12MHZ cystal ocsillator , 33 pf capticator, & a NPN transistor


    [​IMG]
     
  2. Arm_n_Legs

    Active Member

    Mar 7, 2007
    183
    10
    Your circuit is ok but missed the reset circuit. Connect a capacitor to the RESET pin with the other end tie to Vcc. Refer to the datasheet for the cap value. To connect switches as input, just tie the other end of the switch to ground.
     
  3. exalive

    Thread Starter New Member

    May 3, 2009
    3
    0
    hey Arm_n_legs , are you good at Assembly language? Mind helping me check if my coding is correct? help me check if there will there be output P1.1, coming out when i toggle the inputs P2.2 & P2.1 ?
     
Loading...