STANDARD AND PTS INTERRUPTS

PTS A/D Scan Mode Control Block

In A/D scan mode, the PTS causes the A/D converter to perform multiple conversions on one or more channels and then stores the results. The control block contains pointers to both the AD_RESULT register (PTSPTR1) and a table of A/D conversion commands and results (PTSPTR2), a control register (PTSCON), and an A/D conversion count (PTSCOUNT).

Unused

Unused

PTSPTR2 (H)

PTSPTR2 (L)

PTSPTR1 (H)

PTSPTR1 (L)

PTSCON

PTSCOUNT

7

 

 

 

 

 

 

 

 

0

0

0

0

0

 

0

 

0

0

0

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

0

0

0

0

 

0

 

0

0

0

15

 

 

 

 

 

 

 

 

8

 

 

 

 

 

 

 

 

 

 

 

 

Pointer 2 Value (high byte)

 

 

 

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

Pointer 2 Value (low byte)

 

 

 

15

 

 

 

 

 

 

 

 

8

 

 

 

 

 

 

 

 

 

 

 

 

Pointer 1 Value (high byte)

 

 

 

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

Pointer 1 Value (low byte)

 

 

 

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

M2

M1

M0

0

 

UPDT

 

0

1

0

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

Consecutive A/D Conversions

 

 

 

 

 

 

 

 

 

 

 

 

Register

Location

 

 

 

 

Function

 

 

 

 

 

PTSPTR2

PTSCB + 4

Pointer 2 Value

 

 

 

 

This register contains the address of the A/D result register

 

 

(AD_RESULT).

 

 

 

 

 

 

 

PTSPTR1

PTSCB + 2

Pointer 1 Value

 

 

 

 

This register contains the address of the table of A/D conversion

 

 

commands and results.

 

 

 

 

 

 

PTSCON

PTSCB + 1

PTS Control Bits

 

 

 

 

 

 

 

 

 

 

M2:0

PTS Mode

 

 

 

 

 

These bits select the PTS mode.

 

 

 

M2

M1

M0

 

 

 

 

1

1

0

A/D Scan Mode

 

 

 

 

 

 

 

 

UPDT

Update

 

 

 

 

 

0 =

reload original PTSPTR1 value after each A/D scan

 

 

 

1 =

retain current PTSPTR1 value after each A/D scan

 

 

 

 

 

 

 

Figure 5-18. PTS Control Block – A/D Scan Mode

5-33

Page 120
Image 120
Intel 8XC196MD, 8XC196MH, 8XC196MC manual PTS A/D Scan Mode Control Block