Interrupt not working?


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172

    Default Re: Interrupt not working?

    Is that too much stuff going on inside ISR?

    What if you simplify usart logic until you get things working as expected?

    Do you really need byte-by-byte reception? Can you get away with a fixed length message?

    My interrupt routine looks like this:
    Code:
    ReceiveInterrupt:
      HSERIN 50,No232,[DEC5 PicIn.byte1, DEC5 PicIn.byte0, DEC1 CommandIn, _
                       STR DataIn1\24, STR DataIn2\24,                     _
                       DEC5 CheckSumIn.byte1, DEC5 CheckSumIn.byte0]
      RS232Flag = StateTrue
    No232:
    @ INT_RETURN
    I check in main loop if RS232Flag was set, and then do all the processing there.

    Robert

  2. #2
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223

    Default Re: Interrupt not working?

    Thank you Henrik for explaining it well and giving me ideas how to trace the steps the codes is doing.
    and thank you Robert for sharing your code...I will try them out.

    regards,
    tacbanon

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139

    Default Re: Interrupt not working?

    For sending a string of keystrokes instead of typing and having a delay, as Henrik spoted, try this terminal program:

    https://sites.google.com/site/termin...attredirects=0

    It can accept a string of characters and then you hit send to send it as it would your GSM device.

    Ioannis

  4. #4
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223

    Default Re: Interrupt not working?

    Finally we got the power back today...we've been battered by the typhoon 'OFEL'...
    @Ioannis
    Thanks for the link..I will try and let you know...later.

    tacbanon

Similar Threads

  1. SERIN Not Working, SEROUT Working
    By cc1984 in forum Serial
    Replies: 11
    Last Post: - 26th October 2010, 19:16
  2. confused problem with interrupt in a working program
    By illuminator4 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th November 2008, 17:01
  3. ON INTERRUPT not working
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 12th April 2008, 13:41
  4. PIC to PC not working
    By The Master in forum Serial
    Replies: 5
    Last Post: - 30th October 2007, 04:34
  5. Replies: 0
    Last Post: - 27th August 2004, 07:20

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