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

Table of Contents

Advertisement

8XC196NT 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.
Address
300EH
300CH
300AH
3008H
3006H
3004H
3002H
3000H
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.
Address
3002H
3000H
5-30
Table 5-8. Command/Data Table (Example 1)
AD_RESULT for ACH4
Unused
AD_RESULT for ACH5
Unused
AD_RESULT for ACH6
Unused
AD_RESULT for ACH7
Unused
Table 5-9. A/D Scan Mode PTSCB (Example 1)
Unused
Unused
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)
Unused
Contents
0000H (Dummy command)
AD_COMMAND for ACH4
AD_COMMAND for ACH5
AD_COMMAND for ACH6
Contents
AD_RESULT for ACH x
AD_COMMAND for ACH x

Advertisement

Table of Contents
loading

Table of Contents