3 changing position detection – FUJITSU MB91460 SERIES FR60 User Manual

Page 408

Advertising
background image

392

Chapter 28 Bit Search

5.Operation

5.3 Changing Position Detection

(1) Bit position from MSB

(2) Written data (Detection starts once data is written.)

(3) Detects the changing position by scanning from MSB.

(4) Detected bit position

(5) Detection result
A value of ‘32’ is returned as detection result if changing position does not exist.
A value of ‘0’ is not returned as detection result for changing position detection.

• Execution example

Write data

Read value

(Decimal notation)

00100000000000000000000000000000

B

(20000000

H

)

Æ

2

00000001001000110100010101100111

B

(01234567

H

)

Æ

7

00000000000000111111111111111111

B

(0003FFFF

H

)

Æ

14

00000000000000000000000000000001

B

(00000001

H

)

Æ

31

00000000000000000000000000000000

B

(00000000

H

)

Æ

32

11111111111111111111000000000000

B

(FFFFF000

H

)

Æ

20

11111000010010011110000010101010

B

(F849E0AA

H

)

Æ

5

10000000000000101010101010101010

B

(8002AAAA

H

)

Æ

1

11111111111111111111111111111111

B

(FFFFFFFF

H

)

Æ

32

Table 5-1 The Relationship Between the Bit Position and the Value to be Returned (Decimal Notation)

Detected

bit position

Return

value

Detected

bit position

Return

value

Detected

bit position

Return value

Detected

bit position

Return value

31

0

23

8

15

16

7

24

30

1

22

9

14

17

6

25

29

2

21

10

13

18

5

26

28

3

20

11

12

19

4

27

27

4

19

12

11

20

3

28

26

5

18

13

10

21

2

29

25

6

17

14

9

22

1

30

24

7

16

15

8

23

0

31

Nonexistent

32

11111111111 11 111 2

0123456789 AB CDEF0123456789ABCDEF 0

0000000000 00 000 111000000000 00 000

>>>>>>>>>>>>>>>*

F

H

(15

Decimal

)

Data

Bit position from MSB

Scan

Detection result

Advertising