Hi all of you,
I'm using I2C to control a touch panel with LPC1788 used as master. I'm using LPCOpen driver to gain time.
Pin muxing I2C
Chip_I2C_SetClockRate // 100000
Board_I2C_SetMod // Pooling mode
The touch panel contain many register (page 6 - http://www.mouser.com/ds/2/291/NHD-4.3-480272EF-ATXL-CTP-28216.pdf -).
First of all I want to read or write one of this register on the slave, but the broblem is when I prob SDL SCA with a serial decode I capture only the Address 0x70 in read or write. It seems that the data and the Register Slave Adress isn't send.
I'm using this command to Send Data: Chip_I2C_MasterSend(BOARD_CTP_ID, CTP_ADDR, buf, 3);
The buf contain at 0 the register Adresse then from buf it contain the data I want to write.
In case of Read I use Chip_I2C_MasterRead(BOARD_CTP_ID, FT5336_I2C_SLAVE_ADDRESS, &buf, 1);
What is the correct way to use a Read Slave Register, and Write Value in Slave Register?