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
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
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.
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