English
Language : 

PIC16F882_09 Datasheet, PDF (318/328 Pages) Microchip Technology – 28/40/44-Pin, Enhanced Flash-Based 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F882/883/884/886/887
Prescaler ................................................................... 126
PWM Mode ............................................................... 128
Duty Cycle......................................................... 129
Effects of Reset................................................. 131
Example PWM Frequencies and
Resolutions, 20 MHZ ................................ 130
Example PWM Frequencies and
Resolutions, 8 MHz................................... 130
Operation in Sleep Mode .................................. 131
Setup for Operation........................................... 131
System Clock Frequency Changes................... 131
PWM Period .............................................................. 129
Setup for PWM Operation ......................................... 131
Timer Resources....................................................... 125
CCP1CON (Enhanced) Register....................................... 124
CCP2CON Register .......................................................... 125
Clock Accuracy with Asynchronous Operation ................. 160
Clock Sources
External Modes ........................................................... 63
EC ....................................................................... 63
HS ....................................................................... 64
LP........................................................................ 64
OST..................................................................... 63
RC....................................................................... 65
XT ....................................................................... 64
Internal Modes ............................................................ 65
Frequency Selection ........................................... 67
HFINTOSC.......................................................... 65
HFINTOSC/LFINTOSC Switch Timing ............... 67
INTOSC .............................................................. 65
INTOSCIO........................................................... 65
LFINTOSC .......................................................... 67
Clock Switching................................................................... 69
CM1CON0 Register ............................................................ 88
CM2CON0 Register ............................................................ 89
CM2CON1 Register ............................................................ 91
Code Examples
A/D Conversion ......................................................... 103
Assigning Prescaler to Timer0 .................................... 74
Assigning Prescaler to WDT ....................................... 74
Changing Between Capture Prescalers .................... 126
Indirect Addressing ..................................................... 37
Initializing PORTA ....................................................... 39
Initializing PORTB ....................................................... 47
Initializing PORTC....................................................... 53
Initializing PORTD....................................................... 57
Initializing PORTE ....................................................... 59
Loading the SSPBUF Register ................................. 184
Saving STATUS and W Registers in RAM ............... 223
Ultra Low-Power Wake-up Initialization ...................... 41
Write Verify ............................................................... 120
Writing to Flash Program Memory ............................ 119
Code Protection ................................................................ 227
Comparator
C2OUT as T1 Gate ............................................... 77, 91
Effects of a Reset........................................................ 87
Operation .................................................................... 83
Operation During Sleep .............................................. 87
Response Time ........................................................... 85
Specifications ............................................................ 262
Synchronizing COUT w/Timer1 .................................. 91
Comparator Module ............................................................ 83
Associated Registers .................................................. 97
C1 Output State Versus Input Conditions ................... 85
Comparator Voltage Reference (CVREF)
DS41291F-page 316
Response Time........................................................... 85
Comparator Voltage Reference (CVREF) ............................ 94
Effects of a Reset ....................................................... 87
Specifications ........................................................... 262
Compare Module. See Enhanced Capture/
Compare/PWM (ECCP)
CONFIG1 Register ........................................................... 210
CONFIG2 Register ........................................................... 211
Configuration Bits ............................................................. 210
CPU Features ................................................................... 209
Customer Change Notification Service............................. 323
Customer Notification Service .......................................... 323
Customer Support............................................................. 323
D
Data EEPROM Memory.................................................... 111
Associated Registers ................................................ 121
Code Protection ........................................................ 120
Reading .................................................................... 114
Writing ...................................................................... 114
Data Memory ...................................................................... 22
DC Characteristics
Extended .................................................................. 250
Industrial ................................................................... 249
Industrial and Extended ............................ 247, 248, 251
Development Support ....................................................... 241
Device Overview................................................................. 13
E
ECCP. See Enhanced Capture/Compare/PWM
ECCPAS Register............................................................. 142
EEADR Register ............................................................... 112
EEADR Registers ............................................................. 111
EEADRH Registers........................................................... 111
EECON1 Register..................................................... 111, 113
EECON2 Register............................................................. 111
EEDAT Register ............................................................... 112
EEDATH Register............................................................. 112
EEPROM Data Memory
Avoiding Spurious Write ........................................... 120
Write Verify ............................................................... 120
Effects of Reset
PWM mode ............................................................... 131
Electrical Specifications .................................................... 245
Enhanced Capture/Compare/PWM .................................. 123
Enhanced Capture/Compare/PWM (ECCP)
Enhanced PWM Mode.............................................. 132
Auto-Restart ..................................................... 143
Auto-shutdown.................................................. 141
Direction Change in Full-Bridge Output Mode.. 138
Full-Bridge Application...................................... 136
Full-Bridge Mode .............................................. 136
Half-Bridge Application ..................................... 135
Half-Bridge Application Examples .................... 144
Half-Bridge Mode.............................................. 135
Output Relationships (Active-High and
Active-Low).............................................. 133
Output Relationships Diagram.......................... 134
Programmable Dead Band Delay..................... 144
Shoot-through Current ...................................... 144
Start-up Considerations .................................... 140
Specifications ........................................................... 261
Timer Resources ...................................................... 124
Enhanced Universal Synchronous
Asynchronous Receiver Transmitter (EUSART)....... 151
Errata .................................................................................. 12
© 2009 Microchip Technology Inc.