How to wire up Microcontroller 89s51?

Thread Starter

exalive

Joined May 3, 2009
3
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


 

Arm_n_Legs

Joined Mar 7, 2007
186
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.
 

Thread Starter

exalive

Joined May 3, 2009
3
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 ?
 

Attachments

Top