Control Word Register Assignment Help

Assignment Help: >> Programmable Interval Timer - Control Word Register

Control Word Register:

This register has the programmed information, which will be sent out (by the microprocessor) to the device. It describes how the PIT logically works.

In order to initialize the counters, the microprocessor has to write a control word (CW) in this register. It can be done by setting proper values for the pins of the Read/Write Logic block and then by sending the control word to the Data/Bus Buffer block.

The control word contains 8 bits, labelled as D7..D0 (D7 is the MSB).

Bit#

D7   D6

D5   D4

D3  D2  D1

D0

Name

SC1  SC0

RW1  RW0

M2  M1  M0

= 0, 16-b binary counter

Func.

Select Counter

Read/Write

Select Mode

= 1, 4-decade BCD counter

The following table define how to use the Read/Write bits (RW1, RW0).

RW 1

RW 0

Description

0

0

Counter Latch Command

0

1

Read/Write the last significant byte (LSB) only

1

0

Read/Write the most significant byte (MSB)

only

1

1

Read/Write LSB first, followed by MSB

While setting the PIT, the microprocessor initially sends a control message, afterwards a count message to the PIT. The counting procedure will start after the PIT has achieved these messages, and, in some of the cases, if it detects the rising edge from the GATE input signal. On most of PCs, the address for the Control Word Register is respectively 043 hex, and 040h, 041h, 042h for each of the counter.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd