I having trouble sending data out under interrupts from a buffer. The buffer was declared in xdata and i have a counter that is used to index into it. So when an interrupt occurs, the data is loaded into my SPI tx buffer, ie SPIBUF = txbuffer[index]; index++; All i seem to get is all zero's but if i use the index to send data i get something. ie SPIBUF = index; David
Thanks for the info. The disassembly looked funny because of the MOV A, #QueueSize which is another variable declared somewhere else. The listing made sense, the QueueSize in the disassembly though confused me. David