I am using two At89s8252 to develope my project. and i have some difficult now. I need to set the following things, 1. SPI port for serial interfancing between both. 2. Serial port for data transmission. i have no problem for each sub-program. What should i do ?
I don't understand. Do you mean you can do each individually, but don't know how to join them together?
as SPI and UART have the same interruption I do not know like working simultaneously with both modules
if they share an interrupt vector, which is what I can deduce from your post, there will be some SFR bit that states what the cause is. e.g. if RI is set you can deduce that a UART receive interrupt is it. Erik
thanks
and do not forget what is often forgotten. test ALL "cause bits" the interrupt does not mean that only one cause is active. Erik