I know that this problem is pretty broad, especially w/o code to back it up, but I am having some issues with an Analog Devices ADuC831 and I thought I would ask you guys to see if you have any ideas.
Here is the system. I am using the 831 as a Microcontroller for a data acquisition and transmission system. The transmissions are done via physical pulses (think morris code) which are time critical. They are controlled via timer 1 operating inside the interrupt itself (very small amount of code - about 35 lines of assembly).
The data acquisition system pulls data off an A/D converter on another device which reads in the analog data. This is done via the SPI and also somewhat time sensitive, though not as much, so while timer 0 triggers this event (setting an alarm flag), it is held in main.
Now by themselves, the two systems work great. No problems at all. The problem I am running into is when I am trying to combine these systems. Then the system will hang during acquisition. It also appears that the problem is when a pulse is being sent out via the interrupt.
Now, as far as I can tell, the only two shared bits of memory is the accumulator, which I am backing up during interrupt handling. So I am stumped.
Any ideas? Let me know if you need more data, because like I said, I know this is a very broad question.
RonB
-------------------------------------------------- "It is human nature to take shortcuts in thinking"
--------------------------------------------------