The code you are using is looking fine and workable? Did you tried it on your hardware? Also what is your whole setup? What are the other components?
Can you please show all about this here? Also try by using the different port?
Why you want to interface two microcontrollers? Many readymade boards are available to do this job.