PIC17C752-08/CL MICROCHIP [Microchip Technology], PIC17C752-08/CL Datasheet - Page 107

no-image

PIC17C752-08/CL

Manufacturer Part Number
PIC17C752-08/CL
Description
High-Performance 8-Bit CMOS EPROM Microcontrollers with 10-bit A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
13.1.3.3
The PWMs will operate regardless of the clock source
of the timer. The use of an external clock has ramifica-
tions that must be understood. Because the external
TCLK12 input is synchronized internally (sampled once
per instruction cycle), the time TCLK12 changes to the
time the timer increments will vary by as much as 1T
(one instruction cycle). This will cause jitter in the duty
cycle as well as the period of the PWM output.
This jitter will be 1T
synchronized with the processor clock. Use of one of
the PWM outputs as the clock source to the TCLK12
input, will supply a synchronized clock.
In general, when using an external clock source for
PWM, its frequency should be much less than the
device frequency (Fosc).
TABLE 13-5:
Address
16h, Bank 3
17h, Bank 3
16h, Bank 7
10h, Bank 2
11h, Bank 2
16h, Bank 1
17h, Bank 1
07h, Unbanked INTSTA
06h, Unbanked CPUSTA
14h, Bank 2
15h, Bank 2
10h, Bank 3
11h, Bank 3
10h, Bank 7
12h, Bank 3
13h, Bank 3
11h, Bank 7
Legend:
1998 Microchip Technology Inc.
x = unknown, u = unchanged, - = unimplemented read as '0', q = value depends on conditions,
shaded cells are not used by PWM Module.
EXTERNAL CLOCK SOURCE
Name
TCON1
TCON2
TCON3
TMR1
TMR2
PIR1
PIE1
PR1
PR2
PW1DCL
PW2DCL
PW3DCL
PW1DCH
PW2DCH
PW3DCH
REGISTERS/BITS ASSOCIATED WITH PWM
CY
, unless the external clock is
Timer1’s register
Timer2’s register
Timer1 period register
Timer2 period register
CA2OVF
CA2ED1
Bit 7
RBIF
RBIE
PEIF
DC1
DC1
DC1
DC9
DC9
DC9
CA2ED0
CA1OVF
CA4OVF
TMR3IF
TMR3IE
T0CKIF
Bit 6
DC0
DC0
DC0
DC8
DC8
DC8
PWM2ON PWM1ON CA1/PR3 TMR3ON TMR2ON
TM2PW2
TM2PW3
CA1ED1
CA3OVF
TMR2IF
TMR2IE
STKAV
Bit 5
T0IF
DC7
DC7
DC7
CY
CA1ED0
CA4ED1
TMR1IF
TMR1IE
GLINTD
Bit 4
INTF
DC6
DC6
DC6
CA4ED0
13.1.3.3.1 MAX RESOLUTION/FREQUENCY FOR
The use of an external clock for the PWM time-base
(Timer1 or Timer2) limits the PWM output to a maxi-
mum resolution of 8-bits. The PWxDCL<7:6> bits must
be kept cleared. Use of any other value will distort the
PWM output. All resolutions are supported when inter-
nal clock mode is selected. The maximum attainable
frequency is also lower. This is a result of the timing
requirements of an external clock input for a timer (see
the Electrical Specification section). The maximum
PWM frequency, when the timers clock source is the
RB4/TCLK12 pin, as shown in
resolution mode).
CA2IF
CA2IE
Bit 3
PEIE
DC5
DC5
DC5
T16
TO
TMR3CS
CA3ED1
T0CKIE
CA1IE
CA1IF
Bit 2
DC4
DC4
DC4
PD
EXTERNAL CLOCK INPUT
TMR2CS
CA3ED0
TX1IF
TX1IE
Bit 1
POR
T0IE
DC3
DC3
DC3
PIC17C7XX
PWM3ON
TMR1ON
TMR1CS
RC1IF
RC1IE
Bit 0
INTE
BOR
DC2
DC2
DC2
Table 13-4
DS30289A-page 107
0000 0000 0000 0000
0000 0000 0000 0000
-000 0000 -000 0000
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
x000 0010 u000 0010
0000 0000 0000 0000
0000 0000 0000 0000
--11 11qq --11 qquu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xx-- ---- uu-- ----
xx0- ---- uu0- ----
xx0- ---- uu0- ----
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
Value on
POR,
BOR
(standard
MCLR,
WDT

Related parts for PIC17C752-08/CL