Jump from ISR


Closed Thread
Results 1 to 16 of 16

Thread: Jump from ISR

Hybrid View

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


    Did you find this post helpful? Yes | No

    Wink Expressing the "problem" is half way to solve it ...

    Hi, Yasser

    From reading your posts, I understand you want to scan your EEPROM, increasing address way, on a PORTB.4 H to L transition and decreasing addresses on a L to H transition ...

    Ok ...

    just use a FOR - NEXT EEPROM reading loop in the main program , if a "H2L" flag is set and a FOR-NEXT-STEP-1 EEPROM loop if a "L2H" flag is set.

    Note I use 2 flags to let the initial "no transition" condition usable for something Else...

    The ONLY questions will be : do you want to toggle reading order if EEPROM reading is not complete ???
    What will you do when EEPROM reading is complete ??? ( seems you wait for further transition ... )

    This has a strange smell of "K2000 scanner" or scrolling device ... really don't know why ... LOL !

    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 " !!!
    *****************************************

  2. #2


    Did you find this post helpful? Yes | No

    Wink Exactly I want ...

    Thanks dear Acetronics. OK. I should explain more about my problem. Suppose that I want to read EEPROM from 0000h-05DCh. Variable Add refers to address of place that should be read and displayed on LCD. When L2H interrupt occures, program starts displaying Add on LCD. Add increments one by one. If H2L interrupt doesn't occure Add rolles over and initialize with 0000. When H2L interrupt occures program should start displaing Add and decrement it one by one. For example if Add=100 and H2L occures, program starts displaying from 100 and decrement it. Suppose that Add reaches to 0000 and L2H interrupt doesn't occure. In this case program should initialize Add with 05DCh and decrement it one by one.
    Thanks again for your attention. I wait for your suggestions.
    ----
    Regards

Similar Threads

  1. DT-Ints latency and other interrupt conciderations
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 58
    Last Post: - 12th March 2010, 19:27
  2. ELSEIF Block Would be Good.
    By T.Jackson in forum PBP Wish List
    Replies: 30
    Last Post: - 14th May 2007, 04:36
  3. jump out from a for/next loop
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th March 2007, 16:50
  4. Jump into eeprom address
    By Lotondo in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 22nd April 2006, 19:29
  5. NEWBIE: Some basic questions using interrupts
    By JackPollack in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th March 2006, 03:59

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