PICs interrupts - I don't clearly understand the DS's "vocabulary"


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891

    Default PICs interrupts - I don't clearly understand the DS's "vocabulary"

    Hello,

    I need some clarification about the interrupts's vocabulary used in the datasheets - still don't understand all of this sometimes strange language

    What exactly are or what is the difference between:

    1.- "unmasked" interrupts?

    2.- "unmasked peripheral" interrupts?

    3.- "external" interrupts?

    4.- "change" interrupts?
    Roger

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: PICs interrupts - I don't clearly understand the DS's "vocabulary"

    1.- "unmasked" interrupts?
    This would be ANY interrupt that has its enable bit set.

    2.- "unmasked peripheral" interrupts?
    This would be an "enabled" interrupt that comes from any of the peripherals (timers, usart, ADC, MSSP etc)

    3.- "external" interrupts?
    This would be INT0, INT1 etc

    4.- "change" interrupts?
    This would be the Interrupt on change feature normally available on PortB.4-7

    The interrupt flag for each available interrupt is always set when the "event" happends (timer overflows, byte comes in on the USART etc). But if the interrupt isn't "enabled" the interrupt flag won't actually cause an interrupt - the interrupt is masked.

    /Henrik.

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Thumbs up Re: PICs interrupts - I don't clearly understand the DS's "vocabulary"

    Thanks a lot Henrik,

    That is just as clear as crystal!

    I dream data-sheets could be as clear as your explanation

    Thanks again and have a nice day.
    Roger

  4. #4
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    644


    Did you find this post helpful? Yes | No

    Default Re: PICs interrupts - I don't clearly understand the DS's "vocabulary"

    Quote Originally Posted by HenrikOlsson View Post
    3.- "external" interrupts?
    This would be INT0, INT1 etc
    Henrik,

    Thank you for clarifying these concepts for many of us. Now, isn't INT0 and INT1 internally available in the chips? Do you mean by "External" that you are feeding an external clock signal to INT0 and INT1?

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: PICs interrupts - I don't clearly understand the DS's "vocabulary"

    Hi,
    Not exactly sure what you mean. I guess you can trip the INT0 interrupt "internally" simply by setting the interrupt flag so in that sense they are available internally. But what is meant by external is that the event causing the interrupt is being external to the PIC itself, ie an event on the physical pin. In the case if INT0 (which is usually on PortB.0) either a rising a falling edge depending on how it's setup.

    /Henrik.

  6. #6
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default Re: PICs interrupts - I don't clearly understand the DS's "vocabulary"

    One more question please,

    What does this mean?
    Name:  OICA.jpg
Views: 2035
Size:  111.9 KB
    Shall it mean, that in XT, HS and LP Oscillator modes, no level change (from 1 to 0) will ever be seen by the PIC?
    Roger

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


    Did you find this post helpful? Yes | No

    Default Re: PICs interrupts - I don't clearly understand the DS's "vocabulary"

    I would bet those pins are assign to those you connect the Crystal to... so they're no longer regular I/O... I'm I right copain d'outre-mer?
    Steve

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

  8. #8
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default Re: PICs interrupts - I don't clearly understand the DS's "vocabulary"

    Even Crystals have sometimes opaque zones....

    Et bien le bonjour aux amis du pays du sirop d'érable
    Roger

Members who have read this thread : 1

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