Selecting The Pts Mode; Single Transfer Mode - Intel 8XC196K Series User Manual

Table of Contents

Advertisement

5.6.2

Selecting the PTS Mode

The second byte of each PTSCB is always an 8-bit value called PTSCON. Bits 5–7 select the PTS
mode (Figure 5-11). The function of bits 0–4 differ for each PTS mode. Refer to the sections that
describe each routine in detail to see the function of these bits. Table 5-4 on page 5-10 lists the
execution times for each PTS mode.
PTSCON
The PTS control (PTSCON) register selects the PTS mode and sets up control functions for that
mode.
7
M2
M1
Bit
Bit
Number
Mnemonic
7:5
M2:0
The function of this bit depends upon which mode is selected. See the PTS control block description
in each PTS mode section.
Figure 5-11. PTS Mode Selection Bits (PTSCON Bits 7:5)
5.6.3

Single Transfer Mode

In single transfer mode, an interrupt causes the PTS to transfer a single byte or word (selected by
the BW bit in PTSCON) from one memory location to another. This mode is typically used with
serial I/O, or synchronous serial I/O, or slave port interrupts. It can also be used with the EPA to
move captured time values from the event-time register to internal RAM for further processing.
See AP-445, 8XC196KR Peripherals: A User's Point of View, for application examples with code.
Figure 5-12 shows the PTS control block for single transfer mode.
M0
PTS Mode
These bits select the PTS mode:
M2
M1
M0
0
0
0
block transfer
0
0
1
reserved
0
1
0
PWM toggle or remap
0
1
1
reserved
1
0
0
single transfer
1
0
1
reserved
1
1
0
A/D scan
1
1
1
reserved
STANDARD AND PTS INTERRUPTS
Address: PTSPCB + 1
Function
0
5-21

Advertisement

Table of Contents
loading

Table of Contents