Hi Mac,
There is no problem within the serial communication between the computer serial port and the HSC08 SCI bean. I set the baud rate at 9600b in both devices. When I make "while(ASI_SendChar(65)!=ERR_OK);" in main's code, I get an 'A' displayed on the screen. The problem is that it doesn't occur the same when I send characters read from serial EEPROM. I need to verify by displaying on computer's screen that each character I wrote before in serial EEPROM is really stored there. Also, I know there is neither a problem within communication between the serial EEPROM and the HSC08 I2C bean. When I make "while(EI2C1_SendChar(65)!=ERR_OK);" in main's code I get "ERR_OK" as response, and when I make "while(EI2C1_RecvChar(&Chr)!=ERR_OK);" I get "ERR_OK" again, but after that, when I make "while(ASI_SendChar(Chr)!=ERR_OK);" I get 'ÿ' instead of 'A'.
So I think I am making a mistake within the way to pass the argument "&Chr" (pointer to char) in I2C reading method (RecvChar) and within the way to pass the argument "Chr" (pointed character) in SCI sending method (SendChar). Also, I think it could be a problem with the 2 bytes of internal addressing of memory position in serial EEPROM, but if so, how can I know if the address of one written chararcter is kept when I want to read that character and how can I control that to do not read another different memory position?
This is the first time I work with a serial EEPROM (AT24C1024B-PU) and the first time using the I2C bean with Processor Expert Tool. I don`t know what is wrong and which is the correct way to make it works.
Thank you for your help!