Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 20, 2024, 04:59:19 04:59


Login with username, password and session length


Pages: [1]
Print
Author Topic: pic on & off timer  (Read 5901 times)
0 Members and 1 Guest are viewing this topic.
setiorion007
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 8
-Receive: 2


« on: May 11, 2010, 10:15:49 10:15 »

Hello friends

I need some help with a code for PIC 10f202/10f204/10f206/10f220

I am trying to make a small circuit that can turn on  an led for 1 sec and turn off for 2 hours  and the cycle continues

I am new to  the Pic world and i am learning Proton picbasic  so i would appreciate if asome one can give me the code

i would also need some tips on how to set times or calculate time for a pic 
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4647

Thank You
-Given: 826
-Receive: 4207


There is no evidence that I muted SoNsIvRi


« Reply #1 on: May 11, 2010, 11:46:39 11:46 »

First thing to do is look here
http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en020030
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
FriskyFerret
Hero Member
*****
Offline Offline

Posts: 560

Thank You
-Given: 513
-Receive: 360


Put it in, take it out.


WWW
« Reply #2 on: May 11, 2010, 12:37:00 12:37 »

I need some help with a code for PIC 10f202/10f204/10f206/10f220...so i would appreciate if someone can give me the code.

[facetious]You don't need "help", you want someone to write code to you specification. You want a contract programmer. I'm sure if you put 5 Euros into someone's Paypal account on this forum they would be very happy to write and test the code for you.[/facetious]

Logged

Dancing pants and leotards, that's what I'm talkin' about!
setiorion007
Newbie
*
Offline Offline

Posts: 15

Thank You
-Given: 8
-Receive: 2


« Reply #3 on: May 11, 2010, 02:44:11 14:44 »

Well can some one help me with  the code please
Logged
oldvan
Senior Member
****
Offline Offline

Posts: 372

Thank You
-Given: 154
-Receive: 107


If the van is a Rockin'...


WWW
« Reply #4 on: May 11, 2010, 03:36:28 15:36 »

This thread may give you some insights:

http://www.sonsivri.com/forum/index.php?topic=5076.0
Logged

Give a man a fish and you feed him for a day.
Teach a man to fish and he will sit around in a boat drinking beer all day.
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #5 on: May 11, 2010, 04:19:11 16:19 »

Try to "ON" your mind to be able to write the PIC on/off code your self.. Say help me (asking someone to write the code for you) and you are gone..
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4647

Thank You
-Given: 826
-Receive: 4207


There is no evidence that I muted SoNsIvRi


« Reply #6 on: May 11, 2010, 04:35:11 16:35 »

Look Here, we have said before, we don't do school work.

http://www.sonsivri.com/forum/index.php?topic=17015.msg74519#msg74519

Start your code, show it, and then ask for help.
« Last Edit: May 12, 2010, 12:55:51 00:55 by pickit2 » Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
kalpakchiev
Active Member
***
Offline Offline

Posts: 137

Thank You
-Given: 34
-Receive: 68



« Reply #7 on: June 09, 2010, 07:25:59 07:25 »

The code You asked for, must look like this:

                @ DEVICE PIC10F202,INTRC_OSC
      @ DEVICE PIC10F202,MCLR_OFF
      @ DEVICE PIC10F202,PROTECT_OFF
      @ DEVICE PIC10F202,WDT_OFF
      
      DEFINE   OSC   4
            
      TRISIO     = %00000000
      
      LED   VAR   GPIO.0
                I       VAR   BYTE
      
      BEGIN:
        LED=1
                  PAUSE 1000
                  LED=0

                  FOR I =1 TO 120
                    PAUSE 60000
                  NEXT I

                GOTO BEGIN
   
There are a lot of ways to do it, this is one of them.   
Best regards,
Ivan Kalpakchiev
« Last Edit: June 09, 2010, 07:29:24 07:29 by kalpakchiev » Logged

A known mistake is better than an unknown truth.
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC