Question 2: (11 marks) The Timer 8254 Intel as shows in Figure 1, which is composed of three counters (CNTO, CNTI, and C
Posted: Fri May 20, 2022 10:38 am
Question 2: (11 marks) The Timer 8254 Intel as shows in Figure 1, which is composed of three counters (CNTO, CNTI, and CNT2). Each counter accepts a 16-bit size register. These input registers can be loaded with a number of varied choices from 0 to 65535. The Timer 8254 provides us with 6 operating modes (Mode 0 to mode 5). The pin CS of a given 8254 is activated by binary address A7-A2=101010. a) Sketch the internal architecture of the 8254A. [1] a) Find the port address for counters 0, 1 and 2 and control word register. [2] b) What is the control word corresponding to programming counter 1 on mode 0 with binary counting? Propose an assembly program to configure the Timer 8254 with the decimal number 150. [2.5]
c) What is the control word corresponding to programming counter 2 on mode 3 with BCD counting? Propose an assembly program to configure the Timer 8254 with the number 37H. [2.5] d) What is the control word corresponding to programming counter 0, with the following options: Mode 2, BCD Counting? Propose an assembly program to configure the Timer 8254 with the number 5252H. [3]
c) What is the control word corresponding to programming counter 2 on mode 3 with BCD counting? Propose an assembly program to configure the Timer 8254 with the number 37H. [2.5] d) What is the control word corresponding to programming counter 0, with the following options: Mode 2, BCD Counting? Propose an assembly program to configure the Timer 8254 with the number 5252H. [3]