SPI and UART

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 ?

More questions in this forum