レジスタ情報
REG18
$ECB024
I2C bus control
WRITE: send data to I2C bus (data and register number should be set by REG16, 17 before writing REG18)
bit 15-10: reserved
bit 9 : r/w (0: read, 1: write)
bit 8 : size (0: 1byte, 1: 2byte)
bit 7 : reserved
bit 6-0 : address

READ: read the status of I2C bus
bit 15 : busyr/w
bit 14 : error (0: no error, 1: error)
bit 13-10: reserved
bit 9 : r/w (0: read, 1: write)
bit 8 : size (0: 1byte, 1: 2byte)
bit 7 : reserved
bit 6-0 : address
REG16,17,18,19は、Kepler X上のI2Cバス制御用のレジスタで、以下のような役割を持っています。

* REG16: write data
* REG17: set register number
* REG18: bus control
* REG19: read data

詳しい使い方はREG16の説明をご覧ください。