>My project uses 2 superpros with BASIC, I'm calling them units A and B. Unit "A" scans in video information into a 63 element array every .1 seconds or so. Unit B sends an interrupt (on pin 74) to unit A approx. every .2 seconds. The interrupt subroutine on unit A then sends the 63 bytes of video data to unit B. I have the dongle connected to unit B and I have (for development purposes) unit B use "print" to display the 63 received data bytes on my PC screen. The problem is that the data displayed is always just the first set of 63 bytes, over and over. I know the video data coming into unit A from the sensors is constantly changing, and I know the interrupts are being sent every .2 seconds (I have a scope connected to the interrupt line (74)), but only the first set of data is ever printed. It's as if when the interrupt subroutine is over, the unit A program starts over at the beginning of its program, instead of picking up and continuing from the point where it was interrupted.
>Does the fact that I am using the "print" command on unit B somehow effect this?, does it mess with the interrupts? The dongle is connected to unit B which is NOT the unit where the interrupt subroutine is. Why would the unit A program start back at the beginning after it's interrupt subroutine is executed?
I don't see how a PRINT on B would affect anything on A. Interrupts would not cause a program to start over, a simple test of that would be to add a statement at the beginning of the program on A like
Code: Select all
main: print "Hey I'm starting"
How are you sending the video data from A to B.
You will have to narrow down the possible errors--
1-- does A really see different data
2-- does A send the right data
3-- does B receive the right data