Intel 80C196NU, 8XC196NP, Microcontroller manual PTS PWM Remap Mode Control Block

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 141
Image 141

8XC196NP, 80C196NU USER’S MANUAL

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).

Unused

Unused

PTSCONST1 (HI)

PTSCONST1 (LO)

PTSPTR1 (HI)

PTSPTR1 (LO)

PTSCON

Unused

7

 

 

 

 

 

 

 

 

0

0

0

0

0

 

0

 

0

0

0

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

0

0

0

0

 

0

 

0

0

0

15

 

 

 

 

 

 

 

 

8

 

 

 

 

 

 

 

 

 

 

 

PWM Const 1 Value (high byte)

 

 

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

PWM Const 1 Value (low byte)

 

 

15

 

 

 

 

 

 

 

 

8

 

 

 

 

 

 

 

 

 

 

 

 

Pointer 1 Value (high byte)

 

 

 

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

Pointer 1 Value (low byte)

 

 

 

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

M2

M1

M0

 

 

TMOD

TBIT

7

 

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

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 EPAx_TIME. PTSPTR1

 

 

can point to any unreserved memory location within page 00H.

 

 

 

Figure 6-17. PTS Control Block — PWM Remap Mode

6-34

Page 141
Image 141
Intel 80C196NU, 8XC196NP manual PTS PWM Remap Mode Control Block, PTSCONST1 HI PTSCONST1 LO PTSPTR1 HI PTSPTR1 LO Ptscon