You can communicate two microcontroller with the help of communication protocols.
Basically in almost all microcontroller is having inbuilt SPI (Serial Peripheral Interface) & I2C protocols.
So just check it out the communication protocols in your microcontroller.
thanks for your replay.
ya i have connected VDD to VDD and VSS to VSS and four LED's also to I/O PORTA RA0,RA1,RA2,RA3. each micro controller to each I/O PORTA. so can i connect the two PORTA's to each other?or just i leave the two PORTA's as it is?
regards