PIC18F-LF1XK50 MICROCHIP [Microchip Technology], PIC18F-LF1XK50 Datasheet - Page 101

no-image

PIC18F-LF1XK50

Manufacturer Part Number
PIC18F-LF1XK50
Description
20-Pin USB Flash Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
10.0
The Timer0 module incorporates the following features:
• Software selectable operation as a timer or coun-
• Readable and writable registers
• Dedicated 8-bit, software programmable
• Selectable clock source (internal or external)
• Edge select for external clock
• Interrupt-on-overflow
REGISTER 10-1:
 2010 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2-0
ter in both 8-bit or 16-bit modes
prescaler
TMR0ON
R/W-1
TIMER0 MODULE
TMR0ON: Timer0 On/Off Control bit
1 = Enables Timer0
0 = Stops Timer0
T08BIT: Timer0 8-bit/16-bit Control bit
1 = Timer0 is configured as an 8-bit timer/counter
0 = Timer0 is configured as a 16-bit timer/counter
T0CS: Timer0 Clock Source Select bit
1 = Transition on T0CKI pin
0 = Internal instruction cycle clock (CLKOUT)
T0SE: Timer0 Source Edge Select bit
1 = Increment on high-to-low transition on T0CKI pin
0 = Increment on low-to-high transition on T0CKI pin
PSA: Timer0 Prescaler Assignment bit
1 = TImer0 prescaler is NOT assigned. Timer0 clock input bypasses prescaler.
0 = Timer0 prescaler is assigned. Timer0 clock input comes from prescaler output.
T0PS<2:0>: Timer0 Prescaler Select bits
111 = 1:256 prescale value
110 = 1:128 prescale value
101 = 1:64 prescale value
100 = 1:32 prescale value
011 = 1:16 prescale value
010 = 1:8 prescale value
001 = 1:4 prescale value
000 = 1:2 prescale value
T08BIT
R/W-1
T0CON: TIMER0 CONTROL REGISTER
W = Writable bit
‘1’ = Bit is set
R/W-1
T0CS
R/W-1
T0SE
Preliminary
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R/W-1
The T0CON register
aspects of the module’s operation, including the
prescale selection. It is both readable and writable.
A simplified block diagram of the Timer0 module in 8-bit
mode is shown in
simplified block diagram of the Timer0 module in 16-bit
mode.
PSA
PIC18F/LF1XK50
T0PS2
R/W-1
Figure
(Register
x = Bit is unknown
10-1.
T0PS1
R/W-1
Figure 10-2
10-1) controls all
DS41350E-page 101
T0PS0
R/W-1
shows a
bit 0

Related parts for PIC18F-LF1XK50