// How to read, Write and take control of the downstream bus using PCA9541A 2 channels I2C-bus Switch // Board: Fm+ demo board OM13260, EVM board and dip adapter TSSOP16 with PCA9541A // Connectivity: Connect Fm+ I2C bus1 to SDA_MST1 and SCL_MST1, Set A0, A1, A2 and A3 pins to GND; the slave device address = 0x70 // Write format: |S|Addr + W|A|register pointer|A|Data|A|P| // Read format: |S|Addr + W|A|register pointer|A|SR|Addr + R|A|Data|NACK|P| // Create by Calvin Au Nov 2014 //---------------------------------------------------------- // dumy write for user to read this file 71,Read,Yes,00,00,00,Comments: Please read this file before run. use text editor to open // Read control register of MST1 bus; for the first time boot up register value should be 0x0A 70,Write,No,05,01,Comments: Write addr 0x70, pointer 01; Set pointer to 01 register 70,Read,Yes,05,00,Comments: read register 01; value = 0x0A if Fm+ is just power up, MST1 has no control //write cycle; write 1 byte to enable BUSON and MYBUS 70,Write,Yes,10,01,01,Comments: Write addr 0x70, pointer 01 with value 0x01 for BUS = on and control = on