Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Микроконтроллер Motorola 68HC11.pdf
Скачиваний:
38
Добавлен:
26.05.2014
Размер:
985.62 Кб
Скачать

Table 9-2 Timer Control Configuration

EDGxB

EDGxA

Configuration

 

 

 

0

0

Capture disabled

 

 

 

0

1

Capture on rising edges only

 

 

 

1

0

Capture on falling edges only

 

 

 

1

1

Capture on any edge

 

 

 

9.2.2 Timer Input Capture Registers

When an edge has been detected and synchronized, the 16-bit free-running counter value is transferred into the input capture register pair as a single 16-bit parallel transfer. Timer counter value captures and timer counter incrementing occur on opposite half-cycles of the phase 2 clock so that the count value is stable whenever a capture occurs. The TICx registers are not affected by reset. Input capture values can be read from a pair of 8-bit read-only registers. A read of the high-order byte of an input capture register pair inhibits a new capture transfer for one bus cycle. If a double-byte read in-

9 struction, such as LDD, is used to read the captured value, coherency is assured. When a new input capture occurs immediately after a high-order byte read, transfer is delayed for an additional cycle but the value is not lost.

TIC1 – TIC3 — Timer Input Capture

 

 

 

 

 

$1010 – $1015

$1010

 

 

 

 

 

 

 

 

 

TIC1 (High)

Bit 15

14

13

 

12

11

10

9

Bit 8

$1011

 

 

 

 

 

 

 

 

 

TIC1 (Low)

Bit 7

6

5

 

4

3

2

1

Bit 0

$1012

 

 

 

 

 

 

 

 

 

TIC2 (High)

 

 

 

 

 

 

 

 

 

Bit 15

14

13

 

12

11

10

9

Bit 8

$1013

 

 

 

 

 

 

 

 

 

TIC2 (Low)

Bit 7

6

5

 

4

3

2

1

Bit 0

$1014

 

 

 

 

 

 

 

 

 

TIC3 (High)

 

 

 

 

 

 

 

 

 

Bit 15

14

13

 

12

11

10

9

Bit 8

$1015

 

 

 

 

 

 

 

 

 

TIC3 (Low)

Bit 7

6

5

 

4

3

2

1

Bit 0

 

 

 

 

 

 

 

 

 

 

 

TICx not affected by reset.

9.2.3 Timer Input Capture 4/Output Compare 5 Register

Use TI4/O5 as either an input capture register or an output compare register, depending on the function chosen for the PA3 pin. To enable it as an input capture pin, set the

I4/O5 bit in the pulse accumulator control register (PACTL) to logic level one. To use it as an output compare register, set the I4/O5 bit to a logic level zero. Refer to 9.6 Pulse Accumulator.

TI4/O5 — Timer Input Capture 4/Output Compare 5

 

 

$101E, $101F

$101E

 

 

 

 

 

 

 

 

 

TI4/O5 (High)

Bit 15

14

13

12

11

 

10

9

Bit 8

$101F

 

 

 

 

 

 

 

 

 

TI4/O5 (Low)

Bit 7

6

5

4

3

 

2

1

Bit 0

 

 

 

 

 

 

 

 

 

 

 

The TI4/O5 register pair resets to ones ($FFFF).

MOTOROLA

TIMING SYSTEM

M68HC11 E SERIES

9-6

 

TECHNICAL DATA

Соседние файлы в предмете Радиоприемные устройства