PIC18F4431-I/P Microchip Technology Inc., PIC18F4431-I/P Datasheet - Page 198

no-image

PIC18F4431-I/P

Manufacturer Part Number
PIC18F4431-I/P
Description
Microcontroller; 16 KB Flash; 768 RAM; 256 EEPROM; 36 I/O; 40-Pin-PDIP
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC18F4431-I/P

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
40-pin PDIP
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
Part Number:
PIC18F4431-I/P
Manufacturer:
ABB
Quantity:
240
Part Number:
PIC18F4431-I/P
Manufacturer:
MICROCHIP
Quantity:
769
Part Number:
PIC18F4431-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F4431-I/PT
Manufacturer:
MICROCHIP
Quantity:
1 400
Part Number:
PIC18F4431-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18F4431-I/PT
Manufacturer:
MICROCHI
Quantity:
20 000
PIC18F2331/2431/4331/4431
17.6.2
The
double-buffered to allow glitchless updates of the PWM
outputs. For each duty cycle block, there is a Duty
Cycle Buffer register that is accessible by the user and
a second Duty Cycle register that holds the actual
compare value used in the present PWM period.
In edge-aligned PWM Output mode, a new duty cycle
value will be updated whenever a PTMR match with the
PTPER register occurs and PTMR is reset as shown in
Figure 17-12. Also, the contents of the duty cycle
buffers are automatically loaded into the Duty Cycle
registers when the PWM time base is disabled
(PTEN = 0).
When the PWM time base is in the Up/Down Counting
mode, new duty cycle values will be updated when the
value of the PTMR register is zero and the PWM time
base begins to count upwards. The contents of the duty
cycle buffers are automatically loaded into the Duty
Cycle registers when the PWM time base is disabled
(PTEN = 0). Figure 17-13 shows the timings when the
duty cycle update occur for the Up/Down Count mode.
In this mode, up to one entire PWM period is available
for calculating and loading the new PWM duty cycle
before changes take effect.
When the PWM time base is in the Up/Down Counting
mode with double updates, new duty cycle values will
be updated when the value of the PTMR register is zero
and when the value of the PTMR register matches the
value in the PTPER register. The contents of the duty
cycle buffers are automatically loaded into the Duty
Cycle registers during both of the above said
conditions. Figure 17-14 shows the duty cycle updates
for Up/Down mode with double update. In this mode,
only up to half of a PWM period is available for
calculating and loading the new PWM duty cycle before
changes take effect.
FIGURE 17-13:
DS39616B-page 196
four
DUTY CYCLE REGISTER BUFFERS
PWM
PWM output
PTMR Value
Duty
DUTY CYCLE UPDATE TIMES IN UP/DOWN COUNTING MODE
Cycle
registers
Duty cycle value loaded from buffer register
Preliminary
are
17.6.3
Edge-aligned PWM signals are produced by the
module when the PWM time base is in the Free
Running mode or the Single-shot mode. For
edge-aligned PWM outputs, the output for a given
PWM channel has a period specified by the value
loaded in PTPER and a duty cycle specified by the
appropriate Duty Cycle register (see Figure 17-12).
The PWM output is driven active at the beginning of the
period (PTMR = 0) and is driven inactive when the
value in the Duty Cycle register matches PTMR. A new
cycle is started when PTMR matches the PTPER as
explained in the PWM period section.
If the value in a particular Duty Cycle register is zero,
then the output on the corresponding PWM pin will be
inactive for the entire PWM period. In addition, the out-
put on the PWM pin will be active for the entire PWM
period if the value in the Duty Cycle register is greater
than the value held in the PTPER register.
FIGURE 17-12:
PTPER
Active at
beginning
of period
PDC
(old)
PDC
(new)
New value written to duty cycle buffer
0
Duty Cycle
PTMR
Value
EDGE-ALIGNED PWM
Period
EDGE-ALIGNED PWM
 2003 Microchip Technology Inc.
New Duty Cycle Latched

Related parts for PIC18F4431-I/P