In this application, which if the link is relevant, as long as the button is pressed, the led light and the while loop stops work due to codes.
For this reason, the a button while holding down other buttons simply has no meaning. In addition, LEDs and buttons for the connects the LEDs of the buttons and pins are defined with the #define is changed in code, there is no need to change much.
Led control circuit proteus isis schematic
Hi Tech C Example While Loop code and circuit files:
While Loop Button with Led Control Hi Tech C Example
Password: 320volt.com
Published: 2011/01/14 Tags: hi tech c examples, microchip projects, microcontroller projects
Button with Relay Control Hi Tech C Example
This application has been checked with the relay 220v lamp. The lamp illuminates when the button is first pressed, pressed and released again when the lamp is turned off. microcontroller output current is not enough to drive relays directly. For this, the output current of a transistor is increased. EMK opposite will occur in the relay coil to prevent corrupting the transistor opposite to the ends of the relay coil is connected to a diode.
Proteus Isis Relay Control Circuit