Intel Microcontroller Microscope & Magnifier User Manual


 
8XC196NP, 80C196NU USER’S MANUAL
6-34
PTS PWM Remap Mode Control Block
In PWM remap mode, the PTS uses two EPA channels to generate a pulse-width modulated (PWM)
output signal. The control block contains registers that contain the PWM on-time (PTSCONST1), the
address pointer (PTSPTR1), and a control register (PTSCON).
7 0
Unused
0 0 0 0 0 0 0 0
7 0
Unused
0 0 0 0 0 0 0 0
15 8
PTSCONST1 (HI)
PWM Const 1 Value (high byte)
7 0
PTSCONST1 (LO)
PWM Const 1 Value (low byte)
15 8
PTSPTR1 (HI)
Pointer 1 Value (high byte)
7 0
PTSPTR1 (LO)
Pointer 1 Value (low byte)
7 0
PTSCON
M2 M1 M0 TMOD TBIT
7 0
Unused
0 0 0 0 0 0 0 0
Register Location Function
PTSCONST1 PTSCB + 4 PWM Const 1 Value
Write the desired PWM on-time to these bits.
PTSPTR1 PTSCB + 2 Pointer 1 Value
These bits point to a memory location, usually EPA
x
_TIME. PTSPTR1
can point to any unreserved memory location within page 00H.
Figure 6-17. PTS Control Block — PWM Remap Mode