
354 THE x86 MICROPROCESSORS
it is ‘0’. In binary, the count can be from 0 to FFFFH – in BCD, the number can vary only
from 0 to 9999.
Recollect that the maximum BCD count can only be 9999, which is to be written as 9999H
(refer Section 0.6.4), while the maximum binary count can be FFFFH.
Example 10.1
Confi gure the control word for the following cases.
Counter 0 in mode 3, count in BCD, specify that a 16-bit count is written with LSB a)
fi rst.
Counter 2 in mode 0, count in binary format, count loaded as in the previous case.b)
Solution
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
0
00110111
e control word is written referring to Fig 10.4 and is 37H
Solution
D
7
D
6
D
5
D
4
D
3
D
2
D
1
D
0
10110000 ...