PCB Heaven

Books => Learning the PIC micro-controller @ PCB Heaven - On line book discussion => Topic started by: alexservice on January 07, 2012, 17:17:10 PM

Title: PIC Tutorial - A Pushbutton turning an LED on and off
Post by: alexservice on January 07, 2012, 17:17:10 PM
Reference:http://www.pcbheaven.com/picpages/A_Pushbutton_turning_an_LED_on_and_off/
hi! i need some help with the above tutorial. i like the circuit but i want when i push the push button the led turns on and stays on, and when i push it again the led turns off. i need a toggle push button. so please tell me what i must change in the program or a new program thanks
Title: Re: PIC Tutorial - A Pushbutton turning an LED on and off
Post by: _pike on January 07, 2012, 18:49:29 PM
Hello and welcome to the forum i will post you the code later....I will make it for the same chip (pic16f88).


Ok here are the files you need. ;)
Title: Re: PIC Tutorial - A Pushbutton turning an LED on and off
Post by: alexservice on January 08, 2012, 14:55:14 PM
hi i want to thank you for the files. i am going to test them in the circuit and i will tell you. because i dont know many things about the microcontrollers pic, i suppose i must make a hex file. can you help me?
thanks a lot
Title: Re: PIC Tutorial - A Pushbutton turning an LED on and off
Post by: kam on January 08, 2012, 19:56:33 PM
what you wanna do is make a project in MPLAB and include the 3 files that pike sent you. then build the project and upload it in your pic.
Title: Re: PIC Tutorial - A Pushbutton turning an LED on and off
Post by: alexservice on January 08, 2012, 20:09:29 PM
thanks for the help i will do exactly you have written me.