Bit Search Module Operation And Save/Restore Processing - Fujitsu MB91F109 FR30 Hardware Manual

Fr30 series 32-bit microcontroller
Table of Contents

Advertisement

13.3 Bit Search Module Operation and Save/Restore Processing

This section explains the operations of the bit search module for 0-detection, 1-detection,
and change-point detection and also explains save and restore processing.
0-Detection
The module scans the data written to the 0-detection data register from MSB to LSB and returns
the position where the first "0" is detected.
The detection result can be obtained by reading the detection result register.
The relationship between the detected positions and the values to be returned are summarized in
Table 13.3-1.
If no "0" is found (if the value is FFFFFFFF
[Execution example]
11111111 11111111 11110000 00000000
11111000 01001001 11100000 10101010
10000000 00000010 10101010 10101010
11111111 11111111 11111111 11111111
1-Detection
The module scans the data written to the 1-detection data register from MSB to LSB and returns
the position where the first "1" is detected.
The detection result can be obtained by reading the detection result register.
The relationship between the detected positions and the values to be returned are summarized in
Table 13.3-1.
If no "1" is found (if the value is 00000000
[Execution example]
00100000 00000000 00000000 00000000
00000001 00100011 01000101 01100111
00000000 00000011 11111111 11111111
00000000 00000000 00000000 00000001
00000000 00000000 00000000 00000000
13.3 Bit Search Module Operation and Save/Restore Processing
Write data
Write data
), 32 is returned as the search result.
H
(FFFFF000
)
B
H
(F849E0AA
)
B
H
(8002AAAA
)
B
H
(FFFFFFFF
)
B
H
), 32 is returned as the search result.
H
(20000000
)
B
H
(01234567
)
B
H
(0003FFFF
)
B
H
(00000001
)
B
H
(00000000
)
B
H
Read value (decimal)
==>
20
==>
5
==>
1
==>
32
Read value (decimal)
==>
2
==>
7
==>
14
==>
31
==>
32
295

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91f109

Table of Contents