HP 59313A Operating And Service Manual page 122

Analog to digital converter
Table of Contents

Advertisement

App endix ΙΙ - Co nvers ion Tec hniques
Model 59313Α
C.
CO
NVER
TI
N
G D
E
CI
M
A
L
TO T
W
O'S CO
MPLEMEN
T :
Ν = Decimal numbe r to b e co nve rted (-1024 to +1023) .
1 .
If Ν is positive or
z
ero : Go to Step 2.
If Ν is negat ive : Add -1 to Ν; Compleme nt (c hange 1 to 0 a n d 0 to 1) ; all 1 and 0 o
b
tain ed in Step 2 ; Go
to Step 2.
2.
Bi t 11 = 0.
(α)
Co mp are number with Ν .
3.
A
ssem
b
le all 1 and 0 with b it 1 1 at left and b it 1 at righ t.
For each
n
um ber in the c h a r t, startin g with 512 and goin g in
o
rde r ,
perform the fo ll owing steps :
(b)
If number is greate r than Ν, then that b it = 0;
u
se un changed
Ν fo r next step; go to (α).
(c)
I
f n um be r is equ al
o
r less than Ν,
t
hen
t
hat b it = 1 ; also
su
b
tract numbe r fr om Ν and
u
se the
r
esul t
f
or
t
he next step;
go to ( α).
N
um
b
er
B
it
512
10
256
9
128
8
64
7
32
6
16
5
8
4
4
3
2
1
2
1

Advertisement

Table of Contents
loading

Table of Contents