why?


Closed Thread
Results 1 to 12 of 12

Thread: why?

  1. #1
    HBFR's Avatar
    HBFR Guest

    Default why?

    'Why led0 fash for ever
    Wat I must do to stay in ASM "loop" start goto start

    '16F84A

    '----- DEFINE ------------------
    DEFINE OSC 8 ' 8 Mhz XT
    '----- Port --------------------

    TRISA=%1111 '1 in
    TRISB=%11111110 '0 portB.0 out

    '----- VAR ---------------------

    led0 var portB.0

    '----- INIT --------------------

    pause 200
    low led0
    pause 200
    high led0
    pause 200

    '----- PGM -------------
    main:

    ASM
    start
    goto start
    endasm

    goto main

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Why? indeed

    The PIC is probably reseting itself over and over when the Watch Dog Timer times out.

    You could put a CLRWDT after start, or just lose the ASM and use

    start:
    goto start

    - or -

    STOP

    _________________
    Best regards,
    <-- Darrel -->

    Concentrate on the RED light .... You are getting sleepy ... You feel a sudden urge to contribute to this thread .... When I count to 3 .... you WILL post a reply .. 1 .. 2 .. 3 !

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


    Did you find this post helpful? Yes | No

    Default

    Your signature work darrel!...

    i agree 100% with the watch dog timer stuff If he is enable at programming time. It could be also a floating MCLR pin too...
    Steve

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

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    You working for the Cylons now Darrel?

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


    Did you find this post helpful? Yes | No

    Default

    It also remind the front lights of K-2000 car... many many years ago
    Steve

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

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Working for the Cylons?

    Well, I don't think so. But, if there's another me on planet Caprica .....

    and, oh yes, who could forget "KIT" the car.

    _________________
    Best regards,
    <-- Darrel -->

    Concentrate on the RED light .... You are getting sleepy ... You feel a sudden urge to contribute to this thread .... When I count to 3 .... you WILL post a reply .. 1 .. 2 .. 3 !

  7. #7
    jessey's Avatar
    jessey Guest


    Did you find this post helpful? Yes | No

    Default

    For some strange reason I just couldn't help but to reply LOL Good one Darrel!

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Jessey,

    Long time no hear ...

    Well, the signature seems to be working well!

    Now am just sorry i didn't go with the original plan ....

    .... When I count to 3 .... you WILL send money to Darrel Taylor

    _________________
    Best regards,
    <-- Darrel -->

    Concentrate on the RED light .... You are getting sleepy ... You feel a sudden urge to contribute to this thread .... When I count to 3 .... you WILL post a reply .. 1 .. 2 .. 3 !

  9. #9
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    For some odd reason I felt the urge to send Money....So I did...

    Money
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

  10. #10
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    I'm sorry Darrel,

    with a WatchDog TimeOut occuring before you had counted up to 3
    never got that "3"

    So I had no reason for sending money.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  11. #11
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default



    To both of you.

  12. #12
    Join Date
    Jul 2005
    Posts
    65


    Did you find this post helpful? Yes | No

    Smile

    Hello

    To all of you:

    Most Impressive !!

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