連續趨近法ADC
程式編寫日期: 2007年8月22日
程式 (83 bytes)
注意: 10^( 是按 SHIFT log
ClrMemory: ?→A: ?→B: ?→C:
B ÷ (2^( A ) - 1→D: 910^( A→M: Lbl 0:
A - 1→A: 10^( A M+: M◢ X + 2^( A→X:
XD◢ Ans > C => 10^( A M- => X - 2^( A→X:
A => Goto 0: M◢ XD
Example: A 4-bit successive approximation ADC has a full range of voltage of 10V. Suppose analog input is 3.7V. Write down the sequence of digital input to DAC of the converter and DAC output.
Press Prog 1 4 EXE 10 EXE 3.7
EXE (read-out 91000) EXE (read-out 5.3333)
EXE (read-out 90100) EXE (read-out 2.6667)
EXE (read-out 90110) EXE (read-out 4)
EXE (read-out 90101) EXE (read-out 3.3333)
EXE (read-out 90101) EXE (read-out 3.3333)
The sequence of digital input is 1000→ 0100→0110→0101→0101
The sequence of digital output is 5.333V→2.667V→4V→3.333V→3.333V
返回 CASIO fx-50FH 及 fx-50F PLUS 程式集