
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
Hello and sorry for the english. When a MASTER sends a byte over the I2C bus it must receive an ACK from the slave. When a MASTER reads a byte over the I2C bus it must send an ACK to the slave. It looks like that you forgot an I2C_GETACK after the first I2C_WRITE and used an I2C_SENDACK after the second I2C_WRITE which should also be a I2C_GETACK. I have no experience with the I2C assembler routines but maybe the changes I made will work. Greetings, H.J. Windt #main BaseAdr = Base8574a sys I2C_START BASIC_IO = BaseAdr 'moduladresse sys I2C_WRITE sys I2C_GETACK ‘<<<<<-----’ BASIC_IO = &b11111111 'alle 8 ports sollten auf 1 sein sys I2C_WRITE sys I2C_GETACK ‘<<<<<-----’ sys I2C_STOP |
| Antwort schreiben |