1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Positioning 'ENABLE HIGH/DISABLE HIGH'

Discussion in 'Oshonsoft' started by camerart, Dec 7, 2015.

  1. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,404
    Likes:
    11
    Location:
    Dorset UK.
    Hi,

    Can someone tell me how and where to position ENABLE HIGH and DISABLE HIGH in a program please? Also can you clarify what they do?


    Camerart.
     
  2. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,304
    Likes:
    914
    Location:
    Rochdale UK
    Normally you enable high at the start of the program... Any high priority interrupt you have selected will now be operational.

    If you have to do a "time critical task" ie writing to internal eeprom.. Then disable high is used before the write and enable high after... If you are using low priority interrupts there is enable / disable low as well..
     
  3. camerart

    camerart Active Member

    Joined:
    Jun 12, 2008
    Messages:
    1,404
    Likes:
    11
    Location:
    Dorset UK.
    Hi Ian.

    I'm combining two programs together, which need to be together to work. There are only ENABLE HIGH in both programs, and as it is 'time critical' I will assume that I don't need ENABLE LOW.

    Thanks.

    C.
     

Share This Page