need two use different Baud Rate in some time

hello i try to get the cam ov7670 work with I2C screen 20*4
in mega.
but both have different Baud Rate
I2C = 9600
ov7670 = 1000000

Serial.begin(9600); ////////////////// it use 9600 i2c screen 20 *4
Serial.begin(1000000); ////////////////// it use 1000000 ov7670 cam

this is the code can any one tell me how can i use both Seial in same time

No you don't.
If your screen is really an i2c device, you don't need serial transmision to it. Check the examples that come with the relevant library. If it really is a serial device, why are you rabbiting on about I2C?

I don't know anything about OV7670, but you are probably kidding yourself about that too.

If both devices really are serial, you will need two serial ports. Since you are using a Mega, which has four ports, this is not likely to be a problem, and yes, the individual ports can run at different rates.

I'm sure it doesn't matter at this time, as your code is almost certainly unintelligible rubbish, but note the stickies at the head of the forum and post your code in the kosher manner using </> tags. That way people will be more inclined to read it.

HI,
Is this to do with this posting?

http://http://forum.arduino.cc/index.php?topic=544909.0

Tom... :slight_smile: