Intel 8XC196MC Microscope & Magnifier User Manual


 
5-33
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).
7 0
Unused
0 0 0 0 0 0 0 0
7 0
Unused
0 0 0 0 0 0 0 0
15 8
PTSPTR2 (H)
Pointer 2 Value (high byte)
7 0
PTSPTR2 (L)
Pointer 2 Value (low byte)
15 8
PTSPTR1 (H)
Pointer 1 Value (high byte)
7 0
PTSPTR1 (L)
Pointer 1 Value (low byte)
7 0
PTSCON
M2 M1 M0 0 UPDT 0 1 0
7 0
PTSCOUNT
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