I interfaced eeprom with i2c with appropriate baud rate and i printed the data in terminal and it's working with external oscillator with 4 PLL .But when i change to 16 PLL,eeprom writing and reading operations are not working and junk is displayed instead of data.Baud rate of i2c is 50 and uart is 207.Fscl = 400 KHz, Fcy=32 MHz.
Thats possible! You currently trying to use maximum allowed i2c bus speed, but forgot about pull-up resistors, that greatly effect to rising edge timings. Try to use 1k instead of 4.7k. Possible, you be able to force it to 1MHz depends of your line capacitience.