Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
John Bob
08/07/05 22:16
Read: 344 times
Hue City
Vietnam


 
#98972 - I had initialised the ch variable
Responding to: Andy Neil's previous message
Hi!
I had initialised the ch variable before go to the loop
as follow. And after write to serial ROM i send the feedback ch variable to pc. it is equal with the character which i type.

But when i read back from serial rom, i don't read any things.

i don't know why?.

void WriteData()
{
char data ch;
ch = get_char();
while(ch != 0x0D)
{
i2c_writebyte(c++,ch);
outchar(ch);
ch = get_char();
}
wrom = 0;
ES = 1;
}

List of 10 messages in thread
TopicAuthorDate
Ask i2c between 89c52 and 24c04 ?      John Bob      08/04/05 19:11      
   A Link!      Reza Javan      08/04/05 21:43      
      Wrong Link!      Mehdi      08/04/05 21:55      
   Based on your post about IIC not John!      Reza Javan      08/04/05 22:02      
   Check WriteData() function for input      Charles Bannister      08/05/05 06:50      
      Uninitialised data!      Andy Neil      08/05/05 09:17      
         I had initialised the ch variable      John Bob      08/07/05 22:16      
            Where is your problem?      Russell Bull      08/08/05 05:38      
               i have SDCC callable 24cxx ASM routines      Abhishek Singh      08/08/05 10:17      
               Cross-posting      Andy Neil      08/09/05 12:18      

Back to Subject List