IOC on a ACD pin ?


+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    808

    Default IOC on a ACD pin ?

    is it possible to trigger a IOC on a acd pin ?

    cheers

    Sheldon

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    869

    Default Re: IOC on a ACD pin ?

    My hunch is that it should be possible. You may need to configure the pin for digital input to capture the IO Change and then switch the pin to analog to get the analog value.

  3. #3
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    808

    Default Re: IOC on a ACD pin ?

    but would that not work if i was looking for a analog change not a logic change ?

  4. #4
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    869

    Default Re: IOC on a ACD pin ?

    Obviously not. You cannot have an interrupt on analog change.

  5. #5

    Default Re: IOC on a ACD pin ?

    Hello,
    You did not mention which pic you are using? Many pics have comparator modules connected to the analog pins. These can generate interrupts on change by setting the reference voltage to your desired trigger level.
    Just an idea, depending on your specific pic and available pins.

  6. #6
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    808

    Default Re: IOC on a ACD pin ?

    thats a good thought . the pic i am using is 16F1947 ,

    I IOC pins cannot be an analog pin on this chip.

    reason is i am using a 4 analog pins connected to a touch panel , so would be good to use a interrupt to serve the routine

Similar Threads

  1. Unorthodox use of IOC Port.B
    By mtripoli in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd April 2013, 21:06
  2. pulsin problem using IOC with DT_int14.bas
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 5th December 2012, 09:00
  3. Replies: 1
    Last Post: - 12th May 2012, 12:37
  4. A Simple IOC Routine (Interrupt On Change)
    By lugo.p in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th March 2010, 19:53
  5. IOC question
    By Adrian in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st April 2008, 19:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts