Clear Latched DI
Example 1 - Clear Some Latched DIs For One LT
✦
CC1000 Address 1
✦
LT address 57
➡
Register Address = 57 + 95 = 152
➡
RH = 152 div 256 = 0
➡
RL = 152 mod 256 = 152
✦
Data mask for the Latched DIs to be cleared:
DI
State
Data
Data
Bit #
Byte
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
---
Clr
---
Clr
---
Clr
---
---
---
---
Clr
Clr
---
---
Clr
---
1
0
1
0
1
0
1
1
1
1
0
0
1
1
0
1
0xA
0xA
0xA
0xA
0xB
0xB
0xB
0xB
0xC
0xC
0xC
0xC
0xD
0xD
0xD
0xD
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
high byte (DH)
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
low byte (DL)
Query
CC1000
Address
Function
Code
Register Address
Register Address
Number of Registers
Number of Registers
Byte
Count
Write Data
Write Data
CRC
CRC
CC1000
Address
Function
Code
high (RH)
low (RL)
high
low
Byte
Count
high (DH)
low (DL)
low
high
1
16
0
152
0
1
2
0xAB
0xCD
4
237
Reply
CC1000
Address
Function
Code
Register Address
Register Address
Number of Registers
Number of Registers
CRC
CRC
CC1000
Address
Function
Code
high (RH)
low (RL)
high
low
low
high
1
16
0
152
0
1
128
38
Example 2 - Clear All Latched DIs For 4 LTs
✴
Note that 4 is the maximum number of Latched DIs that can be cleared at a time.
✦
CC1000 Address 1
✦
LT 21 to 24
➡
Starting Register Address = 21 + 95 = 116
➡
RH = 116 div 256 = 0
➡
RL = 116 mod 256 = 116
➡
Number of Registers = 4
➡
Byte Count = 8
✦
Clearing a latched DI sets its bit to zero, so clearing all DIs would set the entire data mask to zero.
➡
D1, D2, D3, D4, D5, D6, D7, D8 = 0
Query
CC1000
Address
Function
Code
Register Address
Register Address
Number of Registers
Number of Registers
Byte Count
Write Data
Write Data
CC1000
Address
Function
Code
high (RH)
low (RL)
high
low
Byte Count
D1
D2
1
16
0
116
0
4
8
0
0
. . .
Write Data
Write Data
Write Data
Write Data
Write Data
Write Data
CRC
CRC
D3
D4
D5
D6
D7
D8
low
high
. . .
0
0
0
0
0
0
6
202
Reply
CC1000
Address
Function
Code
Register Address
Register Address
Number of Registers
Number of Registers
CRC
CRC
CC1000
Address
Function
Code
high (RH)
low (RL)
high
low
low
high
1
16
0
116
0
4
20
18
CC1000 Modbus Reference 2.10e
!
39/122