|
PIC18LF24K Datasheet, PDF (220/594 Pages) – | |||
|
◁ |
PIC18(L)F26/45/46K40
18.0 TIMER0 MODULE
Timer0 module is an 8/16-bit timer/counter with the
following features:
⢠16-bit timer/counter
⢠8-bit timer/counter with programmable period
⢠Synchronous or asynchronous operation
⢠Selectable clock sources
⢠Programmable prescaler
⢠Programmable postscaler
⢠Operation during Sleep mode
⢠Interrupt on match or overflow
⢠Output on I/O pin (via PPS) or to other peripherals
FIGURE 18-1:
BLOCK DIAGRAM OF TIMER0
Rev. 10-000017C
10/27/2015
Reserved
Reserved
SOSC
LFINTOSC
HFINTOSC
FOSC/4
PPS
T0CKIPPS
111
110
101 T0CKPS<3:0>
100
011
010
Prescaler
SYNC
T0_match Peripherals
TMR0
body
T0OUTPS<3:0>
1
IN
0
OUT
Postscaler
001
FOSC/4
T016BIT
T0ASYNC
000
D
Q
CK Q
3
T0CS<2:0>
T0IF
T0_out
PPS
TMR0
RxyPPS
8-bit TMR0 Body Diagram (T016BIT = 0)
Clear
IN
TMR0L R
COMPARATOR
OUT
T0_match
TMR0 High
Byte
TMR0H
Latch
Enable
16-bit TMR0 Body Diagram (T016BIT = 1)
IN
TMR0L
TMR0 High
OUT
Byte
8
Read TMR0L
Write TMR0L
8
8
TMR0H
8
8
Internal Data Bus
ï£ 2016 Microchip Technology Inc.
Preliminary
DS40001816C-page 220
|
▷ |