連續趨近法ADC

程式編寫日期: 2006年6月21日

程式 (82 bytes)

注意: 10x 是按 SHIFT log

Mem clear: ?→A: ?→B: ?→C:

B ÷ (2^A - 1→D: 910xA→M: Lbl 0:

A - 1→A: 10x A M+: M◢ 2^A + X→X:

XD◢ Ans > C => 10x 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

 

返回 fx-3650P及SC-185程式集

Free Web Hosting