Expert Mode Data File // How to read, Write of Toterm pole and Open drain // This sw can be run on OM13489 with TSSOP24 // PCA9575 // Board: Fm+ demo board OM13260, board OM13489 TSSOP24 and GPIO target board 0m13303 (LEDs) // Connectivity: Connect Fm+ I2C bus1 to SDA and SCL, Set the slave device address = 0x40; // Make sure:Reset and INT pins are pull-up and connect VDD to 3.3V and VSS to GND // I2C Write Protocol : |S|Addr + W|A|Reg addr|A|Data1|A|Data2|A|P| // I2C Read Protocol : |S|Addr + w|A|Reg addr|A|SR|Addr + R|A|Data1|A|Data2|NACK|P| //---------------------------------------------------------- // Expert sw format: // slave addr,Read/Write,stop bit = yes/No,delay ms,data,comments: your notes //---------------------------------------------------------- // dumy read for user to read this file 40,Read,Yes,00,00,00,Comments: Please read this file before run. use text editor to open // Write 2 bytes to configuration regs to set all ports as outputs 40,Write,Yes,200,08,00,00,Comments: Write to addr 0x40 and set Configuration reg as OUTPUT // Write to output register #0A and #0B to toggle IO pins 40,Write,Yes,200,0A,FE,7F,Comments: Write to device addr 0x40 on bus #1; set bit0,15=0 40,Write,Yes,200,0A,FD,BF,Comments: Write to device addr 0x40 on bus #1; set bit1,14=0 40,Write,Yes,200,0A,FB,DF,Comments: Write to device addr 0x40 on bus #1; set bit2,13=0 40,Write,Yes,200,0A,F7,EF,Comments: Write to device addr 0x40 on bus #1; set bit3,12=0 40,Write,Yes,200,0A,EF,F7,Comments: Write to device addr 0x40 on bus #1; set bit4,11=0 40,Write,Yes,200,0A,DF,FB,Comments: Write to device addr 0x40 on bus #1; set bit5,10=0 40,Write,Yes,200,0A,BF,FD,Comments: Write to device addr 0x40 on bus #1; set bit6,9=0 40,Write,Yes,200,0A,7F,FE,Comments: Write to device addr 0x40 on bus #1; set bit7,8=0 // Read Configuration register 08 and 09 40,Write,No,00,08,Comments: Write to set reg pointer to 08 40,Read,Yes,00,FF,FF,Comments: The values should be reg 08 = 0x00 and reg 09 = 0x00