Expert Mode Data File // How to read, Write of Toterm pole and Open drain // This sw can be run on OM13489 with TSSOP24 // PCA6416A, PCA9535/A/C, PCA9555/A, // PCAL6416A, PCAL9535A, PCAL9555A // 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,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,06,00,00,Comments: Write to addr 0x40 and set Configuration reg as OUTPUT // Write to output register #2 and #3 to toggle IO pins 40,Write,Yes,200,02,FE,7F,Comments: Write to device addr 0x40 on bus #1; set bit0,15=0 40,Write,Yes,200,02,FD,BF,Comments: Write to device addr 0x40 on bus #1; set bit1,14=0 40,Write,Yes,200,02,FB,DF,Comments: Write to device addr 0x40 on bus #1; set bit2,13=0 40,Write,Yes,200,02,F7,EF,Comments: Write to device addr 0x40 on bus #1; set bit3,12=0 40,Write,Yes,200,02,EF,F7,Comments: Write to device addr 0x40 on bus #1; set bit4,11=0 40,Write,Yes,200,02,DF,FB,Comments: Write to device addr 0x40 on bus #1; set bit5,10=0 40,Write,Yes,200,02,BF,FD,Comments: Write to device addr 0x40 on bus #1; set bit6,9=0 40,Write,Yes,200,02,7F,FE,Comments: Write to device addr 0x40 on bus #1; set bit7,8=0 // Read Configuration register 06 and 07 40,Write,No,00,06,Comments: Write to set reg pointer to 06 40,Read,Yes,00,FF,FF,Comments: The values should be reg 06 = 0x00 and reg 07 = 0x00