PIC16F684-ISL

Manufacturer Part NumberPIC16F684-ISL
ManufacturerMicrochip Technology Inc.
PIC16F684-ISL datasheets
 


Specifications of PIC16F684-ISL

CaseN/ANotesNEW
Date_code11+  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Page 81
82
Page 82
83
Page 83
84
Page 84
85
Page 85
86
Page 86
87
Page 87
88
Page 88
89
Page 89
90
Page 90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
Page 89/164

Download datasheet (3Mb)Embed
PrevNext
11.3.7.1
Auto-shutdown and Auto-restart
The auto-shutdown feature can be configured to allow
auto-restarts of the module following a shutdown event.
This is enabled by setting the PRSEN bit of the
PWM1CON register (PWM1CON<7>).
In Shutdown mode with PRSEN = 1 (Figure 11-12), the
ECCPASE bit will remain set for as long as the cause
of the shutdown continues. When the shutdown condi-
tion clears, the ECCPASE bit is cleared. If PRSEN = 0
(Figure 11-13), once a shutdown condition occurs, the
ECCPASE bit will remain set until it is cleared by firm-
ware. Once ECCPASE is cleared, the enhanced PWM
will resume at the beginning of the next PWM period.
Note:
Writing to the ECCPASE bit is disabled
while a shutdown condition is active.
Independent of the PRSEN bit setting, whether the
auto-shutdown source is one of the comparators or
INT, the shutdown condition is a level. The ECCPASE
bit cannot be cleared as long as the cause of the shut-
down persists.
The Auto-shutdown mode can be forced by writing a ‘1’
to the ECCPASE bit.
FIGURE 11-12:
PWM AUTO-SHUTDOWN (PRSEN = 1, AUTO-RESTART ENABLED)
Shutdown
Event
ECCPASE bit
PWM
Activity
Start of
PWM Period
FIGURE 11-13:
PWM AUTO-SHUTDOWN (PRSEN = 0, AUTO-RESTART DISABLED)
Shutdown
Event
ECCPASE bit
PWM
Activity
Start of
PWM Period
 2004 Microchip Technology Inc.
11.3.8
START-UP CONSIDERATIONS
When the ECCP module is used in the PWM mode, the
application hardware must use the proper external
pull-up and/or pull-down resistors on the PWM output
pins. When the microcontroller is released from Reset,
all of the I/O pins are in the high-impedance state. The
external circuits must keep the power switch devices in
the off state, until the microcontroller drives the I/O pins
with the proper signal levels, or activates the PWM
output(s).
The CCP1M<1:0> bits (CCP1CON<1:0>) allow the
user to choose whether the PWM output signals are
active-high or active-low for each pair of PWM output
pins (P1A/P1C and P1B/P1D). The PWM output polar-
ities must be selected before the PWM pins are config-
ured as outputs. Changing the polarity configuration
while the PWM pins are configured as outputs is not
recommended since it may result in damage to the
application circuits.
The P1A, P1B, P1C and P1D output latches may not
be in the proper states when the PWM module is initial-
ized. Enabling the PWM pins for output at the same
time as the ECCP module may cause damage to the
application circuit. The ECCP module must be enabled
in the proper Output mode and complete a full PWM
cycle before configuring the PWM pins as outputs. The
completion of a full PWM cycle is indicated by the
TMR2IF bit being set as the second PWM period
begins.
PWM Period
Normal PWM
Shutdown
Shutdown
Event Occurs
Event Clears
PWM Period
Normal PWM
Shutdown
Shutdown
Event Occurs
Event Clears
Preliminary
PIC16F684
PWM
Resumes
ECCPASE
Cleared by
Firmware
PWM
Resumes
DS41202C-page 87