REGISTERS

 

 

EPAx_CON

 

 

 

EPAx_CON (Continued)

Address:

Table C-4

x = 0–1 (8XC196MH)

Reset State:

 

x = 0–3 (8XC196MC) x = 0–5 (8XC196MD)

The EPA control (EPAx_CON) registers control the functions of their assigned capture/compare channels.

x = 0, 2, 4

x = 1, 3, 5

7

 

 

 

 

 

 

 

0

TB

CE

M1

M0

 

RE

WGR

ROT

ON/RT

7

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

TB

CE

M1

M0

 

RE

AD

ROT

ON/RT

 

 

 

 

 

 

 

 

 

 

Bit

Bit

 

Function

 

 

Number

Mnemonic

 

 

 

 

 

 

 

 

 

 

 

 

3

RE

Re-enable

 

 

 

 

Re-enable applies to the compare mode only. It allows a compare event

 

 

 

 

to continue to execute each time the event-time register (EPAx_TIME)

 

 

 

 

matches the reference timer rather than only upon the first time match.

 

 

 

 

0 = compare function is disabled after a single event

 

 

 

 

1 = compare function always enabled

 

 

 

 

 

 

 

2

WGR

Waveform Generator Reload; A/D Conversion

 

 

 

AD

The function of this bit depends on the EPA channel.

 

 

 

 

 

 

 

 

For EPA capture/compare channels 0, 2, 4:

 

 

 

 

The WGR bit allows you to use the EPA activities to cause the reload

 

 

 

 

of new values in the waveform generator.

 

 

 

 

0

= no action

 

 

 

 

1

= enables waveform generator reload

 

 

 

 

For EPA capture/compare channels 1, 3, 5:

 

 

 

 

The AD bit allows you to use the EPA activities to start an A/D

 

 

 

 

conversion that has been previously set up in the A/D control

 

 

 

 

registers.

 

 

 

 

0

= causes no A/D action

 

 

 

 

1

= starts an A/D conversion on an output compare

 

 

 

 

 

 

 

1

ROT

Reset Opposite Timer

 

 

 

 

Controls different functions for capture and compare modes.

 

 

 

 

In Capture Mode:

 

 

 

 

0

= causes no action

 

 

 

 

1

= resets the opposite timer

 

 

 

 

In Compare Mode:

 

 

 

 

Selects the timer that is to be reset if the RT bit is set.

 

 

 

 

0

= selects the reference timer for possible reset

 

 

 

 

1

= selects the opposite timer for possible reset

 

 

 

 

The TB bit (bit 7) selects which is the reference timer and which is the

 

 

 

 

opposite timer.

 

 

 

 

 

 

 

 

 

 

 

 

 

C-19

Page 496
Image 496
Intel manual EPAxCON Address Table C-4 = 0-1 8XC196MH, = 0-3 8XC196MC x = 0-5 8XC196MD