Thursday, December 10, 2009

PIC10 SFR OPTION Register

The OPTION register is a write-only register. It 's a 8-bit wide register and used to configure and prescling of the Timer0 & Watchdog timer. Reset sets all bit of OPTION register.

Bit-0

PS0

Prescaler Select Bits

Bit Value

Timer0 Rate

WDT Rate

000

1:2

1:1

001

1:4

1:2

010

1:8

1:4

011

1:16

1:8

100

1:32

1:16

101

1:64

1:32

110

1:128

1:64

111

1:256

1:128

Bit-1

PS1

Bit-2

PS2

Bit-3

PSA

  • Prescaler Assignment Bit
  • 0 = Prescaler assigned to Timer0.
  • 1 = Prescaler assigned to WDT.

Bit-4

T0SE

  • Timer0 Source Edge Select Bit
  • 0 = increment on low-to-high transition on T0CKI pin.
  • 1 = increment on high-to-low transition on T0CKI pin.

Bit-5

T0CS

  • Timer0 Clock Source Select Bit
  • 0 = Transition on T0CKI pin.
  • 1 = Transition on internal instruction cycle clock.

Bit-6

/GPPU

  • Enable Weak Pull-ups Bit(GP0, GP1, GP3)
  • 0 = Enabled
  • 1 = Disabled

Bit-7

/GPWU

  • Enable Wake-up on Pin Change Bit(GP0, GP1, GP3)
  • 0 = Enabled
  • 1 = Disabled

No comments:

Post a Comment