DT-INt and Interrupt on Change


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Location
    Southern California
    Posts
    86


    Did you find this post helpful? Yes | No

    Default Re: DT-INt and Interrupt on Change

    Thanks Darrel, that definitely helps clear things in my head. I kept merging the two types of interrupts in my mind for some reason, which through me off when trying to understand the data sheet.

    Unfortunately, it looks like the interrupt will not allow me to do what I was hoping for after all. I have an 8 pin micro that monitors signal from two sources and whenever there is a change on either pin it passes the signal along a third pin to a 40 pin chip. I was hoping to get rid of the 8 pin chip and use interrupts to take the two signals with IOC and pass them out a third pin which was tied to my original serial pin and use serin2 to get the data as before. It appeared to work with 1200 and 2400 baud, but when I went to anything faster the data became unusable. The interrupt must just be too slow to do everything needed before missing bits.

    Thanks for the help though,
    David

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: DT-INt and Interrupt on Change

    Since there's nothing in the ISR that uses PBP's SYSTEM variables, change the TYPE of interrupt to ASM for faster execution.
    DT

  3. #3
    Join Date
    Feb 2009
    Location
    Southern California
    Posts
    86


    Did you find this post helpful? Yes | No

    Default Re: DT-INt and Interrupt on Change

    Tried the asm version, also increased clock speed form 40 to 64 MHz. I was able to get some data at 4800, but not reliable. Thanks for helping though

    David

Similar Threads

  1. Int Interrupt question
    By lerameur in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 27th November 2010, 03:30
  2. INT interrupt problem
    By netstranger.nz in forum General
    Replies: 5
    Last Post: - 13th October 2009, 08:52
  3. Returning from Int on PortB change
    By sheryl in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th December 2008, 19:09
  4. Replies: 1
    Last Post: - 3rd November 2006, 00:24

Members who have read this thread : 0

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