PIC12F1840-I/P Microchip Technology, PIC12F1840-I/P Datasheet - Page 204

7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 PDI

PIC12F1840-I/P

Manufacturer Part Number
PIC12F1840-I/P
Description
7 KB Flash, 256 Bytes RAM, 32 MHz Int. Osc, 6 I/0, Enhanced Mid Range Core 8 PDI
Manufacturer
Microchip Technology
Datasheet

Specifications of PIC12F1840-I/P

Processor Series
PIC12F
Core
PIC
Program Memory Type
Flash
Program Memory Size
7 KB
Data Ram Size
256 B
Interface Type
MI2C, SPI, EUSART
Number Of Timers
3
Operating Supply Voltage
1.8 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
Package / Case
PDIP-8
Development Tools By Supplier
MPLAB IDE Software
Minimum Operating Temperature
- 40 C
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12F1840-I/P
Manufacturer:
MICROCHIP
Quantity:
200
PIC12(L)F1840
24.4.5
In Single Output mode, PWM steering allows any of the
PWM pins to be the modulated signal. Additionally, the
same PWM signal can be simultaneously available on
multiple pins.
Once
(CCP1M<3:2> = 11
CCP1CON register), the user firmware can bring out
the same PWM signal to one or two output pins by
setting the appropriate STR1 bits of the PSTR1CON
register, as shown in
While the PWM Steering mode is active, the
CCP1M<1:0> bits of the CCP1CON register determine
the polarity of the output pins.
The PWM auto-shutdown operation also applies to
PWM Steering mode as described in
“Enhanced PWM Auto-shutdown
shutdown event will only affect pins that have PWM
outputs enabled.
FIGURE 24-14:
DS41441B-page 204
Note 1: Port outputs are configured as shown when
Note:
PORT Data
PORT Data
P1A Signal
2: Single PWM output requires setting at least
CCP1M1
CCP1M0
the
STR1A
STR1B
the CCP1CON register bits P1M<1:0> = 00
and CCP1M<3:2> = 11.
one of the STR1 bits.
PWM STEERING MODE
The associated TRIS bits must be set to
output (‘0’) to enable the pin output driver
in order to see the PWM signal on the pin.
Single
Table
and
SIMPLIFIED STEERING
BLOCK DIAGRAM
Output
1
0
1
0
24-8.
P1M<1:0> = 00
mode
TRIS
TRIS
mode”. An auto-
Section 24.4.2
P1B pin
P1A pin
is
selected
of
Preliminary
the
24.4.5.1
The STR1SYNC bit of the PSTR1CON register gives
the user two selections of when the steering event will
happen. When the STR1SYNC bit is ‘0’, the steering
event will happen at the end of the instruction that
writes to the PSTR1CON register. In this case, the
output signal at the output pins may be an incomplete
PWM waveform. This operation is useful when the user
firmware needs to immediately remove a PWM signal
from the pin.
When the STR1SYNC bit is ‘1’, the effective steering
update will happen at the beginning of the next PWM
period. In this case, steering on/off the PWM output will
always produce a complete PWM waveform.
Figures
of the PWM steering depending on the STR1SYNC
setting.
24.4.6
When any PWM mode is used, the application
hardware must use the proper external pull-up and/or
pull-down resistors on the PWM output pins.
The CCP1M<1:0> bits of the CCP1CON register allow
the user to choose whether the PWM output signals are
active-high or active-low for each of the PWM output
pins (P1A and P1B). The PWM output polarities must
be selected before the PWM pin output drivers are
enabled. Changing the polarity configuration while the
PWM
recommended since it may result in damage to the
application circuits.
The P1A and P1B output latches may not be in the
proper states when the PWM module is initialized.
Enabling the PWM pin output drivers at the same time
as the Enhanced PWM modes may cause damage to
the application circuit. The Enhanced PWM modes
must be enabled in the proper Output mode and
complete a full PWM cycle before enabling the PWM
pin output drivers. The completion of a full PWM cycle
is indicated by the TMR2IF bit of the PIR1 register
being set as the second PWM period begins.
Note:
pin
24-15
START-UP CONSIDERATIONS
When the microcontroller is released from
Reset, all of the I/O pins are in the high-
impedance state. The external circuits
must keep the power switch devices in the
Off state until the microcontroller drives
the I/O pins with the proper signal levels or
activates the PWM output(s).
Steering Synchronization
output
and
24-16
drivers
 2011 Microchip Technology Inc.
illustrate the timing diagrams
are
enable
is
not

Related parts for PIC12F1840-I/P