Measurement-computing CIO-DAS-TEMP Uživatelský manuál Strana 13

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 20
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 12
6 REGISTER MAP
A base address register controls the beg inning, or 'Base Address' of the I /O addresses occupied by the
control registers of the CIO-DAS-TEMP. In all, eight addresses are occupied. The registers control the
programmable aspects of the CIO-DAS-TEMP performance.
6.1 CONTROL REGISTERS
After a base address has been established, the CIO-DAS-TEMP is controlled by writing to and reading
from the control registers. While it is possible to w rite your own control routines for the
CIO-DAS-TEMP, routines have been written and are available in Universal Library for DOS and
Windows programming languages. Unless you have a specific need to program at the register level, it is
recommended that you use the Universal Library or a packaged application program.
Table 5-1. Control Registers
Counter ControlNoneBASE + 7
ReloadNoneBASE + 6
ClearInterrupt & Prescaler ControlBASE + 5
Channel Control & StatusChannel & StatusBASE + 4
8254 Counter Control8254 StatusBASE + 3
Data Load8254 Counter 2 Data ReadBASE + 2
Data Load8254 Counter 1 Data ReadBASE + 1
Data Load8254 Counter 0 Data ReadBASE + 0
WRITEREADI/O ADDRESS
Register Descriptions
The register descriptions include functions of each bit in each 8-bit register as well as some design and
use descriptions
BASE + 0 Write - Counter 0 Load Register of the 82C54
Data 0Data 1Data 2Data 3Data 4Data 5Data 6Data 7
01234567
Write an initial value of 65,536 to this reg ister after programming the 82C54 control register for CTR 0
to be an event counter. It works as a down-counter, the only choice available.
BASE + 0 Read - Counter 0 Current Count Register of the 82C54
Data 0Data 1Data 2Data 3Data 4Data 5Data 6Data 7
01234567
The total of the V/F output should be read from this register after Counter 1 reaches terminal count
BASE + 1 Write - Counter 1 Load Register of the 82C54
Data 0Data 1Data 2Data 3Data 4Data 5Data 6Data 7
01234567
9
Zobrazit stránku 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 19 20

Komentáře k této Příručce

Žádné komentáře