A2C-SG2-M12
WWW.LILLIESYSTEMS.COM
24 of 44
Example 1
Setup ADC for a strain gauge bridge on both channels, with chop and buffer enabled and 10Hz sample rate for each
channel. The data rate is set to 30 - 0x001E
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
0x40
0x03 - both
channels
0x00 -
bipolar
0x80 - gain
of 128
0x00
0x1E
0x01 chop
enabled
0x01 buffer
enabled
DLC = 0x08
Example 2
Setup ADC for a strain gauge bridge on both channels, with chop and buffer enabled and 0.5Hz sample rate for each
channel. The data rate is set to 605 - 0x025D
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
0x40
0x03 - both
channels
0x00 -
bipolar
0x80 - gain
of 128
0x02
0x5D
0x01 chop
enabled
0x01 buffer
enabled
DLC = 0x08
9.1.2
Get ADC mode
To get the current ADC mode this command can be sent
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0xC0
DLC = 0x01
Reply:
Command
Sub Command
Data[0]
Data[1]
Data[2]
Data[3]
Data[4]
Data[5]
0x0C
Channels
Polarity
Gain
Data Rate
MSB
Data Rate
LSB
Chop
Enabled
Buffer
Enabled
DLC = 0x08
The format follows the same as for sending parameters by command 0x40
9.1.3
A note on data rate and data requested
If the data rate has a high value, this will result in longer sampling times. Data requested on the CAN Bus between samples will
return the last sampled value. To overcome this problem, the periodic messages can be setup, so that a CAN message is sent when
the ADC has a new sample ready. Changing the data rate then directly change the frequency of the CAN Bus messages.