PIC18F4431-I/PT Microchip Technology Inc., PIC18F4431-I/PT Datasheet - Page 149
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC18F4431-I/PT
Manufacturer Part Number
PIC18F4431-I/PT
Description
Microcontroller; 16 KB Flash; 768 RAM; 256 EEPROM; 36 I/O; 44-Pin TQFP
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC18F4431-IPT.pdf
(396 pages)
Specifications of PIC18F4431-I/PT
A/d Inputs
9-Channel, 10-Bit
Cpu Speed
10 MIPS
Eeprom Memory
256 Bytes
Input Output
36
Interface
I2C/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
44-pin TQFP
Programmable Memory
16K Bytes
Ram Size
768 Bytes
Speed
40 MHz
Timers
1-8-bit, 3-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC18F4431-I/PT
Manufacturer:
MICROCHIP
Quantity:
1 400
Company:
Part Number:
PIC18F4431-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F4431-I/PT
Manufacturer:
MICROCHI
Quantity:
20 000
- Current page: 149 of 396
- Download datasheet (8Mb)
the Timer5 is incremented on the next Q1. The T5CKI
minimum pulse width high and low time must be
greater than T
In Asynchronous Counter configuration, Timer5 is
clocked by the external clock (T5CKI) with the optional
prescaler. In this mode, T5CKI is not synchronized to
the internal clock. By setting TMR5CS, the external
input clock (T5CKI) can be used as the counter sam-
pling clock. When T5SYNC is set, the external clock is
not synchronized to the internal device clock.
The timer count is not reset automatically when the
module is disabled. The user may write the counter
register to initialize the counter.
14.1.1
Timer5 has two operating modes: Continuous-count
and Single-shot.
Continuous-count mode is selected by clearing the
T5MOD control bit (= 0). In this mode, the Timer5 time
base will start incrementing according to the prescaler
settings until a TMR5/PR5 match occurs, or until TMR5
rolls over (FFFFh to 0000h). The TMR5IF interrupt flag
is set, the TMR5 register is reset on the following input
clock edge, and the timer continues to count for as long
as the TMR5ON bit remains set.
Single-shot mode is selected by setting T5MOD (= 1).
In this mode, the Timer5 time base begins to increment
according to the prescaler settings until a TMR5/PR5
match occurs. This causes the TMR5IF interrupt flag to
be set, the TMR5 register pair to be cleared on the
following input clock edge, and the TMR5ON bit to be
cleared by the hardware to halt the timer.
The Timer5 time base can only start incrementing in
Single-shot mode under two conditions:
1.
2.
14.2
As noted, the actual high byte of the Timer5 register
pair is mapped to TMR5H, which serves as a buffer.
Reading TMR5L will load the contents of the high byte
of the register pair into the TMR5H register. This allows
the user to accurately read all 16 bits of the register
pair, without having to determine whether a read of the
high byte followed by the low byte is valid due to a
rollover between reads.
2003 Microchip Technology Inc.
Note:
Timer5 is enabled (TMR5ON is set), or
Timer5 is disabled, and a Special Event Reset
trigger is present on the Timer5 reset input. (See
Section 14.7 “Timer5 Special Event Reset
Input” for additional information).
16-bit Read/Write and Write Modes
The Timer5 module does NOT prevent
writes to the PR5 registers (PR5H:PR5L)
while the timer is enabled. Writing to PR5
while the timer is enabled may result in
unexpected period match events.
CONTINUOUS AND SINGLE-SHOT
OPERATION
CY
/2.
PIC18F2331/2431/4331/4431
Preliminary
Since the actual high byte of the Timer5 register pair is
not directly readable or writable, it must be read and
written to through the Timer5 High Byte Buffer register
(TMR5H). The T5 high byte is updated with the con-
tents of TMR5H when a write occurs to TMR5L. This
allows a user to write all 16 bits to both the high and low
bytes of Timer5 at once. Writes to TMR5H do not clear
the Timer5 prescaler. The prescaler is only cleared on
writes to TMR5L.
14.2.1
Read-modify-write instructions like BSF and BCF will
read the contents of a register, make the appropriate
changes, and place the result back into the register.
The write portion of a read-modify-write instruction of
TMR5H will not update the contents of the high byte of
TMR5 until a write of TMR5L takes place. Only then will
the contents of TMR5H be placed into the high byte of
TMR5.
14.3
The Timer5 clock input (either T
may be divided by using the Timer5 programmable
prescaler. The prescaler control bits T5PS1:T5PS0
(T5CON<4:3>) select a prescale factor of 2, 4, 8 or no
prescale.
The Timer5 prescaler is cleared by any of the following:
• A write to the Timer5 register
• Disabling Timer5 (TMR5ON = 0)
• A device Reset such as Master Clear, POR or
14.4
The Timer5 module includes an optional input noise
filter, designed to reduce spurious signals in noisy
operating environments. The filter ensures that the
input is not permitted to change until a stable value has
been registered for three consecutive sampling clock
cycles.
The noise filter is part of the input filter network associ-
ated with the Motion Feedback Module (see
Section 16.0 “Motion Feedback Module”). All of the
filters are controlled using the Digital Filter Control
(DFLTCON) register (Register 16-3). The Timer5 filter
can be individually enabled or disabled by setting or
clearing the FLT4EN bit (DFLTCON<7>). It is disabled
on all BOR and BOR resets.
For additional information, refer to Section 16.3
“Noise Filters” in the Motion Feedback module.
BOR
Note:
Timer5 Prescaler
Noise Filter
16-BIT READ-MODIFY-WRITE
Writing to the T5CON register does not
clear the Timer5.
CY
or the external clock)
DS39616B-page 147
Related parts for PIC18F4431-I/PT
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC18F-LF1XK50](/images/no-image3.png)
Part Number:
Description:
20-Pin USB Flash Microcontrollers
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F6393T-I/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
PIC18F With 128-segment LCD Driver And 12-bit ADC, 8KB Flash, 768B RAM, CCP, MSS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F6493T-I/PT](/photos/6/81/68123/c04-066_pf_tmb.jpg)
Part Number:
Description:
PIC18F With 128-segment LCD Driver And 12-bit ADC, 16KB Flash, 768B RAM, CCP, MS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F8393T-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
PIC18F With 192-segment LCD Driver And 12-bit ADC, 8KB Flash, 768B RAM, CCP, MSS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F8493T-I/PT](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
PIC18F With 192-segment LCD Driver And 12-bit ADC, 16KB Flash, 768B RAM, CCP, MS
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F6585-I/L](/photos/16/12/161282/68-plcc-large-300dpi-lyrd_tmb.jpg)
Part Number:
Description:
Microcontrollers (MCU) 48KB 3328 RAM 52 I/O
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F6680-I/L](/photos/16/12/161282/68-plcc-large-300dpi-lyrd_tmb.jpg)
Part Number:
Description:
Microcontrollers (MCU) 64KB 3328 RAM 52 I/O
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90T-I/MR](/photos/16/3/160368/qfn64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 QFN 9x9x0.9mm T/R
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90T-I/PT](/photos/16/3/160367/tqfp-64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 TQFP 10x10x1mm T/R
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F87K90T-I/PT](/photos/40/31/403173/tqfp-80_tmb.jpg)
Part Number:
Description:
128kB Flash, 4kB RAM, 1kB EE, 16MIPS, NanoWatt XLP, LCD, 5V 80 TQFP 12x12x1mm T/
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90-I/MR](/photos/16/3/160368/qfn64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 QFN 9x9x0.9mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F65K90-I/PT](/photos/16/3/160367/tqfp-64_tmb.jpg)
Part Number:
Description:
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, LCD 64 TQFP 10x10x1mm TRAY
Manufacturer:
Microchip Technology
![PIC18F87K90-I/PT](/photos/40/31/403173/tqfp-80_tmb.jpg)
Part Number:
Description:
128kB Flash, 4kB RAM, 1kB EE, 16MIPS, NanoWatt XLP, LCD, 5V 80 TQFP 12x12x1mm TR
Manufacturer:
Microchip Technology