[Menu]>[Guide to use the PIC]>[873 Hardware]>[SFR]

SFR explanation for PIC16F873(5)
OPTION_REG ( Option register ) 81h,181h
    By this register, pull-up control of B port, interrupt edge select, timer relations are controlled. As for the way of using a bit about the timer, refer to the specification of timer (TMR0).

The value in the parenthesis is in the condition immediately after the turning on.
PBPU(inv) : PORTB Pull-up Enable bit
1:PORTB pull-ups are disabled
0:PORTB pull-ups are enabled ( by individual port latch values )

INTEDG : Interrupt Edge Select bit
1:Interrupt on rising edge of RB0/INT pin
0:Interrupt on falling edge of RB0/INT pin

T0CS : TMR0 Clock Source Select bit
1:Transition on RA4/T0CKI pin
0:Internal instruction cycle clock ( CLKOUT )

T0SE : TMR0 Source Edge Select bit
1:Increment on high-to-low transition on RA4/T0CKI pin
0:Increment on low-to-high transition on RA4/T0CKI pin

PSA : Prescaler Assignment bit
1:Prescaler assigned to WDT
0:Prescaler assigned to TMR0

PS2,PS1,PS0 : Prescaler Rate Select bits
PS2PS1PS0TMR0WDT
0001:21:1
0011:41:2
0101:81:4
0111:161:8
1001:321:16
1011:641:32
1101:1281:64
1111:2561:128