DT Interrupts and HSERIN / HSEROUT


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    626

    Default DT Interrupts and HSERIN / HSEROUT

    Hi,

    I'm using the DT USB Interrupts in the link below. In the same program, I'm using a few HSERIN and HSEROUT commands. I know that these two things don't like each other. However, since this DT USB interrupt happens so quickly, I thought that it might not affect the HSERIN and HSEROUT commands at all. Should I disable the interrupts before using these commands?

    http://www.picbasic.co.uk/forum/show...4292#post94292
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    1,652

    Default Re: DT Interrupts and HSERIN / HSEROUT

    seems no one else wants to comment
    reading the thread you linked it seems that using hserin/out rather than serin/out was the solution for serial comms when a usb int was used.
    if you disable usb int for more than 10mS your usb "connection" will be lost

    i have no issues using hserout or spi comms with the cdc usb function with the usb int
    This is more entertaining than Free to Air TV

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    626

    Default Re: DT Interrupts and HSERIN / HSEROUT

    Richard, thanks for the reply. I was concerned that the interrupt might interfere with the HSERIN and HSEROUT commands.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    1,652

    Default Re: DT Interrupts and HSERIN / HSEROUT

    hserout could never be affected by interrupts in any normal sort of asynchronous use
    hserin will not be affected by interrupts in any normal sort of asynchronous use provided the isr does not take so long as to cause a buffer overrun
    This is more entertaining than Free to Air TV

Similar Threads

  1. HSERIN and HSEROUT Pins
    By Dick Ivers in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd March 2014, 21:08
  2. Help understanding HSERIN/HSEROUT
    By jmbanales21485 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th September 2007, 22:46
  3. HSERIN and HSEROUT problems
    By amindzo in forum Serial
    Replies: 1
    Last Post: - 6th September 2006, 21:11
  4. Problems with HSERIN HSEROUT
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th September 2005, 17:24
  5. Hserin/hserout ?
    By Scott in forum General
    Replies: 6
    Last Post: - 27th April 2005, 23:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts