Access from the user program
KL3361 and KL3362
51
Version: 2.2.0
The RAM area can be overwritten with current trace data (Teach-in) via the command register (
using the instruction
WriteEnvCurvToRAM
(0x0201), or it can be directly written and read from offset 0x8000.
The command
WriteEnvCurvToFLASH
(0x0202) can then be used to place data in the flash memory, and
are retained even if the voltage supply fails.
5.1
Process image
5.1.1
Process image of the KL3361
The following 5 bytes are transferred bi-directionally between KL3361 and control:
Oscilloscope
channel
Byte offset (with-
out word align-
ment*)
Byte offset (with
word alignment*)
Format Input data
Output data
1
0
0
Byte
Status byte 1
(SB1)
Control byte 1
(CB1)
1
2
Word
DataIN0
DataOUT0
3
4
Word
DataIN1
DataOUT1
*) Word alignment: The Bus Coupler places values on even byte addresses
Analog voltages are represented by the oscilloscope terminal KL3361 as follows:
Voltage
Decimal
Hexadecimal
+20 mV
32767
0x7FFF
0 mV
0
0x0000
-20 mV
-32767
0x8001
5.1.2
Process image of the KL3362
The following 10 bytes are transferred bi-directionally between KL3362 and control:
Oscilloscope
channel
Byte offset
(without word
alignment*)
Byte offset
(with word
alignment*)
Format Input data
Output data
1
0
0
Byte
Status byte 1 (SB1)
Control byte 1 (CB1)
1
2
Word
DataIN0 (channel 1)
DataOUT0 (channel 1)
3
4
Word
DataIN1 (channel 1)
DataOUT1 (channel 1)
2
5
8
Byte
Status byte 2 (SB2)
Control byte 2 (CB2)
6
10
Word
DataIN0 (channel 2)
DataOUT0 (channel 2)
8
12
Word
DataIN1 (channel 2)
DataOUT1 (channel 2)
*) Word alignment: The Bus Coupler places values on even byte addresses
Analog voltages are represented by the oscilloscope terminal KL3362 as follows:
Voltage
Decimal
Hexadecimal
+10 V
32767
0x7FFF
0 V
0
0x0000
-10 V
-32767
0x8001