DT Instant Interupt with a 2nd serial port


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Location
    Waco, Texas
    Posts
    151

    Default DT Instant Interupt with a 2nd serial port

    Hello All, I am going to try the new PBP3 with the MCSPx and try my luck using the compile ICD option so I can debug my code easier. In doing so, the project I am trying to do also uses a serial port.
    The primary serial port will be used for debug on MCSPx and the 2nd serial port will be used for communication via RS485.
    So, I have used DT's Instant Interupt before (nice job!) but the chip I plan on using is the 16F1527 and it has 2 EUSARTS, do I brave fiddling with the venerable code inside DT-INTS-14 to see if I can get it to look at the 2nd serial port? Or is there a better way? Clearly I would prefer another way as I don't want to disturb something that works <grin>.
    I must use the 1st serial port for the debug and the 2nd serial port for the 485 communication, design already cut.
    I am using PBP3, MCSP5 and DT-INTS 1.10

    Happy New Year to All,
    Steve
    "If we knew what we were doing, it wouldn't be called research"
    - Albert Einstein

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


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interupt with a 2nd serial port

    Steve,

    Just add this to your program ...
    Code:
    DEFINE TX2_INT   PIR4,TX2IF, PIE4,TXIE
    Then add an INT_HANDLER for TX2_INT.
    DT

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


    Did you find this post helpful? Yes | No

    Default Re: DT Instant Interupt with a 2nd serial port

    I guess you'd probably rather have ...

    Code:
    DEFINE RX2_INT   PIR4,RC2IF, PIE4,RC2IE
    Oops!
    DT

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