The I2C Adress of PowerSources (analog) is 0x61 to 0x67.


The I2C Databuffer is stored in the slave.
It's written by the master and read by the master.
The only values changed by the slave are: Checksum valid/invalid and the coressponding Checksum .
The master should always set this bit to "1".

Checksum is calculated including Adress. Startvalue is 0x00

I2C Databuffer
Checksum Byte # Register Byte #
0x00 -- Adress
0x01 0x00 Flag register
0x02 0x01 Datatype
0x03 0x02 Data 
0x04 0x03 Checksum


Flag register
BIT #
7 Slave Ready**: 1=Slave data is valid, 0=Slave data is outdated
6 unused
5 unused
4 unused
3 unused
2 Checksum valid*: 1= valid, 0=invalid
1 unused
0 Data valid: 1=valid, 0=invalid (for pointer setting without write)

* This bist is set from I2C-Slave. The master can then test if last transfer was OK by reading this bit
** This bit should be set to "0" by master write. Until the Slave is ready, this bit will remain "0".

DataTypes:
Type Number Range
Direction/OnOff 0x01 BIT-0:  Direction
BIT-1: On/Off
Speed 0x02 0 - 28
Frequency 0x03 1 = 20kHz
2 = 250 Hz
3 = 80 Hz
Mode 0x04 0 = fixed frequency
1 = variable frequency
Voltage 0x05 1 = 5.0V
2 = 5.5V
....
21 = 15.0V
Ramp UP time 0x10 0 = 0ms/step (OFF)
1 = 300ms/step
2 = 500ms/step
3 = 1s/step
4 = 2s/step
5 = 5s/step
6 = 10s/step
Ramp DOWN time 0x11 0 = 0ms/step (OFF)
1 = 300ms/step
2 = 500ms/step
3 = 1s/step
4 = 2s/step
5 = 5s/step
6 = 10s/step
Control Mode 0x12 0 = Switches & Poti
1 = I2C
Rangiergang 0x14 0 = OFF
1 = ON
Fast Readout* 0x20 BIT 0..4: Drivestep (0..27)
Bit 5:       Direction
Bit 6:       Output
Set new I2C Adress 0xFF SET new I2C Adress

*Fast Readout is Read-only