Zilog Z08470 Uživatelský manuál Strana 23

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 330
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 22
UM008101-0601 Counter/Timer Channels
The Prescaler
The prescaler is an 8-bit device that is used in the TIMER mode only. The
prescaler is programmed by the CPU through the Channel Control register
to divide its input, the System clock (0), by 16 or 256. The output of the
prescaler is then fed as an input to clock the down-counter. Each time that
Table 2. Channel Control Register
76543210
Interrupt Mode Prescaler
Val ue*
CLK/TRG
Section
Time
Trigger*
Time
Constant
Reset Control or
Vec tor
R/W R/W R/W R/W R/W R/W R/W R/W
Bit Number Field R/W Value Description
7 Interrupt R/W 1
0
Enable Interrupt
Disable Interrupt
6Mode R/W1
0
COUNTER Mode
TIMER Mode
5 Prescaler Value* R/W 1
0
256
16
4 CLK/TRG Edge
Section
R/W 1
0
Rising Edge
Falling Edge
3 Time Trigger* R/W 1
0
CLK/TRG Pulse Starts Timer
Automatic trigger when time constant is loaded
2 Time Constant R/W 1
0
Time Constant Follows
No Time Constant Follows
1 Reset R/W 1
0
Software Reset
Continue Operation
0 Control or Vector R/W 1
0
Control
Vec tor
*TIMER mode only
Zobrazit stránku 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28 ... 329 330

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

Žádné komentáře