PPS understanding on 16F15313


Closed Thread
Results 1 to 15 of 15

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: PPS understanding on 16F15313

    not sure your ioc solution will work
    the ioc interrupt flag pir0.4 is not being cleared . you only clear the ioc pin flag, its not enough.
    Warning I'm not a teacher

  2. #2
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default Re: PPS understanding on 16F15313

    The IOC may not work. I had those in DT_INTS when I was trying to use that instead of CCP. I will have to go back and address that.

  3. #3
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default Re: PPS understanding on 16F15313

    For reference, I found a missed line when I copied this to here:

    Code:
    '---[CCP1 - interrupt handler]------------------------------------------
    Capture:  ' Enter here with PulseIN (CCP1) 
        if CCP1CON = %10000101 then    ' If rising edge capture, then
            toggle LED1
            CCP1CON = %10000100    ' switch to falling edge 
            goto Over_CCP   ' Done, exit  
        endif
     if CCP1CON = %10000100 then   ' If falling edge capture, then
        toggle LED2
        CCP1CON = %10000101    ' switch back to rising edge
     endif
     Over_CCP    
    @ INT_RETURN

Similar Threads

  1. PIC18F27J13 Peripheral Pin Select (PPS)
    By Aussie Barry in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th April 2015, 12:51
  2. DIV32 Understanding
    By enauman in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th January 2013, 20:44
  3. Help in Understanding the Math
    By Ramius in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th March 2012, 15:49
  4. So many option but little understanding
    By PickyBiker in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 23rd April 2010, 09:45
  5. Better understanding PULSIN
    By Wirecut in forum mel PIC BASIC
    Replies: 12
    Last Post: - 29th June 2008, 10:17

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

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