PIC18F-LF1XK50 MICROCHIP [Microchip Technology], PIC18F-LF1XK50 Datasheet - Page 272

no-image

PIC18F-LF1XK50

Manufacturer Part Number
PIC18F-LF1XK50
Description
20-Pin USB Flash Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC18F/LF1XK50
22.6.3
Some applications may require a dual power option.
This allows the application to use internal power pri-
marily, but switch to power from the USB when no inter-
nal power is available.
Dual Power with Self-Power Dominance mode exam-
ple, which automatically switches between Self-Power
Only and USB Bus Power Only modes.
Dual power devices must also meet all of the special
requirements for inrush current and Suspend mode
current and must not enable the USB module until
V
Only”
descriptions of those requirements. Additionally, dual
power devices must never source current onto the 5V
V
FIGURE 22-11:
DS41350E-page 272
V
BUS
BUS
V
~5V
BUS
Note:
SELF
~5V
pin of the USB cable.
is driven high. See
100 k
and
DUAL POWER WITH SELF-POWER
DOMINANCE
Users should keep in mind the limits for
devices drawing power from the USB.
According to USB Specification 2.0, this
cannot exceed 100 mA per low-power
device or 500 mA per high-power device.
Section 22.6.2 “Self-Power Only”
DUAL POWER EXAMPLE
Figure 22-11
Section 22.6.1 “Bus Power
shows a simple
V
V
V
DD
USB
SS
Preliminary
for
22.6.4
The USB transceiver consumes a variable amount of
current depending on the characteristic impedance of
the USB cable, the length of the cable, the V
voltage and the actual data patterns moving across the
USB cable. Longer cables have larger capacitances
and consume more total energy when switching output
states.
Data patterns that consist of “IN” traffic consume far
more current than “OUT” traffic. IN traffic requires the
PIC
traffic requires that the host drive the USB cable.
The data that is sent across the USB cable is NRZI
encoded. In the NRZI encoding scheme, ‘0’ bits cause
a toggling of the output state of the transceiver (either
from a “J” state to a “K” state, or vise versa). With the
exception of the effects of bit-stuffing, NRZI encoded ‘1’
bits do not cause the output state of the transceiver to
change. Therefore, IN traffic consisting of data bits of
value, ‘0’, cause the most current consumption, as the
transceiver must charge/discharge the USB cable in
order to change states.
More details about NRZI encoding and bit-stuffing can
be found in the USB 2.0 specification’s section 7.1,
although knowledge of such details is not required to
make
PIC18F1XK50/PIC18LF1XK50
Among other things, the SIE handles bit-stuff-
ing/unstuffing, NRZI encoding/decoding and CRC
generation/checking in hardware.
The total transceiver current consumption will be
application-specific. However, to help estimate how
much current actually may be required in full-speed
applications,
Example 22-2 shows how this equation can be used for
a theoretical application.
®
device to drive the USB cable, whereas OUT
USB
USB TRANSCEIVER CURRENT
CONSUMPTION
Equation 22-1
applications
 2010 Microchip Technology Inc.
can be used.
of
microcontrollers.
using
USB
supply
the

Related parts for PIC18F-LF1XK50