Permanent sleep


Closed Thread
Results 1 to 40 of 59

Thread: Permanent sleep

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile How about this

    Quote Originally Posted by Acetronics View Post
    Those who really followed this thread have surely noticed there could have been other lines inserted between :

    @ SLEEP
    @ nop

    AND ...

    Blink:

    didn't you ??? ....

    Alain
    Hello Alain,

    Do you mean:
    @ SLEEP
    @ nop
    snore
    Blink:
    turn-over
    @ SLEEP

    Then again, sometimes I "just don’t quite get it"...
    -Adam-
    Ohm it's not just a good idea... it's the LAW !

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


    Did you find this post helpful? Yes | No

    Default

    Gotta get new glasses.

    @nap

    Did not work
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Wink

    <body onload="setInterval('blinkIt()',1000)">

    <script type="text/javascript">
    function blinkIt() {
    if (!document.all) return;
    else {
    for(i=0;i<document.all.tags('blink').length;i++){
    s=document.all.tags('blink')[i];
    s.style.visibility=(s.style.visibility=='visible') ?'hidden':'visible';
    }
    }
    }
    </script>

    <blink>@ NOP</blink>

    @nap will just define a label
    nap without the @, is a PBP function, and it's not the same as ASM
    <blink>@ NOP</blink>
    Steve

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

  4. #4
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default

    A half hearted compile of your code (Alian) for the 16F873A gave an error with DEFINE INTHAND _Blink.

    I changed it to DEFINE INTHAND Blink and it did not come out of sleep (I presume) the same code compiles OK for the 16F628A.

    I am sorry , I was busy with some other job, but today I shall try your code for the intended chip and post results.

    Thank you for all your help,

    regards

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking Rtfm !!!

    Hi, Charudatt

    See chapter 9.3 ...

    your device ( 16F873 ) has two mem. pages ... 16F628 only has ONE.

    What does PbP for ASM Interrupts ???

    What do you have to reserve as variables room ???


    TWO beers now !!!

    Cheers

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    <body onload="setInterval('blinkIt()',1000)">

    <script type="text/javascript">
    function blinkIt() {
    if (!document.all) return;
    else {
    for(i=0;i<document.all.tags('blink').length;i++){
    s=document.all.tags('blink')[i];
    s.style.visibility=(s.style.visibility=='visible') ?'hidden':'visible';
    }
    }
    }
    </script>

    <blink>@ NOP</blink>

    @nap will just define a label
    nap without the @, is a PBP function, and it's not the same as ASM
    <blink>@ NOP</blink>
    C'mon Mister_e, you can do better than that! - show us all some of your "real" java skills, like scrolling some 3D text with user definable parameters.

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


    Did you find this post helpful? Yes | No

    Default

    euh... sorry i don't have any Java skills... i just copy/paste some script here and there.
    Steve

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

  8. #8
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Post

    I'm about to start a Java unit soon - maybe I'll teach you a thing or two Out of interest, I've just found some good code for VB that allows serial comms without MSCOMM.ocx !!! http://www.thescarms.com/VBasic/commio.aspx No probs in XP either.

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


    Did you find this post helpful? Yes | No

    Default

    it's just too bad that it doesn't allow to open COM port > 15 or 16
    Steve

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

  10. #10
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking

    Quote Originally Posted by Pic_User View Post
    Hello Alain,

    Do you mean:
    @ SLEEP
    @ nop
    snore
    Blink:
    turn-over
    @ SLEEP

    Then again, sometimes I "just don’t quite get it"...
    -Adam-
    Hi, Adam

    Snore never happens ... might be a LABEL to call before !!!

    Alain
    Last edited by Acetronics2; - 15th May 2007 at 09:55.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Won't go back to SLEEP after 1st Interrupt
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 29th June 2009, 09:00
  2. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 07:12
  3. Using Sleep
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th August 2008, 04:05
  4. 16F628A current high during sleep
    By Rubicon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th October 2006, 10:21
  5. Wierd sleep issue
    By orca in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th March 2006, 22:06

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