PIC16F785/HV785
DS41249E-page 198 © 2008 Microchip Technology Inc.
PIR1 (Peripheral Interrupt Register 1) ........................19
PORTA........................................................................35
PORTB........................................................................42
PORTC .......................................................................45
PWMCLK (PWM Clock Control) ... ......... .............. .......94
PWMCON0 (PWM Contro l 0 ) ...................... ...............93
PWMCON1 (PWM Contro l 1 ) ...................... .............101
PWMPH1 (PWM Phase 1 control)..............................95
PWMPH2 (PWM Phase 2 control)..............................96
REFCON (VR Control)................................................73
Reset Values...... ............... ........................... .............114
Reset Values (Special Registers).............................116
Special Function Registers ...........................................9
Special Register Summary .............................12, 13, 14
STATUS......................................................................15
Status..................................................................16, 109
T1CON (Timer1 Con tr o l)....... ....................... ........ .......53
T2CON (Timer2 Con tr o l)....... ....................... ........ .......55
TRISA (Tri-State PORTA)...........................................36
TRISB (Tri-State PORTB)...........................................42
TRISC (Tri -state PORTC)............................ ...............45
WDTCON (Watchdog Tim er Contro l)........................122
WPUA (Wea k Pull-up PORTA).............. .....................36
Resets...............................................................................109
Power-On Re set ...... ............... ..................... .............110
Revision History................................................................193
RRF Instruction............ ............... ............... .............. .........133
S
SLEEP
Instruction .................................................................133
Power-Down Mode ...................................................123
Wake-Up...................................................................123
Wake-Up Using Interrupts .........................................123
Softwa re Simulator ( MP L AB SIM).................... .................138
Special Event Trigger..........................................................89
Special Function Registers ...................................................9
Specifications....................................................................158
STATUS Regi ster....... ..................... ..................... ...............15
Statu s Reg i ster....... ..................... ..................... ...........16, 109
SUBLW Ins truction............. ............................ ...................134
SUBWF Instruction............................................................134
SWAPF Ins truction............. ..................... ..........................134
T
Time-out Sequence........................... .... ......... .... .... .... .......112
Timer0.................................................................................49
Associ a te d Re gisters.............. ..................... ...............50
External Clock.............................................................50
Interrupt.......................................................................49
Operation ....................................................................49
Prescaler.....................................................................50
Specifications............................................................155
Timer1.................................................................................51
Associ a te d Re gisters.............. ..................... ...............54
Asynchronous Counter Mode .....................................54
Reading and Writing ....... .. .. .. .. ....... .. .. .. .. .. .. ....... ..54
Interrupt.......................................................................52
Modes of Operations.......................................... .. .......52
Operation During Sleep ..............................................54
Oscillator.....................................................................54
Prescaler.....................................................................52
Specifications............................................................155
Timer1 Gate
Inve r t in g Gate.... .. ...... ...... ..... .......... ...... ..... ...... ... 52
Selectin g So u rce ....................... ..................... .... 52
TMR1H Register.........................................................51
TMR1L Register.......................................................... 51
Timer2................................................................................. 55
Associated Registers.................................................. 56
Operation.................................................................... 55
Postscaler................................................................... 55
PR2 Register .............................................................. 55
Prescaler .................................................................... 55
TMR2 Register............................................................55
TMR2 to PR2 Match Interrupt............................... 55, 56
Timing Diagrams
A/D Conver sion....... ..................... .............. ...............160
A/D Conversion (Sleep Mode).................................. 161
Brown-out Reset (BOR)............................................ 154
Brown-out Reset Situations...................................... 111
Capture/Compare/PWM ( CCP)...................... ........ .. 156
CLKOUT and I/O ...................................................... 152
External Clock...........................................................151
Fail-Safe Clock Monitor (FSCM)................................. 32
INT Pin Interrupt ....................................................... 119
Reset, WDT, OST and Power-up Timer................... 153
Time-out Sequence
Case 1.............................................................. 113
Case 2.............................................................. 113
Case 3.............................................................. 113
Timer0 and Timer1 External Clock........................... 155
Timer1 Incrementing Edge......................................... 52
Two Phase PWM
Complemen t a r y Outpu t .... ...... .......... ..... .......... . 102
Start-up............................................................... 97
Two Speed Start-up....................... .... .. .. .. .... ..... .. .... .. .. 31
Two-Phase PWM
Auto-Shutdown................................................... 97
Wake-up from Interrupt ............................................. 124
Timing Parameter Symbology .......................................... 150
TRIS Instr u ction................................... .............. ............... 134
TRISA Register................................................................... 36
TRISB Register................................................................... 42
TRISC Regist e r.... ..................... ............... ............... ............ 45
Two Phase PWM.................... .................................. .......... 91
Activating.................................................................... 91
Active Output Level .................................................... 92
Associated Registers................................................ 102
Auto-shutdown............................................................ 92
Clock Control (PWMCLK)........................................... 94
Control Register 0 (PWMCON0)................................. 93
Control Register 1 (PWMCON1)............................... 101
Master /Slave Operation..................... ............... ........ .. 91
Output Bla n king...................... ..................... ............... 91
Phase 1 Contro l (PWMPH1).............. ............... .......... 95
Phase 2 Contro l (PWMPH1).............. ............... .......... 96
PWM Duty Cycle... .............. ............... ............... .......... 91
PWM Frequency......................................................... 91
PWM Period..... ............................ ............................... 91
PWM Phase................................... ............................. 91
PWM Phase Reso lu tion..................... ........ ................. 91
Shutdown.................................................................... 92
Two-Phase PWM
Dead Time Delay...................................................... 158
Two-Speed Clock Start-up Mode........................................ 30