Do SoftwareSerial on pin change interrupts and V-USB play nice together?

I'm redoing a previous project that talked to a serial RS232 device and portrayed it as a HID device using V-USB using an Atmega 328p (not a prefab uno or other Arduino, but using the Arduino environment).

I'd like to talk to the RS232 device (9600 8N1) through a Max3232 chip using lines other than 0/1 because it's nice to have the serial port for debugging, etc. Now, V-USB relies on interrupts to send USB update packets, and SoftwareSerial relies on pin change interrupts.

I'm a little worried that the interrupts will fight and cause dropouts. I'm sure the answer is "try it and see", but is it likely no problem or should I just give up and use 0/1 or find some other hardware way of doing things?

I'm sure the answer is "try it and see",

You are right.

but is it likely no problem or should I just give up and use 0/1 or find some other hardware way of doing things?

Can you tell me when my bucket will get full? The answer to that depends on three things - how big the bucket is, how fast the bucket is being filled, and how fast the bucket is being emptied. You seem to have forgotten to mention those three values.

...although if I knew the answers to those things, I wouldn't have had to ask :slight_smile: The difficulty lies in my lack of knowledge of the times involved with USB hid report updates vs how long SoftwareSerial sits in its interrupt routine, and the cost of missing either sort of update.

If V-usb missing an update is a simple missed report (as opposed to death of the device on the receiver), and if a missed interrupt in SoftwareSerial is just a bad bit (correctable via error correction) it may be no trouble. At any rate I shall certainly try it and see, but it's always worth a try asking if anyone's had a comparable experience.