IOC flag triggered when PIC is unplugged...?


Results 1 to 14 of 14

Threaded View

  1. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: IOC flag triggered when PIC is unplugged...?

    That's what the IOC flag was used for; to check if a button was activated.
    That is a false assumption, all the IOC flag says is that a edge was detected, you need way more info to determine if it was a valid key press, at a minimum you need to know if its still "active" and if it was "active" for a reasonable time. no simple hw debounce solution will do all the work

    don't forget a 0.000000025S [thats 25nS ] pulse can trigger an ioc event , would you call that a key press
    how about 25uS what about 1mS , for my money i would ignore anything less than 50mS
    glacially slow for a Pic@32MHz

    ps , switches on long leads and breadboards are potentially difficult cases also
    Last edited by richard; - 22nd September 2024 at 04:01.
    Warning I'm not a teacher

Similar Threads

  1. Replies: 9
    Last Post: - 1st November 2016, 14:37
  2. DT_INTS-14.bas Reset Flag
    By Larryd in forum Serial
    Replies: 2
    Last Post: - 8th April 2013, 22:44
  3. Replies: 1
    Last Post: - 12th May 2012, 12:37
  4. How to know what pin triggered an interrupt?
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 13th October 2008, 07:29
  5. DS18B20 Busy Flag
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th November 2006, 13:21

Members who have read this thread : 9

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