![background image](http://html.mh-extra.com/html/fujitsu/fr60lite/fr60lite_hardware-manual_119677163.webp)
148
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
H
), 32 is returned as the detection result.
[Execution example]
Write data
Read value (decimal)
11111111111111111111000000000000
B
(FFFFF000
H
)
→
20
11111000010010011110000010101010
B
(F849E0AA
H
)
→
5
10000000000000101010101010101010
B
(8002AAAA
H
)
→
1
11111111111111111111111111111111
B
(FFFFFFFF
H
)
→
32
■
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
H
), 32 is returned as the detection result.
[Execution example]
Write data
Read value (decimal)
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
Summary of Contents for FR60Lite
Page 3: ......
Page 5: ......
Page 115: ...100 CHAPTER 3 CPU AND CONTROL UNITS ...
Page 127: ...112 CHAPTER 4 I O PORTS ...
Page 143: ...128 CHAPTER 5 INTERRUPT CONTROLLER ...
Page 155: ...140 CHAPTER 6 EXTERNAL INTERRUPT AND NMI CONTROLLER ...
Page 197: ...182 CHAPTER 9 PPG Programmable Pulse Generator ...
Page 337: ...322 CHAPTER 13 UART ...
Page 417: ...402 CHAPTER 16 DMAC DMA Controller ...
Page 445: ...430 CHAPTER 17 FLASH MEMORY ...
Page 451: ...436 CHAPTER 18 SERIAL PROGRAMMING CONNECTION ...
Page 493: ...478 APPENDIX F Precautions on Handling ...
Page 494: ...479 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 507: ...492 INDEX ...
Page 509: ......