Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    For the first two, you probably haven't defined the interrupt sources or handlers.

    See this page for an example.
    http://darreltaylor.com/DT_INTS-18/hello.html

    For the T7 warning, read this ...
    http://www.picbasic.co.uk/forum/show...&postcount=348
    <br>
    DT

  2. #2
    Join Date
    Nov 2008
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Hello Darrel,
    thanks, it works now, but there are coming up some more problems:

    When the timer makes 1 second tick, i call a subroutine which has several
    serin2 and serout2 commands to read and set data from some other modules.
    It seems to come to write and read errors (time out comes in the serin2 and serout2 commands).
    Also reading and writing to the 12c bus with I2CREAD and I2CWRITE to
    a display doesn't work any more correct.

    I enabled tmr0, tmr1, rx1 and rx2

    Regards,
    Ralf

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


    Did you find this post helpful? Yes | No

    Default

    If you've enable RX1_INT and RX2_INT, then what is the SERIN/OUT for?

    Aren't you using the USARTS?
    <br>
    DT

  4. #4
    Join Date
    Nov 2008
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Sure, i am using both uarts of the Pic, but i have one more serial port accessing
    via serin/serout some more serial devices also (a eight devices bus). The status
    and some controls of these eight modules accessed via serin/serout are
    controlled by the two uarts to a rs232 and a ethernet board.

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


    Did you find this post helpful? Yes | No

    Default

    Any type of software timed commands like SERIN/OUT, OWIN/OUT, PAUSE, PULSIN/OUT etc, will be disturbed by these types of Interrupts.

    Since you have 4 different things interrupting, the software timing is getting messed up pretty bad.

    If you only needed the transmit side, you could use ...

    Tmr_tx-18
    http://www.picbasic.co.uk/forum/show...1&postcount=28

    But it sounds like you need the RX side too.

    With a need for 3 USART's, You may be out of luck.
    DT

  6. #6
    Join Date
    Nov 2008
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Hi Darrel,
    it works now, but is very critical in timing.
    I think about using 12c, but i did not find a good i2c slave routine.
    I tested one in the past, but without success.... :-(
    Did you test your interrupts as an i2c slave? Can you help on this?
    Regards,
    Ralf

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


    Did you find this post helpful? Yes | No

    Default

    > Did you test your interrupts as an i2c slave?

    I haven't, but Robert Soubie did.
    http://www.astrosurf.com/soubie/pic_as_an_i2c_slave.htm
    <br>
    DT

Similar Threads

  1. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32
  5. Replies: 1
    Last Post: - 1st November 2006, 03:11

Members who have read this thread : 8

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