+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2011
    Posts
    4

    Default Serial interrupt on PicBasic Pro

    I need some help with this serial interrupt... It's working but not so well because when the interrupt happens I receive the serial data and treat the information. The problem is when the program return from the 1st interrupt to the Loop, I can't do another interrupt. I send serial data but the interrupt not happens.

    So, please, can anyone help me?

    Thanks...

    Here's my code..

    CONFIG_USART_INTERRUPT.txt

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,259

    Default Re: Serial interrupt on PicBasic Pro

    Hi,
    I never use ON INTERRUPT myself and I haven't looked very closely at your code yet but the first thing that pops out is RCREG = DISCARD... Why do you write to RCREG?

    If you want to flush it you should read it, ie. DISCARD = RCREG

    /Henrik.

  3. #3
    Join Date
    Feb 2011
    Posts
    4

    Default Re: Serial interrupt on PicBasic Pro

    Hi,
    You're right... i want to clean RCREG, so the right command is DISCARD = RCREG..
    I changed this but the problem still happens.

    Thanks

    /Regis

Members who have read this thread : 0

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