Operation Of Bit Search Module - Fujitsu MB91260B Series Hardware Manual

32-bit microcontroller
Table of Contents

Advertisement

CHAPTER 7 REALOS-RELATED HARDWARE
7.6

Operation of Bit Search Module

This section explains 3 types of the bit search module operation.
• 0 detection
• 1 detection
• Change point detection
■ 0 Detection
The bit search module scans data written to the 0 detection data register from the MSB to LSB and returns
the location where the first "0" is detected.
The detection result can be obtained by reading the detection result register.
The relationship between the detected location and the return value is given in Table 7.6-1.
If a "0" is not found (that is, if the value is FFFFFFFF
[Execution example]
11111111111111111111000000000000
11111000010010011110000010101010
10000000000000101010101010101010
11111111111111111111111111111111
■ 1 Detection
The bit search module scans data written to the 1 detection data register from the MSB to LSB and returns
the location where the first "1" is detected.
The detection result can be obtained by reading the detection result register.
The relationship between the detected location and the return value is given in Table 7.6-1.
If a "1" is not found (that is, if the value is 00000000
[Execution example]
00100000000000000000000000000000
00000001001000110100010101100111
00000000000000111111111111111111
00000000000000000000000000000001
00000000000000000000000000000000
148
Write data
(FFFFF000
B
(F849E0AA
B
(8002AAAA
B
(FFFFFFFF
B
Write data
(20000000
B
(01234567
B
(0003FFFF
B
(00000001
B
(00000000
B
), 32 is returned as the detection result.
H
Read value (decimal)
)
20
H
)
5
H
)
1
H
)
32
H
), 32 is returned as the detection result.
H
Read value (decimal)
)
2
H
)
7
H
)
14
H
)
31
H
)
32
H

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60lite

Table of Contents