Content originally posted in LPCWare by giusloq on Thu Jun 25 02:26:20 MST 2015
Quote:
The I2C master of the LPC1788 does support clock stretching. It is automatic, no need to do something special.
That's good. Indeed it seems to work when I read touch data from the controller. I'm using Chip_I2C_MasterRead() in polling mode.
But I found another problem. AR1021 is capable to receive several commands for some operations (GET VERSION, CALIBRATE and so on). On the datasheet is written:
Quote:
A 50us delay is needed before the Stop bit, when clocking a command to the AR1020.
Is possible to introduce this delay with LPC I2C peripheral?