Home     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Tech-BLOG     RSS     Terms of services     Privacy policy  
 Home     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Tech-News     RSS   

Author Topic: PIC Tutorial - A Pushbutton turning an LED on and off  (Read 336 times)

alexservice

  • Newbie
  • *
  • Posts: 3
    • View Profile
PIC Tutorial - A Pushbutton turning an LED on and off
« on: January 07, 2012, 18: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

_pike

  • Administrator
  • Full Member
  • *****
  • Posts: 144
    • View Profile
Re: PIC Tutorial - A Pushbutton turning an LED on and off
« Reply #1 on: January 07, 2012, 19: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. ;)
« Last Edit: January 07, 2012, 22:21:34 PM by _pike »
The only difference between men and boys is the price of their toys....

alexservice

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: PIC Tutorial - A Pushbutton turning an LED on and off
« Reply #2 on: January 08, 2012, 15: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

kam

  • Administrator
  • Hero Member
  • *****
  • Posts: 1331
    • View Profile
Re: PIC Tutorial - A Pushbutton turning an LED on and off
« Reply #3 on: January 08, 2012, 20: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.
And on the eighth day God said, "Okay, Murphy, you're in charge!"

alexservice

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: PIC Tutorial - A Pushbutton turning an LED on and off
« Reply #4 on: January 08, 2012, 21:09:29 PM »
thanks for the help i will do exactly you have written me.