English
Language : 

UPD17068 Datasheet, PDF (181/341 Pages) NEC – 4-BIT SINGLE-CHIP MICROCONTROLLER CONTAINING IMAGE DISPLAY CONTROLLER AND PLL FREQUENCY SYNTHESIZER FOR DIGITAL TUNING SYSTEMS
µPD17068
(2) Flowchart of the binary search method
Start
Initialization
ADCR ← 100000B
ADCCMP=1?
Y
N
Reset b5 of ADCR
Set b4 of ADCR
Y
ADCCMP=1?
N
Reset b4 of ADCR
Set b3 of ADCR
ADCCMP=1?
Y
N
Reset b3 of ADCR
Set b2 of ADCR
Y
ADCCMP=1?
N
Reset b2 of ADCR
Set b1 of ADCR
Y
ADCCMP=1?
N
Reset b1 of ADCR
Set b0 of ADCR
Y
ADCCMP=1?
N
Reset b0 of ADCR
Detect contents of ADCR
: Sets a pin to be used.
: Sets the reference voltage to VDD/2.
: Detects the result of comparison, then
: Subtracts VDD/2 from the reference voltage when the flag is set to 0.
: Adds VDD/4 to the reference voltage when the flag is set to either 0 or 1.
: Detects the result of comparison, then
: Subtracts VDD/4 from the reference voltage when the flag is set to 0.
: Adds VDD/8 to the reference voltage when the flag is set to either 0 or 1.
: Detects the result of comparison, then
: Subtracts VDD/8 from the reference voltage when the flag is set to 0.
: Adds VDD/16 to the reference voltage when the flag is set to either 0 or 1.
: Detects the result of comparison, then
: Subtracts VDD/16 from the reference voltage when the flag is set to 0.
: Adds VDD/32 to the reference voltage when the flag is set to either 0 or 1.
: Detects the result of comparison, then
: Subtracts VDD/32 from the reference voltage when the flag is set to 0.
: Adds VDD/64 to the reference voltage when the flag is set to either 0 or 1.
: Detects the result of comparison, then
: Subtracts VDD/64 from the reference voltage when the flag is set to 0.
: Ends conversion when the flag is set to 1.
End
181