A/D Scan Mode Example 2 - Intel 8XC196K Series User Manual

Table of Contents

Advertisement

8XC196K x , J x , CA USER'S MANUAL
version. Step 4 updates PTSPTR1 (PTSPTR1 now points to 3004H) and step 5 decrements
PTSCOUNT to 3. The next cycle begins by storing the channel 5 command in the temporary lo-
cation. During the last cycle (PTSCOUNT = 1), the dummy command is loaded into the
AD_COMMAND register and no conversion is performed. PTSCOUNT is decremented to zero
and the end-of-PTS interrupt is requested.
5.6.5.3

A/D Scan Mode Example 2

Table 5-11 sets up a series of ten PTS cycles, each of which reads a single A/D channel and stores
the result in a single location (3002H). The UPDT bit (PTSCON.3) is cleared so that original con-
tents of PTSPTR1 are restored after the cycle. The command/data table is shown in Table 5-10.
5-30
Table 5-8. Command/Data Table (Example 1)
Address
300EH
AD_RESULT for ACH4
300CH
0000H (Dummy command)
300AH
AD_RESULT for ACH5
3008H
AD_COMMAND for ACH4
3006H
AD_RESULT for ACH6
3004H
AD_COMMAND for ACH5
3002H
AD_RESULT for ACH7
3000H
AD_COMMAND for ACH6
Table 5-9. A/D Scan Mode PTSCB (Example 1)
PTSPTR2 (HI) = 1FH
PTSPTR2 (LO) = AAH
PTSPTR1 (HI) = 30H
PTSPTR1 (LO) = 00H
PTSCON = CBH (Mode = 110, UPDT = 1)
PTSCOUNT = 04H
Table 5-10. Command/Data Table (Example 2)
Address
AD_RESULT for ACH x
3002H
3000H
AD_COMMAND for ACH x
Contents
Unused
Unused
Contents

Advertisement

Table of Contents
loading

Table of Contents