i2c dac interface working code in arduino and simmulation

hi all this is my model interface dac via i2c in arduino uno.i get some output but this is some small problem please any one help me.
the problem is only the data is transmit to the dac ic.
i need transmit continuously in the data please any one help me
code is:
#include <Wire.h>
#include <SoftwareSerial.h>
#define disk1 0xc0>>1//Address of 24aa32a eeprom chip
#include <stdlib.h>
#include <stdio.h>
//#define scl A5
//#define sda A6
char incomingByte;
unsigned int data;
unsigned int integerValue=4000;
int stringComplete =0;
void writeEEPROM(int deviceaddress, unsigned int eeaddress,unsigned int data )
{
Wire.beginTransmission(deviceaddress);
Wire.write((int)(eeaddress >> 8)); // MSB
Wire.write((int)(eeaddress & 0xFF)); // LSB
Wire.write((int)(data >> 8)); // MSB
Wire.write((int)(data & 0xFF));
//Wire.write(data);
delay(500);
Wire.endTransmission();

}

void setup(void)
{
Wire.begin();
TWBR = 12;
//pinMode(scl, OUTPUT);
// pinMode(sda, OUTPUT);
Serial.begin(9600);

}

void loop(){
//Wire.begin();
Serial.begin(9600);
unsigned int address;
//int a=0x03;
if (Serial.available()) {
integerValue = 0;
while(1) {
incomingByte = Serial.read();
if (incomingByte == '\ ') break;
if (incomingByte == -1) continue;
integerValue *= 10; // shift left 1 decimal place
// convert ASCII to integer, add, and shift left 1 decimal place
integerValue = ((incomingByte - 48) + integerValue);

//Serial.println( integerValue);
}
}
Serial.println( integerValue);

// Do something with the value
delay(1000);
writeEEPROM(disk1, address, integerValue);
//dac(disk1, address, a);

}

simmulation:

dac.ino (1.41 KB)

Could you read this : http://forum.arduino.cc/index.php/topic,148850.0.html
Number 7 is about posting a sketch.

What do you want ? Store many bytes ?
I think the delay of 500 can be removed in the writeEEPROM() function.

hi sir thank for u re reply, i will try this also but i get same problem in my simulation i get the following output in protues simulation in i2c debugger
s sr c0 A 00 A 00 A 0F A 11 A SR C0 A 00 A 00 A 0F A 11 A ............... THIS IS CONTINUED BUT IN MY DAC NO OUTPUT VOLTAGE CHANGE .
THE ABOVE OUTPUT IS GETTING FOR THE FOLLOWING CODE THIS SOME SIMPLE CHANGE THE ABOVE CODE
Wire.beginTransmission(deviceaddress);
Wire.write((int)(eeaddress >> 8)); // MSB
Wire.write((int)(eeaddress & 0xFF)); // LSB
Wire.write((int)(data >> 8)); // MSB
Wire.write((int)(data & 0xFF));
//Wire.write(data);
delay(500);
Wire.endTransmission(false);
in my first code (in my first posted code ) i get following output
s C0 A 00 A 00 A 0F A 11 A P
IN THIS CASE I GET OUTPUT FOR MY EQUAL DIGITAL VALUE. BUT THE VALE IS PASS THE DAC AND PROVIDE SOME OUTPUT AND MASTER GENERATE STOP BIT(P). HOW CAN I CHANGE THIS CONTINUES MANNER TO SEND THE DATA AGAIN AND AGAIN TO DAC. PLEASE HELP ME

That is because of the "repeated start".
I'm sorry, but I don't understand you question very well. I don't know what you want to achieve.

MY AIM IS TO SEND DIGITAL VALUE IS USING SERIAL THE VALUE IS PASSED TO DAC BY USING I2C . I GET SOME OUTPUT I ALL READY TOLD IN ABOVE POST .
MY PROBLEM IS , HOW I WRITE CONTINUESLY TO DAC BECOZE THEN ONLY I CHANGE THE DIGITAL VALUE ON REAL TIME.
MY QUESTION IS :
HOW WRITE CONTINUES DATA VIA I2C. ??
PLEASE REPLY ME