Specifying The Pts Count - Intel 8XC196NT User Manual

Table of Contents

Advertisement

Single
Transfer
Unused
Unused
PTSDST(H)
PTSDST (L)
PTSSRC (H)
PTSSRC (L)
PTSCON
PTSVECT
PTSCOUNT
5.6.1

Specifying the PTS Count

For single transfer, block transfer, and A/D scan transfer routines, the first location of the PTSCB
contains an 8-bit value called PTSCOUNT. This value defines the number of interrupts that will
be serviced by the PTS routine. The PTS decrements PTSCOUNT after each PTS cycle. When
PTSCOUNT reaches zero, hardware clears the corresponding PTSSEL bit and sets the PTSSRV
bit (Figure 5-10), which requests an end-of-PTS interrupt. The end-of-PTS interrupt service rou-
tine should reinitialize the PTSCB, if required, and set the appropriate PTSSEL bit to re-enable
PTS interrupt service.
Block
A/D Scan
Transfer
Mode
Unused
Unused
PTSBLOCK
Unused
PTSDST (H)
PTSPTR2 (H)
PTSDST (L)
PTSPTR2 (L)
PTSSRC (H)
PTSPTR1 (H)
PTSSRC (L)
PTSPTR1 (L)
PTSCON
PTSCON
PTSCOUNT
PTSCOUNT
Figure 5-9. PTS Control Blocks
STANDARD AND PTS INTERRUPTS
PWM Toggle
Mode
PTSCONST2 (H)
Unused
PTSCONST2 (L)
Unused
PTSCONST1 (H)
PTSCONST1 (H)
PTSCONST1 (L)
PTSCONST1 (L)
PTSPTR1 (H)
PTSPTR1 (H)
PTSPTR1 (L)
PTSPTR1 (L)
PTSCON
PTSCON
Unused
Unused
PWM Remap
Mode
5-19

Advertisement

Table of Contents
loading

Table of Contents