SGM5200
DETAILED DESCRIPTION (continued)
NOTE: The device continues its operation in selected mode during programming. SDO is valid, however it is not possible to
change the range or write GPIO data into the device during programming.
Table 11. Alarm Program Register Settings
Bits
Reset State
Frame 1
DI[15:12]
NA
Note: DI[15:12] = 11bb is the alarm programming request for group bb. Here 'bb' represents the alarm programming group number in binary
format.
DI[11:0]
NA
Frame 2 and Onwards
DI[15:14]
NA
DI13
NA
DI12
NA
DI[11:10]
NA
All ones for high
alarm register and
DI[9:0]
all zeros for low
alarm register
SG Micro Corp
www.sg-micro.com
nCS
nCS
(xx indicates group of four channels; refer Table 10)
Device enters alarm register programming sequence
Entry into Alarm
Register
Programming
Sequence
nCS
Alarm Register
Programming
Sequence
Program another group of four channels?
Figure 15. Alarm Program Register Programming Flowchart
Logic
State
1100
Device enters 'alarm programming sequence' for group 0.
1101
Device enters 'alarm programming sequence' for group 1.
1110
Device enters 'alarm programming sequence' for group 2.
1111
Device enters 'alarm programming sequence' for group 3.
Do not care.
Where "cc" represents the lower two bits of the channel number in binary format. The device
cc
programs the alarm for the channel represented by the binary number "bbcc". "bb" is programmed in
the first frame.
1
High alarm register selection.
0
Low alarm register selection.
0
Continue alarm programming sequence in the next frame.
Exit alarm programming in the next frame. Note: If the alarm programming sequence is not
1
terminated using this feature then the device will remain in the alarm programming sequence state
and all SDI data will be treated as alarm thresholds.
xx
Do not care.
This 10-bit data represents the alarm threshold. The 10-bit alarm threshold is compared with the upper 10-bit
word of the 12-bit conversion result. The device sets off an alarm when the conversion result is higher (high
alarm) or lower (low alarm) than this number. For 10-bit devices, all 10 bits of the conversion result are
compared with the set threshold. For 8-bit devices, all 8 bits of the conversion result are compared with DI9 to
DI2 and DI1, DI0 are 'do not care'.
12-Bit, 1MSPS, 16 Channels,
Single-Ended, Serial Interface ADC
Device in any operation mode
Program alarm thresholds?
Yes
SDI: DI[15:12] = 11xx
SDI: DI[15:0] as per Table 11
(program alarm thresholds)
DI12 = 1?
Yes
No
End of alarm programming
No
Yes
No
Function
SEPTEMBER 2021
29
Need help?
Do you have a question about the SGM5200 and is the answer not in the manual?