DT Interrupts and HSERIN / HSEROUT


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    637

    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
    2,386


    Did you find this post helpful? Yes | No

    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
    Warning I'm not a teacher

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


    Did you find this post helpful? Yes | No

    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
    2,386


    Did you find this post helpful? Yes | No

    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
    Warning I'm not a teacher

Similar Threads

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

Members who have read this thread : 2

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