Datasheet

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 Control 0) .....................................93
PWMCON1 (PWM Control 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 Control).............................................53
T2CON (Timer2 Control).............................................55
TRISA (Tri-State PORTA)...........................................36
TRISB (Tri-State PORTB)...........................................42
TRISC (Tri-state PORTC)...........................................45
WDTCON (Watchdog Timer Control)........................122
WPUA (Weak Pull-up PORTA) ...................................36
Resets...............................................................................109
Power-On Reset .......................................................110
Revision History ................................................................193
RRF Instruction .................................................................133
S
SLEEP
Instruction .................................................................133
Power-Down Mode ...................................................123
Wake-Up ...................................................................123
Wake-Up Using Interrupts.........................................123
Software Simulator (MPLAB SIM).....................................138
Special Event Trigger..........................................................89
Special Function Registers ...................................................9
Specifications....................................................................158
STATUS Register................................................................15
Status Register............................................................ 16, 109
SUBLW Instruction............................................................134
SUBWF Instruction............................................................134
SWAPF Instruction............................................................134
T
Time-out Sequence...........................................................112
Timer0.................................................................................49
Associated Registers ..................................................50
External Clock.............................................................50
Interrupt.......................................................................49
Operation ....................................................................49
Prescaler.....................................................................50
Specifications............................................................155
Timer1.................................................................................51
Associated Registers ..................................................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
Inverting Gate ..................................................... 52
Selecting Source ................................................ 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 Conversion......................................................... 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
Complementary Output .................................... 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 Instruction................................................................ 134
TRISA Register................................................................... 36
TRISB Register................................................................... 42
TRISC Register................................................................... 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 Blanking.......................................................... 91
Phase 1 Control (PWMPH1)....................................... 95
Phase 2 Control (PWMPH1)....................................... 96
PWM Duty Cycle......................................................... 91
PWM Frequency......................................................... 91
PWM Period................................................................ 91
PWM Phase................................................................ 91
PWM Phase Resolution.............................................. 91
Shutdown.................................................................... 92
Two-Phase PWM
Dead Time Delay...................................................... 158
Two-Speed Clock Start-up Mode........................................ 30