Home     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS     Terms of services     Privacy policy  
   
 Home     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science   

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

0 Members and 1 Guest are viewing this topic.

alexservice

  • Guest
PIC Tutorial - A Pushbutton turning an LED on and off
« 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

_pike

  • Administrator
  • Full Member
  • *****
  • Posts: 182
Re: PIC Tutorial - A Pushbutton turning an LED on and off
« Reply #1 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. ;)
« Last Edit: January 07, 2012, 21:21:34 PM by _pike »

alexservice

  • Guest
Re: PIC Tutorial - A Pushbutton turning an LED on and off
« Reply #2 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

kam

  • Administrator
  • Hero Member
  • *****
  • Posts: 1849
Re: PIC Tutorial - A Pushbutton turning an LED on and off
« Reply #3 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.

alexservice

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