|
Re: Re: Linking two controllers together - the how? part
Quote:
Originally posted by Dave Flowerday
This would be entirely up to you. I'd recommend you design some sort of protocol that the two use to talk to each other. Again, in our example, the "protocol" was merely a single byte sent from the RC to the custom circuit that requested a certain type of data. When the custom circuit received it, it responded with a predermined number of bytes which the RC was waiting for with a serin statement. [/b]
|
To my knowledge there is no way to have an interrupt when a byte is received. Don't worry there is a way around this. You use a seperate general purpose IO line and set that up as an interrupt. On the transmitting side, whenever you finish sending a frame, you raise the line and trigger the interrupt.
__________________
1139 Alumni
Last edited by Rickertsen2 : 06-10-2003 at 17:50.
|