PIC18F23K20-E/MLQTP MICROCHIP [Microchip Technology], PIC18F23K20-E/MLQTP Datasheet - Page 140
![no-image](/images/no-image-200.jpg)
PIC18F23K20-E/MLQTP
Manufacturer Part Number
PIC18F23K20-E/MLQTP
Description
28/40/44-Pin Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC18F23K20-EMLQTP.pdf
(420 pages)
- Current page: 140 of 420
- Download datasheet (8Mb)
PIC18F2XK20/4XK20
11.1
Timer0 can operate as either a timer or a counter; the
mode is selected with the T0CS bit of the T0CON
register. In Timer mode (T0CS = 0), the module
increments on every clock by default unless a different
prescaler
“Prescaler”). Timer0 incrementing is inhibited for two
instruction cycles following a TMR0 register write. The
user can work around this by adjusting the value written
to the TMR0 register to compensate for the anticipated
missing increments.
The Counter mode is selected by setting the T0CS bit
(= 1). In this mode, Timer0 increments either on every
rising or falling edge of pin RA4/T0CKI. The increment-
ing edge is determined by the Timer0 Source Edge
Select bit, T0SE of the T0CON register; clearing this bit
selects the rising edge. Restrictions on the external
clock input are discussed below.
An external clock source can be used to drive Timer0;
however, it must meet certain requirements (see
Table 26-10) to ensure that the external clock can be
synchronized with the internal phase clock (T
There is a delay between synchronization and the
onset of incrementing the timer/counter.
FIGURE 11-1:
DS41303B-page 138
T0CKI pin
Note:
Timer0 Operation
value
Upon Reset, Timer0 is enabled in 8-bit mode with clock input from T0CKI max. prescale.
T0SE
T0CS
T0PS<2:0>
PSA
is
F
OSC
TIMER0 BLOCK DIAGRAM (8-BIT MODE)
selected
/4
0
1
(see
Programmable
Prescaler
Section 11.3
Advance Information
3
OSC
).
0
1
(2 T
Sync with
Internal
Clocks
CY
11.2
TMR0H is not the actual high byte of Timer0 in 16-bit
mode; it is actually a buffered version of the real high
byte of Timer0 which is neither directly readable nor
writable (refer to Figure 11-2). TMR0H is updated with
the contents of the high byte of Timer0 during a read of
TMR0L. This provides the ability to read all 16 bits of
Timer0 without the need to verify that the read of the
high and low byte were valid. Invalid reads could
otherwise occur due to a rollover between successive
reads of the high and low byte.
Similarly, a write to the high byte of Timer0 must also
take place through the TMR0H Buffer register. Writing
to TMR0H does not directly affect Timer0. Instead, the
high byte of Timer0 is updated with the contents of
TMR0H when a write occurs to TMR0L. This allows all
16 bits of Timer0 to be updated at once.
Delay)
Timer0 Reads and Writes in
16-Bit Mode
8
TMR0L
8
© 2007 Microchip Technology Inc.
Set
TMR0IF
on Overflow
Internal Data Bus
Related parts for PIC18F23K20-E/MLQTP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC18F23K20-I/SS](/photos/6/81/68119/150-28-ssop_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-I/SO](/photos/6/59/65909/150-28-soic_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F23K20-I/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
IC MCU 8BIT 8KB FLASH 28UQFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-I/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-QFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-I/SP](/photos/6/59/65908/150-28-dip_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX16 28-DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 QFN 6x6mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 UQFN 4x4x0.5mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/SO](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 SOIC .300in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/SP](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 SPDIP .300in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F23K20-E/SS](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8 KB Enh Flash, 768 RAM, 25 I/O Pb Free, Nanowatt XLP 28 SSOP .209in TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F2480](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F2682-I/PT](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet: