Dil ID: 13
Dil Adı: romaina
Dil Kodu: ro10 Elevation Audio Produktura e markake
Dünyanın En Büyük
Elektronik Bilgi Kütüphanesi



Programming
Chapter 3
334
Figure 3.30
General
AF1 BCD to Binary Conversion Function Word and Digit Format
171615141312111076543210
S
Digit 1 (MSD)
(Always = 0)
Digit 3
Bit No.
Data Address
Digit 5
S
Result Address
Result
DE
E = Enable Bit (1 = Function in Progress)
S = Sign Bit (1= Negative)
D = Done Bit (1 = Function Complete)
MSD = Most Significant Digit
LSD = Least Significant Digit
11493
ER
ER = Error Bit (1 = BCD Number > 4095 Entered)
m
m + 1
n
Operand
Digit 4
Digit 6
(LSD)
Digit 2
(Always = 0)
(Must be 3 4)
3. Enter a data address.
If we choose a data address of 200 and a result address of 300, the data table
format is as shown in Figure 3.31. The most significant three digits of the
operand (the BCD number we want to convert to binary) reside in the data
address word 200 and the least significant three digits reside in the next higher
address, 201. The first two digits are always zero and the third digit must not
exceed four. The number, converted to binary format, is stored in bits 0 through
13 in the result address, word 300.
Figure 3.31
AF1
BCD to Binary Conversion Function Format After Address Entry
171615141312111076543210
S
Digit 1 (MSD)
(Always = 0)
Digit 3
Bit No.
Data Address
Digit 5
S
Result Address
Result
DE
E = Enable Bit (1 = Function in Progress)
S = Sign Bit (1= Negative)
D = Done Bit (1 = Function Complete)
MSD = Most Significant Digit
LSD = Least Significant Digit
11494
ER
ER = Error Bit (1 = BCD Number > 4095 Entered)
Operand
Digit 4
Digit 6
(LSD)
Digit 2
(Always = 0)
200
201
300
(Must be
3 4)