English
Language : 

PIC16F87_05 Datasheet, PDF (71/228 Pages) Microchip Technology – 18/20/28-Pin Enhanced Flash Microcontrollers with nanoWatt Technology
PIC16F87/88
EXAMPLE 6-1: CHANGING THE PRESCALER ASSIGNMENT FROM WDT TO TIMER0
CLRWDT
BANKSEL
MOVLW
MOVWF
OPTION_REG
b'xxxx0xxx'
OPTION_REG
; Clear WDT and prescaler
; Select Bank of OPTION_REG
; Select TMR0, new prescale
; value and clock source
TABLE 6-1: REGISTERS ASSOCIATED WITH TIMER0
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR, BOR
Value on
all other
Resets
01h,101h TMR0
Timer0 Module Register
xxxx xxxx uuuu uuuu
0Bh,8Bh, INTCON
10Bh,18Bh
GIE
PEIE TMR0IE INT0IE RBIE TMR0IF INT0IF RBIF 0000 000x 0000 000u
81h,181h OPTION_REG RBPU INTEDG T0CS T0SE PSA PS2 PS1 PS0 1111 1111 1111 1111
Legend: x = unknown, u = unchanged. Shaded cells are not used by Timer0.
 2005 Microchip Technology Inc.
DS30487C-page 69