Serial Programming Sequence in CY22393/4/5

Question: What is the programming protocol or sequence for the CY22393/4/5?

 

Answer:

It is I2C compatible and can be accessed as follows.

Write sequence --
Start signal, Device Address, R/W bit=0, Slave Ack, Register Address, Slave Ack, 8-bit register data, Slave Ack, 8-bit register data, Slave Ack, . . . ,Stop signal.

Write example --
Setting CLKC divider to 4 at address 0CH
Start signal,1101001,0,Ack,00001100,Ack,00000100,Ack,Stop signal

Read sequence --
Start signal, Device Address, R/W bit=0, Slave Ack, Register Address, Slave Ack, Repeated Start Signal, Device Address, R/W bit=1, Slave Ack, 8-bit register data, Master Ack, 8-bit register data, Master Ack, . . . , Stop signal

Read example --
Oscillator capload value at address 17H
Start signal,1101001,0,Ack,00010111,Ack,Repeated Start,1101001,1,Ack,Read 8-bit register data,Master Ack,Stop signal