English
Language : 

PD17012_15 Datasheet, PDF (155/320 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCONTROLLERS WITH DIGITAL TUNING SYSTEM HARDWARE
µPD17012, 17P012
(2) Flowchart of binary search method
START
Initialization
ADCR ← 100000B
Y
ADCCMP = 1?
N
Resets b5 of ADCR
Sets b4 of ADCR
Y
ADCCMP = 1?
N
Resets b4 of ADCR
Sets b3 of ADCR
Y
ADCCMP = 1?
N
Resets b3 of ADCR
Sets b2 of ADCR
Y
ADCCMP = 1?
N
Resets b2 of ADCR
Sets b1 of ADCR
Y
ADCCMP = 1?
N
Resets b1 of ADCR
Sets b0 of ADCR
Y
ADCCMP = 1?
N
Resets b0 of ADCR
Detects contents of ADCR
END
: Sets pin to be used
: Sets compare voltage to 1/2 VDD
: Detects result of comparison
: If result is “0”, subtracts 1/2 VDD
: Adds 1/4 VDD to result to set compare voltage regardless of
whether result is “0” or “1”
: Detects result of comparison
: If result is “0”, subtracts 1/4 VDD
: Adds 1/8 VDD to result to set compare voltage regardless of
whether result is “0” or “1”
: Detects result of comparison
: Subtracts 1/8 VDD if result is “0”
: Adds 1/16 VDD to result to set compare voltage regardless of
whether result is “0” or “1”
: Detects result of comparison
: Subtracts 1/16 VDD if result is “0”
: Adds 1/32 VDD to result to set compare voltage regardless of
whether result is “0” or “1”
: Detects result of comparison
: Subtracts 1/32 VDD if result is “0”
: Adds 1/64 VDD to result to set compare voltage regardless of
whether result is “0” or “1”
: Detects result of comparison
: Subtracts 1/64 VDD if result is “0”
: Completes conversion with current value if result is “1”
Data Sheet U10101EJ4V0DS
153