Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 09, 2016, 02:34:38 14:34


Login with username, password and session length


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

Posts: 19

Thank You
-Given: 8
-Receive: 2


« on: May 11, 2010, 11:15:49 11: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: 3816

Thank You
-Given: 567
-Receive: 2049


There is no evidence that I muted SoNsIvRi


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

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

Note: If you have no posts other than, I want or reporting a dead link Then you can't complain If I remove your post So Stop Leeching
FriskyFerret
Hero Member
*****
Offline Offline

Posts: 564

Thank You
-Given: 513
-Receive: 358


Put it in, take it out.


WWW
« Reply #2 on: May 11, 2010, 01:37:00 13: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: 19

Thank You
-Given: 8
-Receive: 2


« Reply #3 on: May 11, 2010, 03:44:11 15:44 »

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

Posts: 375

Thank You
-Given: 152
-Receive: 106


If the van is a Rockin'...


WWW
« Reply #4 on: May 11, 2010, 04:36:28 16: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: 2018

Thank You
-Given: 514
-Receive: 477


Top Topic Starter


« Reply #5 on: May 11, 2010, 05:19:11 17: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

nothing to say..
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 3816

Thank You
-Given: 567
-Receive: 2049


There is no evidence that I muted SoNsIvRi


« Reply #6 on: May 11, 2010, 05:35:11 17: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, 01:55:51 01:55 by pickit2 » Logged

Note: If you have no posts other than, I want or reporting a dead link Then you can't complain If I remove your post So Stop Leeching
kalpakchiev
Active Member
***
Offline Offline

Posts: 137

Thank You
-Given: 34
-Receive: 67



« Reply #7 on: June 09, 2010, 08:25:59 08: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, 08:29:24 08: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