Need help in code


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Thas i need to put WDT OFF or not?

    Yes im going to use low pullup pushbuttons rhas i have to do one more line code for it?

    Im very confuse

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by camolas View Post
    Thas i need to put WDT OFF or not?
    I wouldn't worry about it...

    Yes im going to use low pullup pushbuttons rhas i have to do one more line code for it?
    Sounds like you might need to back up a bit and work on the simple stuff first, i.e. make the blinky LED, make the LED follow a single button under SOFTWARE CONTROL, and so on and so on...build up to what you need.
    This 'jumping in with both feet' approach doesn't seem to be working out too well...

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Up in post#5 you are setting the fuses in code space. Have you commented out the lines in the *.inc file?
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Read post #1 and #5...

    And I do not see how the OSC is set or a
    Code:
    DEFINE OSC ??
    ?? being the speed.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    When you're using PM, you shouldn't need to bother with it. Just to confirm it, i just uncommented the one in a .INC file and write over them... no compilation errors for PM, and the config fuses are set as expected when i look them in my PIC Programmer software.

    If no OSC is defined, PBP will consider 4 MHz.. no big deal. Default XT fuses for PM is XT. it seems to have some activity, seems something work, i worry more about the program flow. I'm still trying to understand what the OP need to do

    Camolas, can you ask your question in your own language (i feel spanish) so maybe someone else here could help you to translate it for us (maybe google translation but )
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Hi again,

    Im Portugese next Europen winers cup (lol i hope)

    In Portugese:

    Pretendo controlar com um botao low pullup (ou mais se for necessario) um led da seguinte forma.
    -Quando o botao esta desligado demore 40s a acender o led e depois fique aceso durante 3s.
    Depois de apagado fique a espera de outro sinal (aqui podera ser um outro botao ou entao o mesmo quando fique no estado de ligado) e so volte a fazer a mesma rutina depois que o botao seja desligado led aceso.... ........

    Now more dificult in my best Inglish:

    I need to control a led with one low pullup pushbutton (or more if neded) to perform this tasck.
    -Wen pushbutton is not pressed tacks 40s then turn on led for 3s.
    So the led is now off then the code must whait for another signal ( i can use one more pushbutton or the same because e is on at this time) and then when this signal go to off e stars the rutine again, Wen pushbutton is not pressed tacks 40s then turn on led for 3s...


    Thanks all

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    camolas,

    Do you have a schematic you could post?
    Dave
    Always wear safety glasses while programming.

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    camolas,

    Do you have a schematic you could post?
    Yes i have please see it. (i put 2 bottuns but with a good code one i think can do the jobe)

    Thanks
    Attached Images Attached Images  
    Last edited by camolas; - 17th April 2008 at 23:51. Reason: forget te tell more things

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts