I want to make a Blink a LED every 30 Sec.
Using 10F20x, 1 push-button and one LED.
The device should be in SLEEP mode till the push-button press as it act as On/Off switch, blink the LED and go to sleep for a 30 sec, then wake-up blink a LED and go to sleep again for 30 sec.
Only when pressing the push-button again it should go to sleep forever (till on/off again)
Can someone help me with this kind of code.
Thanks.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Thu Sep 13, 2012 1:00 pm
1. Post the full part number of the PIC you are using (not 10F20x).
2. Try to write the code. Then post your program and explain what
works, and what doesn't work.
3. Post your CCS compiler version.
4. We don't want to do your school homework for you. You must do it.
We can help if you get stuck on a certain part of it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum