??? 08/08/05 04:16 Read: times |
#98972 - I had initialised the ch variable Responding to: ???'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; } |
Topic | Author | Date |
Ask i2c between 89c52 and 24c04 ? | 01/01/70 00:00 | |
A Link! | 01/01/70 00:00 | |
Wrong Link! | 01/01/70 00:00 | |
Based on your post about IIC not John! | 01/01/70 00:00 | |
Check WriteData() function for input | 01/01/70 00:00 | |
Uninitialised data! | 01/01/70 00:00 | |
I had initialised the ch variable | 01/01/70 00:00 | |
Where is your problem? | 01/01/70 00:00 | |
i have SDCC callable 24cxx ASM routines | 01/01/70 00:00 | |
Cross-posting![]() | 01/01/70 00:00 |